CreateAutoScalingGroup
CreateAutoScalingGroup
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
scalingResourceTypeStringRequiredThe resource type of the auto scaling group. Current type: VM instance.
minResourceSizeIntegerRequiredThe minimum number of VM instances in the auto scaling group.
maxResourceSizeIntegerRequiredThe maximum number of VM instances in the auto scaling group.
defaultCooldownLongRequiredThe default cooldown time of the auto scaling rule.
removalPolicyStringRequiredThe policy for removing a VM instance.
defaultEnablebooleanOptional. Whether to enable the auto scaling group after creation.
resourceUuidStringOptional. The resource UUID.
tagUuidsListOptional. The tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/autoscaling/groups
/zstack/v1/autoscaling/groups
Request Example
curl -X POST 'http://{host}/zstack/v1/autoscaling/groups' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","scalingResourceType":"<scalingResourceType>","minResourceSize":1,"maxResourceSize":1,"defaultCooldown":1,"removalPolicy":"<removalPolicy>","defaultEnable":true,"resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "test-group", "uuid": "ff296e09f82e3a84af082257ff63d162", "description": "just for test", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } }Change History
This API has no change history records yet.
