Update an environment

This command updates an environment by applying a blueprint to it.

Request

PUT http://{hostname}:{port}
  /landscaper/rest/blueprint/{blueprintId}/environment/{environmentId}
Accept: application/json
Content-Type: application/json
Table 1. URL parameters
Parameter Type Required Description
blueprintId string true Name or ID of the blueprint
environmentId string true ID of the environment
Table 2. Header parameters
Parameter Type Required Description
Content-Type application/json true  
Accept application/json true  
Location string false The full location of the blueprint, such as /landscaper/orion/file/jsmith_00000000_0000_0000_0000_000000000002-OrionContent/default/my_blueprint/my_blueprint.yml.
This command takes a JSON request string or file. Use the following template for the request:
{
  "configuration": "Configuration name (Optional)",
  "environmentName": "Environment name",
  "parameters": {"name": "value (Optional - repeat as 
  necessary"},
  "teamMappings": "Array of team ids (Optional)",
  "validate": "Boolean - whether or not to validate the 
  data (Optional - default is false)"
}

Example

curl -u jsmith:passwd 
  http://myserver.example.com:8080/landscaper/rest/blueprint/MyBlueprint/
  environment/2f668770-aeb1-4648-891c-c97776f76a9d
  -H 'Content-Type: application/json'
  -H "Accept: application/json"
  -d @updateBlueprint.json
  -X PUT

Feedback