CreateAccessKey
Creates a new AWS secret access key and corresponding MSDP S3 access key ID for the specified user. The default status for new keys is Active.
If you do not specify a user name, IAM determines the user name implicitly based on the MSDP S3 access key ID signing the request.
A user can have up to two access keys.
Request Parameters
For information about the parameters that are common to all actions, See Common Parameters.
UserName
The name of the IAM user that the new key will belong to.
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 element is returned by server.
AccessKey
A structure with details about the access key.
Type: Access key object See Data Types.
Errors
For information about the errors that are common to all actions, See Common Error Codes.
LimitExceeded
The request was rejected because it attempted to create resources beyond the limits. The error message describes the limit exceeded.
HTTP Status Code: 409
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=CreateAccessKey &UserName=User1 &Version=2010-05-08 &AUTHPARAMS
Sample Response:
<?xml version="1.0" encoding="UTF-8"?>
<CreateAccessKeyResponse
xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<ResponseMetadata>
<RequestId>1648431826555152698</RequestId>
</ResponseMetadata>
<CreateAccessKeyResult>
<AccessKey>
<AccessKeyId>2PPM4XHAKMG5JHZIUPEUG</AccessKeyId>
<CreateDate>2022-03-28T01:43:46Z</CreateDate>
<SecretAccessKey>9TvXcpw2YRYRZXZCyrCELGVWMNBZyJYY95jhDc1xgH
</SecretAccessKey>
<Status>Active</Status>
<UserName>User1</UserName>
</AccessKey>
</CreateAccessKeyResult>
</CreateAccessKeyResponse>