Resource Center/Resource Pool/VM Scheduling Rule Group Operations
PUTVM Scheduling Rule Group OperationsSince 4.6.0SynchronousAuth Required
ChangeVmSchedulingRuleState
ChangeVmSchedulingRuleState
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe resource UUID.
Body Fields
changevmschedulingrulestateObjectRequiredchangevmschedulingrulestate request body object.
stateStringRequiredThe state after the modification.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/vmSchedulingRule/{uuid}/actions
/zstack/v1/vmSchedulingRule/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/vmSchedulingRule/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changevmschedulingrulestate":{"state":"<state>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "rule": "AFFINITY", "mode": "SOFT", "uuid": "8ab474e792183589b6a58bbe473c635a", "name": "Test-AffinityGroup", "description": "Test-AffinityGroup", "version": "1.0", "type": "HOST", "appliance": "CUSTOMER", "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.
