Object Storage

List Object Storage Keys

get
https://api.linode.com/v4beta/object-storage/keys
BETA

Returns a paginated list of Object Storage Keys for authenticating to the Object Storage S3 API.

Beta: This endpoint is in beta. Please make sure to prepend all requests with /v4beta instead of /v4, and be aware that this endpoint may receive breaking updates in the future. This notice will be removed when this endpoint is out of beta.

Authorizations

Personal Access Token
OAuth: ( object_storage:read_only)

Request Samples

curl -H "Authorization: Bearer $TOKEN" \
  https://api.linode.com/v4beta/object-storage/keys

Response Samples

{
  "data": [
    {
      "id": "",
      "label": "my-key",
      "access_key": "KVAKUTGBA4WTR2NSJQ81",
      "secret_key": "[REDACTED]"
    }
  ],
  "page": 1,
  "pages": 1,
  "results": 1
}

Responses

200: A paginated list of Object Storage Keys

data
array of objects
id
integer

This keypair's unique ID

label
string

The label given to this key. For display purposes only.

access_key
string

This keypair's access key. This is not secret.

secret_key
string

This keypair's secret key. Only returned on key creation.

page
integer
pages
integer
results
integer

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.

Create an Object Storage Key

post
https://api.linode.com/v4beta/object-storage/keys
BETA

Provisions a new Object Storage Key on your account.

Beta: This endpoint is in beta. Please make sure to prepend all requests with /v4beta instead of /v4, and be aware that this endpoint may receive breaking updates in the future. This notice will be removed when this endpoint is out of beta.

Authorizations

Personal Access Token
OAuth: ( object_storage:read_only)

Request Body Schema

label
string

The label for this keypair, for display purposes only.

Request Samples

curl -H "Content-Type: application/json" \
 -H "Authorization: Bearer $TOKEN" \
  -X POST -d '{
      "label": "my-object-storage-key"
  }' \
  https://api.linode.com/v4beta/object-storage/keys

Response Samples

{}

Responses

200: The new keypair. **This is the only time** the secret key is returned.

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.