ListAccessKeys

Last Updated: Aug 25, 2016

Interface description

 Lists access keys of a specified user.

Request parameters

Action

  • Type: String
  • Required: Yes
  • Description: Operation interface, required. The parameter value is “ListAccessKeys”.

UserName

  • Type: String
  • Required: No
  • Description: User name. If you do not set this parameter upon access from a sub-account, your own access keys will be listed.

Return parameters

AccessKeys

Required permissions

Action

ram:ListAccessKeys

Resource

acs:ram:*:${AccountId}:user/${UserName}

Error messages

InvalidParameter.UserName.InvalidChars
  • HTTP Status:400
  • Error Message:The parameter - “UserName” contains invalid chars.
InvalidParameter.UserName.Length
  • HTTP Status:400
  • Error Message:The parameter - “UserName” beyond the length limit.
EntityNotExist.User
  • HTTP Status:404
  • Error Message:The user does not exist.

Operation examples

Request example

  1. https://ram.aliyuncs.com/?Action=ListAccessKeys
  2. &<Public request parameters>

Return example

XML format

  1. <ListAccessKeysResponse>
  2. <RequestId>4B450CA1-36E8-4AA2-8461-86B42BF4CC4E</RequestId>
  3. <AccessKeys>
  4. <AccessKey>
  5. <AccessKeyId>0wNEpMMlzy7szvai</AccessKeyId>
  6. <Status>Active</Status>
  7. <CreateDate>2015-01-23T12:33:18Z</CreateDate>
  8. </AccessKey>
  9. <AccessKey>
  10. <AccessKeyId>WnIWUruvfaDT37vQ</AccessKeyId>
  11. <Status>Inactive</Status>
  12. <CreateDate>2015-03-24T21:12:21Z</CreateDate>
  13. </AccessKey>
  14. </AccessKeys>
  15. </ListAccessKeysResponse>

JSON format

  1. {
  2. "RequestId" : "4B450CA1-36E8-4AA2-8461-86B42BF4CC4E",
  3. "AccessKeys":{
  4. "AccessKey":[
  5. {
  6. "AccessKeyId": "0wNEpMMlzy7szvai",
  7. "Status": "Active",
  8. "CreateDate": "2015-01-23T12:33:18Z"
  9. },
  10. {
  11. "AccessKeyId": "WnIWUruvfaDT37vQ",
  12. "Status": "Inactive",
  13. "CreateDate": "2015-03-24T21:12:21Z"
  14. }
  15. ]
  16. }
  17. }
Thank you! We've received your feedback.