Generate S3 user credentials

Content Platform for Cloud Scale Management API Reference

Version
2.5.x
Audience
anonymous
Part Number
MK-HCPCS007-08

You can generate new S3 user credentials for access to the bucket. The method user/generate_credentials returns a new secretKey-accessKey pair corresponding to the user associated with the OAuth token that was submitted. The creation of a new key pair invalidates any previous key pairs for the user. A user account cannot generate S3 credentials associated with a different user account.

HTTP request syntax (URI)

POST https://host_ip:9099/mapi/v1/s3/user/generate_credentials

Request structure

Not applicable.

Response structure

The response body is:

{
  "id": {
    "id": "uuid"
  },
  "secretKey": "key",
  "accessKey": "key"
}

Parameter

Type

Description

id UUID The ID of the user.
secretKey String The secret key of the S3 credentials to access the bucket.
accessKey String The access key of the S3 credentials to access the bucket.

Return codes

Status code

HTTP name

Description

200 OK The request was executed successfully.
401 Unauthorized Access was denied because credentials are not valid.
405 Method Not Allowed The specified HTTP method is not allowed for user data. Resend using POST.

Example

Request example:

POST https://10.10.24.195:9099/mapi/v1/s3/user/generate_credentials

JSON response:

{
  "id": {
    "id": "edded8d-99f1-43f4-88fa-0cd9032ef7bd"
  },
  "secretKey": "bff...",
  "accessKey": "TSPl8Pop..."
}