Creates an AccessKey for a RAM user.


Use API Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes CreateAccessKey

The name of this action.

Value: CreateAccessKey

UserName String No Alice The username of the RAM user that can call this API action to create an AccessKey.

Response parameters

Parameter Type Example value Description
AccessKey N/A N/A The AccessKey.
AccessKeyId String 0wNEpMMlzy7s**** The AccessKeyId.
AccessKeySecret String PupkTg8jdmau1cXxYacgE736PJ**** The AccessKeySecret.
CreateDate String 2015-01-23T12:33:18Z The date and time when the AccessKey was created.
Status String Active

The status of the AccessKey.

Valid values: Active | Inactive

RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368 The request ID.


Request example
&<Common parameters>

Response example

XML format


JSON format



For a list of error codes, visit the API Error Center.