Modifies the status of an AccessKey pair for an Alibaba Cloud account or a RAM user.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateAccessKey

The operation that you want to perform. Set the value to UpdateAccessKey.

UserAccessKeyId String Yes LTAI4GFTgcR8m8cZQDTH****

The AccessKey ID of the AccessKey pair for which you want to modify the status.

Status String Yes Active

The status of the AccessKey pair. Valid values:

  • Active
  • Inactive
UserPrincipalName String No

The logon name of the RAM user.

If this parameter is empty, the status of the AccessKey pair for the current user is modified.

Response parameters

Parameter Type Example Description
RequestId String B9AF80E4-1565-42D9-9256-0B8B0D9FD3EC

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": "B9AF80E4-1565-42D9-9256-0B8B0D9FD3EC"

Error codes

For a list of error codes, visit the API Error Center.