Skip to main content
GET
/
cloud
/
v1
/
caas
/
{project_id}
/
{region_id}
/
containers
List containers
curl --request GET \
  --url https://api.gcore.com/cloud/v1/caas/{project_id}/{region_id}/containers \
  --header 'Authorization: <api-key>'
{
  "count": 1,
  "results": [
    {
      "address": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "deploy_status": {
        "ready": 123,
        "total": 123
      },
      "description": "<string>",
      "envs": {},
      "flavor": "<string>",
      "image": "<string>",
      "is_api_key_auth": true,
      "is_disabled": true,
      "listening_port": 123,
      "name": "<string>",
      "namespace": "<string>",
      "pull_secret": "my-secret",
      "scale": {
        "max": 13,
        "min": 12,
        "cooldown_period": 60,
        "triggers": {
          "cpu": {
            "threshold": 50
          },
          "http": {
            "rate": 500,
            "window": 1800
          },
          "memory": {
            "threshold": 50
          }
        }
      },
      "source": "<string>",
      "status": "<string>",
      "status_message": "Some container status",
      "timeout": 123,
      "commands": "python3 app.py -m test",
      "logging": {
        "destination_region_id": 1,
        "enabled": true,
        "retention_policy": {
          "period": 45
        },
        "topic_name": "my-log-name"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project id

region_id
integer
required

Region id

Query Parameters

limit
integer
default:1000

Optional. Limit the number of returned items

Required range: x <= 1000
offset
integer
default:0

Optional. Offset value is used to exclude the first set of records from the result

Required range: x >= 0

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
ContainerSerializer · object[]
required

Objects