Modifies the status of an AccessKey pair for an Alibaba Cloud account or a RAM user.
Debugging
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:
|
UserPrincipalName | String | No | test@example.onaliyun.com |
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. |
Examples
Sample requests
https://[Endpoint]/?Action=UpdateAccessKey
&UserAccessKeyId=LTAI4GFTgcR8m8cZQDTH****
&Status=Active
&UserPrincipalName=test@example.onaliyun.com
&<Common request parameters>
Sample success responses
XML
format
<UpdateAccessKeyResponse>
<RequestId>B9AF80E4-1565-42D9-9256-0B8B0D9FD3EC</RequestId>
</UpdateAccessKeyResponse>
JSON
format
{
"RequestId": "B9AF80E4-1565-42D9-9256-0B8B0D9FD3EC"
}
Error codes
For a list of error codes, visit the API Error Center.