Update a cloud provider

This command updates a cloud provider from the supplied JSON string

Request

PUT http://{hostname}:{port}
  /landscaper/security/cloudprovider/{cloudProviderId}
Accept: application/json
Content-Type: application/json
Table 1. URL parameters
Parameter Type Required Description
cloudProviderId string true ID of the cloud provider
Table 2. Header parameters
Parameter Type Required Description
Content-Type application/json true
Accept application/json true
This command takes a JSON request string or file. Use the following template for the request:
{
  "description": "Description",
  "name": "Cloud provider name",
  "properties": [{
    "name": "Property name",
    "value": "Property value"
  }],
  "type": "The type of cloud provider"
}

Example

curl -u jsmith:passwd 
   -H 'Content-Type: application/json'
  -d @updateProvider.json
  http://myserver.example.com:8080/landscaper/security/cloudprovider/fe8b22b5-0b1b-473a-2424-0f2294cd12b7 -X PUT

Example JSON request

{
  "description": "Updated cloud provider",
  "name": "My updated cloud provider",
  "properties": [
    {
      "id": "71531286-bab0-428b-aa91-97243dacd695",
      "label": "",
      "name": "orchestrationEngineUrl",
      "secure": false,
      "value": "http://openstack.example.com:8004"
    },
    {
      "id": "787c87c6-ae69-428a-9226-23457fee6993",
      "label": "",
      "name": "timeoutMins",
      "secure": false,
      "value": "10"
    },
    {
      "id": "9b2e3dab-9f38-232c-87e5-7a95379becff",
      "label": "",
      "name": "url",
      "secure": false,
      "value": "http://localhost:5000/v2.0/"
    },
    {
      "id": "14692f9d-5b91-4e72-55db-8fca87c112f4",
      "label": "",
      "name": "useDefaultOrchestration",
      "secure": false,
      "value": "false"
    }
  ],
  "type": "AUTH_REALM"
}