Resource Center/Resource Pool/Affinity Group Operations
PUTAffinity Group OperationsSince 2.3SynchronousAuth Required
ChangeAffinityGroupState
ChangeAffinityGroupState
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
changeaffinitygroupstateObjectRequiredchangeaffinitygroupstate request body object.
stateEventStringRequired状态事件。
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/affinity-groups/{uuid}/actions
/zstack/v1/affinity-groups/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/affinity-groups/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changeaffinitygroupstate":{"stateEvent":"<stateEvent>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "034e3ef3798f3374b85d414057313a3c", "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.
