Cloud Enterprise Object Storage REST API

Search (SHIFT+S)




List Access Keys

POST ListAccessKeys

Returns information about the access key IDs associated with the specified IAM user. If there is none, the operation returns an empty list.


Query Parameters

MarkerMarker is obtained from paginated response from the previous query. Use this only if the response indicates it is truncated.
MaxItemsIndicates the maximum number of elements to be returned in the response.
PathPrefixPath prefix for filtering the results. Optional, default to "/". Only "/" is allowed.
UserNameName of the user to list accesskeys.

Required Roles

This call has no restrictions.


Request Payload

No Request Payload


Response Body

Field Description Type Notes
ListAccessKeysResponse
ListAccessKeysResult    
AccessKeys 0-* Elements
IsTruncated A flag that indicates whether there are more items to return. Boolean
Marker When isTruncated is true, this element needs to be sent in the Marker parameter for subsequent pagination requests. String
ResponseMetadata    
RequestId String

Examples

Request
POST https://192.168.0.0:4443/iam?UserName=tt1&Action=ListAccessKeys
Accept: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
x-emc-namespace: <namespace>
Response
HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:ListAccessKeysResponse xmlns:ns2="none">
    <ResponseMetadata>
        <RequestId>0af9f5b8:17178fe9282:87ef:b</RequestId>
    </ResponseMetadata>
    <ListAccessKeysResult>
        <AccessKeyMetadata>
            <member>
                <AccessKeyId>AKIA681EB7D2520E6455</AccessKeyId>
                <CreateDate>2020-04-15T14:14:37Z</CreateDate>
                <Status>Active</Status>
                <UserName>tt1</UserName>
            </member>
            <member>
                <AccessKeyId>AKIAFE4086C4F2E286DD</AccessKeyId>
                <CreateDate>2020-04-15T14:15:29Z</CreateDate>
                <Status>Active</Status>
                <UserName>tt1</UserName>
            </member>
        </AccessKeyMetadata>
        <IsTruncated>false</IsTruncated>
    </ListAccessKeysResult>
</ns2:ListAccessKeysResponse>