PUT https://{hostname}:{port}
/cli/environment/provisionEnvironment
{
"application": "Application name or ID (required if you
are specifying the blueprint by name",
"baseResource": "Path to the resource node to create
this environment in",
"blueprint": "Blueprint name or ID",
"cleanupCountToKeep": "Number of most recently deployed
versions to keep (optional)",
"cleanupDaysToKeep": "Number of days to keep versions
deployed to this environment (optional)",
"color": "HTML color code for the environment (optional)",
"description": "Description (optional)",
"lockSnapshots": "Whether snapshots will be locked when
deployed to this environment (optional)",
"name": "Environment name",
"nodeProperties": {"Path to the resource node, such as
/path/to/resource/node": {"Name of node property": "Value
or node property"}},
"requireApprovals": "Whether approvals will be required
(optional)"
}
How you structure the JSON request depends on whether you assign the virtual nodes to a cloud group or an environment profile. For more information on cloud groups and environment profiles, see the documentation for your cloud system.
{
"name": "CloudEnv1",
"application": "My application",
"baseResource": "/environments",
"blueprint": "Blueprint 1",
"description": "New cloud environment from blueprint 1",
"lockSnapshots": "false",
"requireApprovals": "false",
"cloud_group": "2",
"nodeProperties": {
"/UCD Agent/os_part": {
"multiplicity": "1",
"numvcpus": "1",
"memsize": "1024",
"password": "password",
"password_0": "password"
}
}
}
{
"name": "CloudEnv2",
"application": "My application",
"baseResource": "/environments",
"blueprint": "Blueprint 1",
"description": "New cloud environment from blueprint 1",
"lockSnapshots": "false",
"requireApprovals": "false",
"environment_profile": "1",
"nodeProperties": {
"/UCD Agent/os_part": {
"cloud_group": "1",
"ip_group": "1",
"multiplicity": "1",
"numvcpus": "1",
"memsize": "1024",
"password": "password",
"password_0": "password"
},
"/UCD Agent/os_part0": {
"cloud_group": "2",
"ip_group": "2",
"multiplicity": "1",
"numvcpus": "1",
"memsize": "1024",
"password": "password",
"password_0": "password"
}
}
}
{
"name": "CloudEnv3",
"application": "My application",
"baseResource": "/environments",
"blueprint": "Blueprint 1",
"description": "New cloud environment from blueprint 1",
"lockSnapshots": "false",
"requireApprovals": "false",
"cloud_group": "2",
"nodeProperties": {
"/UCD Agent/os_part": {
"multiplicity": "1",
"numvcpus": "1",
"memsize": "1024",
"password": "password",
"password_0": "password",
"iwd_registration/cloud_hostname": "cloudserver.example.org"
}
}
}
{
"id": "d84f5683-b05f-4e8b-afdf-f28a38b0fece",
"securityResourceId": "2eb5db02-b07e-4010-a0cf-3b84509d0ca4",
"name": "CloudEnv1",
"description": "New cloud environment",
"color": "#ffffff",
"requireApprovals": false,
"lockSnapshots": false,
"calendarId": "7aac87db-3984-4cde-98be-a935fd38bdb0",
"active": true,
"cleanupDaysToKeep": 0,
"cleanupCountToKeep": 0,
"conditions": [
]
}
Related CLI command: provisionEnvironment.