Skip to main content
POST
/
api
/
v1
/
objectstorageendpoints
/
{objectStorageEndpointID}
/
accesskeys
Create endpoint access key
curl --request POST \
  --url https://api.example.com/api/v1/objectstorageendpoints/{objectStorageEndpointID}/accesskeys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": {
    "name": "bucket-admin-key",
    "description": "Access key for bucket administration"
  },
  "spec": {
    "identityPolicy": "bucket-admin"
  }
}
'
{
  "metadata": {
    "id": "4c1de9c4-8d6c-4b32-8413-42e0b070d5d4",
    "name": "bucket-admin-key",
    "organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
    "projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
    "creationTime": "2024-05-31T14:11:00Z",
    "createdBy": "john.doe@acme.com",
    "provisioningStatus": "provisioned",
    "healthStatus": "healthy"
  },
  "spec": {
    "identityPolicy": "bucket-admin",
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "secret": "..."
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nscale.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Operation requires OAuth 2.0 bearer token authentication.

Path Parameters

objectStorageEndpointID
string
required

The object storage endpoint unique identifier. A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.

Required string length: 1 - 63

Body

application/json

A request to create an object storage access key.

An object storage access key create request.

metadata
object
required

Metadata required for all API resource reads and writes.

spec
object
required

An object storage access key create specification.

Response

A newly created object storage access key. The generated secret is returned only once.

An object storage access key create response.

metadata
object
required

Metadata required by project scoped resource reads.

spec
object
required

An object storage access key create response specification.