Resource Center/Resource Pool/Affinity Group Operations
PUTAffinity Group OperationsSince 2.3SynchronousAuth Required
UpdateAffinityGroup
UpdateAffinityGroup
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
updateaffinitygroupObjectRequiredupdateaffinitygroup request body object.
nameStringOptional. The resource name.
descriptionStringOptional. The detailed description of the resource.
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 '{"updateaffinitygroup":{"name":"<name>","description":"<description>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "f8c3b350df9a3bfd960359f302a4fba2", "name": "affinity group", "description": "affinity group for test", "policy": "ANTISOFT", "type": "HOST" } }Change History
This API has no change history records yet.
