Resource Center/Resource Pool/Auto-Scaling Group Operations
POSTAuto-Scaling Group OperationsSince 4.1.0SynchronousAuth Required
CreateAutoScalingRuleSchedulerJobTrigger
CreateAutoScalingRuleSchedulerJobTrigger
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
schedulerJobUuidStringRequiredThe scheduled job UUID.
ruleUuidStringRequiredThe auto-scaling UUID.
Body Fields
paramsObjectRequiredRequest body parameter object.
triggerTypeStringOptional. The trigger type.
nameStringRequiredThe trigger name.
descriptionStringOptional. The detailed description of the trigger.
resourceUuidStringOptional. The resource UUID.
tagUuidsListOptional. The tag UUIDs.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/scheduler/jobs/{schedulerJobUuid}/autoscaling/rules/{ruleUuid}
/zstack/v1/scheduler/jobs/{schedulerJobUuid}/autoscaling/rules/{ruleUuid}
Request Example
curl -X POST 'http://{host}/zstack/v1/scheduler/jobs/{schedulerJobUuid}/autoscaling/rules/{ruleUuid}' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"triggerType":"<triggerType>","name":"<name>","description":"<description>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "test-group", "uuid": "d09cd777bb863d6bbfe1267b590e947e", "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.
