System Management/Security Settings Interfaces/Create AccessKey (CreateAccessKey)
PUTCreate AccessKey (CreateAccessKey)Since 4.0.0SynchronousAuth Required
Enable or Disable AccessKey
Enable or Disable AccessKey
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredAccessKey UUID. Uniquely identifies the resource
Body Fields
changeaccesskeystateObjectRequiredchangeaccesskeystate request body object.
stateEventStringRequiredEnable or disable
systemTagsList系统标签。
userTagsList用户标签。
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.
