v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Container as a Service

Create API key

Create a new API key for container authentication.

post/cloud/v1/caas/keys/{project_id}/{region_id}

Path parameters

project_idinteger required

Project id

Example:1

Project id

region_idinteger required

Region id

Example:1

Region id

Request body

descriptionstring

Key description

expirestring date-time nullable

Key expires at

is_disabledboolean

Set to true if key is disabled

namestring required

Key name

Example request

{
  "containers": [
    {
      "name": "my-container",
      "namespace": "space"
    }
  ],
  "description": "my first key",
  "expire": "2023-07-31T00:00:00Z",
  "name": "my-key"
}

Response

OK

created_atstring date-time required

Key starts to work

descriptionstring required

Key description

expirestring date-time nullable required

Key expires at

is_disabledboolean required

Set to true if key is disabled

namestring required

Key name

secretstring required

Secret api key

sourcestring required

Source of the apikey, can be 'cloud' or 'iate'

statusstring required

Key status

Example response

{
  "containers": [
    {
      "name": "my-container",
      "namespace": "space"
    }
  ],
  "created_at": "2023-08-22T11:21:00Z",
  "description": "my first key",
  "expire": "2023-07-31T00:00:00Z",
  "name": "my-key",
  "secret": "my-secret",
  "source": "cloud",
  "status": "Expired"
}