Lists the AccessKey pairs of a specified user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:ListAccessKeys |
get |
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserName |
string |
No |
The username. If a Resource Access Management (RAM) user calls this operation without specifying this parameter, the AccessKey pairs of the RAM user are listed. |
zhangq**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The return value. |
||
| AccessKeys |
object |
||
| AccessKey |
array<object> |
The collection of AccessKey pair information. |
|
|
object |
The collection of AccessKey pair information. |
||
| Status |
string |
The status of the AccessKey pair. Valid values: Active and Inactive. |
Active |
| AccessKeyId |
string |
The identity of the AccessKey pair. |
0wNEpMMlzy7s**** |
| CreateDate |
string |
The time when the AccessKey pair was created. The time is in UTC. Format: |
2015-01-23T12:33:18Z |
| RequestId |
string |
The request ID. |
4B450CA1-36E8-4AA2-8461-86B42BF4CC4E |
Examples
Success response
JSON format
{
"AccessKeys": {
"AccessKey": [
{
"Status": "Active",
"AccessKeyId": "0wNEpMMlzy7s****",
"CreateDate": "2015-01-23T12:33:18Z"
}
]
},
"RequestId": "4B450CA1-36E8-4AA2-8461-86B42BF4CC4E"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.