ListAccessKeys
Returns the information about the access key IDs associated with the specified IAM user. If there is none, the operation returns an empty list.
If the UserName field is not specified, the user name is determined implicitly based on the MSDP S3 access key ID used to sign the request.
Request Parameters
For information about the parameters that are common to all actions, See Common Parameters.
UserName
The name of the IAM user.
This parameter is optional. If it is not included, it defaults to the user making the request.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern: [\w+=,.@-]+
Required: No
Response Elements
The following elements are returned by server.
AccessKeyMetadata.member.N
A list of objects that contains metadata about the access keys.
Type: Array of AccessKeyMetadata objects See Data Types.
IsTruncated
A flag that indicates whether there are more items to return.
Type: Boolean
Errors
For information about the errors that are common to all actions, See Common Error Codes.
NoSuchEntity
The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
HTTP Status Code: 404
ServiceFailure
The request processing has failed because of an unknown error, exception, or failure.
HTTP Status Code: 500
Examples
Sample Request:
https://msdps3.veritas.com:8443/?Action=ListAccessKeys &UserName=User1 &Version=2010-05-08 &AUTHPARAMS
Sample Response:
<?xml version="1.0" encoding="UTF-8"?>
<ListAccessKeysResponse
xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<ResponseMetadata>
<RequestId>1648432612600646944</RequestId>
</ResponseMetadata>
<ListAccessKeysResult>
<AccessKeyMetadata>
<member>
<AccessKeyId>2PPM4XHAKMG5JHZIUPEUG</AccessKeyId>
<CreateDate>2022-03-28T01:43:46Z</CreateDate>
<Status>Active</Status>
<UserName>User1</UserName>
</member>
<member>
<AccessKeyId>GAATH0QN9N5W8TBQPSKPJ</AccessKeyId>
<CreateDate>2022-03-28T01:53:02Z</CreateDate>
<Status>Active</Status>
<UserName>User1</UserName>
</member>
</AccessKeyMetadata>
<IsTruncated>false</IsTruncated>
</ListAccessKeysResult>
</ListAccessKeysResponse>