Resource Center/Resource Pool/VM Scheduling Rule Group Operations
PUTVM Scheduling Rule Group OperationsSince 4.6.0SynchronousAuth Required
UpdateVmSchedulingRule
UpdateVmSchedulingRule
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
paramsObjectRequiredRequest body parameter object.
nameStringOptional. The resource name.
descriptionStringOptional. Optional. The detailed description of the resource.
modeStringOptional.
systemTagsListOptional.
userTagsListOptional.
Responses
Endpoint
PUT/zstack/v1/vmSchedulingRule/{uuid}/update
/zstack/v1/vmSchedulingRule/{uuid}/update
Request Example
curl -X PUT 'http://{host}/zstack/v1/vmSchedulingRule/{uuid}/update' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","mode":"<mode>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "rule": "AFFINITY", "mode": "SOFT", "uuid": "36f4174c0fcf3aefa24927f33aa2eba8", "name": "group", "description": "group for test", "policy": "ANTISOFT", "type": "HOST" } }Change History
This API has no change history records yet.
