Generate S3 user credentials

Virtual Storage Platform One Object API Reference Guide

Version
3.0.x
File Size
270 KB
Audience
anonymous
Part Number
MK-24VSP1OB002-01

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.

Endpoint

POST /s3/user/generate_credentials

Request structure

Not applicable.

Response structure

{
  "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.