Operations Management/Access Control/AccessKey Operations
PUTAccessKey OperationsSince 3.2.0SynchronousAuth Required
ChangeAccessKeyState
ChangeAccessKeyState
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 AccessKey UUID.
Body Fields
changeaccesskeystateObjectRequiredchangeaccesskeystate request body object.
stateEventStringRequiredEnables or disables the AccessKey.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/accesskeys/{uuid}/actions
/zstack/v1/accesskeys/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/accesskeys/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changeaccesskeystate":{"stateEvent":"<stateEvent>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "defe79b1a43f35818dc6d3959b571773", "accountUuid": "d0c06c8d19f439b1b8f481dbdf3e3a3c", "userUuid": "b622d5d01ef63237878023e93ade5003", "AccessKeyID": "1234567890abcdedfhij", "AccessKeySecret": "1234567890abcdedfhij1234567890abcdedfhij", "state": "Enabled" } }Change History
This API has no change history records yet.
