Resource Center/Resource Pool/VM Scheduling Rule Group Operations
PUTVM Scheduling Rule Group OperationsSince 4.6.0SynchronousAuth Required
ValidateVmSchedulingRule
ValidateVmSchedulingRule
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
validatevmschedulingruleObjectRequiredvalidatevmschedulingrule request body object.
vmGroupUuidStringRequiredThe VM scheduling group UUID.
hostGroupUuidStringOptional. The host scheduling group UUID.
ruleStringRequiredThe VM scheduling rule.
modeStringRequiredThe execution mode of the rule.
zoneUuidStringOptional. The zone UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/validate/vmSchedulingRule
/zstack/v1/validate/vmSchedulingRule
Request Example
curl -X PUT 'http://{host}/zstack/v1/validate/vmSchedulingRule' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"validatevmschedulingrule":{"vmGroupUuid":"<vmGroupUuid>","hostGroupUuid":"<hostGroupUuid>","rule":"<rule>","mode":"<mode>","zoneUuid":"<zoneUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{}Change History
This API has no change history records yet.
