POST
/
cloud
/
v1
/
caas
/
keys
/
{project_id}
/
{region_id}
curl --request POST \
  --url https://api.gcore.com/cloud/v1/caas/keys/{project_id}/{region_id} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "containers": [
    {
      "name": "my-container",
      "namespace": "space"
    }
  ],
  "description": "my first key",
  "expire": "2023-07-31T00:00:00Z",
  "is_disabled": false,
  "name": "my-key"
}'
{
  "containers": [
    {
      "name": "my-container",
      "namespace": "space"
    }
  ],
  "created_at": "2023-08-22T11:21:00Z",
  "description": "my first key",
  "expire": "2023-07-31T00:00:00Z",
  "is_disabled": false,
  "name": "my-key",
  "secret": "my-secret",
  "source": "cloud",
  "status": "Expired"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project id

Examples:

1

region_id
integer
required

Region id

Examples:

1

Body

application/json

Response

200 - application/json

OK

The response is of type object.