Cloud Enterprise Object Storage REST API

Search (SHIFT+S)




Create Access Key

POST CreateAccessKey

Creates AccessKey for user in the caller's namespace or x-emc-namespace header if provided.


Query Parameters

UserNameThe name of the user that new AccessKey belongs to.

Required Roles

This call has no restrictions.


Request Payload

No Request Payload


Response Body

Field Description Type Notes
CreateAccessKeyResponse
CreateAccessKeyResult    
AccessKey    
AccessKeyId The Id of this access key String
AccessKeySelector The access key selector String
CreateDate The date and time, in the format of YYYY-MM-DDTHH:mm:ssZ, when the access key was created. String
SecretAccessKey The secret key String
Status The status of the access key {Active | Inactive}
UserName The name of the user that the access key is associated with. String
ResponseMetadata    
RequestId String

Examples

Request
POST https://192.168.0.0:4443/iam?UserName=tt1&Action=CreateAccessKey

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:CreateAccessKeyResponse xmlns:ns2="none">
    <ResponseMetadata>
        <RequestId>0af9f5b8:17178fe9282:87b5:60</RequestId>
    </ResponseMetadata>
    <CreateAccessKeyResult>
        <AccessKey>
            <AccessKeyId>AKIAFE4086C4F2E286DD</AccessKeyId>
            <CreateDate>2020-04-15T14:50:19Z</CreateDate>
            <SecretAccessKey>HH8Ej6sJ2hQszWhDyJ+tkSTTzt8fBDTo/nD9MCvc</SecretAccessKey>
            <Status>Active</Status>
            <UserName>tt1</UserName>
        </AccessKey>
    </CreateAccessKeyResult>
</ns2:CreateAccessKeyResponse>