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 parametersParameter |
Type |
Required |
Description |
blueprintId |
string |
true |
Name or ID of the blueprint |
environmentId |
string |
true |
ID of the environment |
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