GET
/
cloud
/
v1
/
caas
/
{project_id}
/
{region_id}
/
containers
curl --request GET \
  --url https://api.gcore.com/cloud/v1/caas/{project_id}/{region_id}/containers \
  --header 'APIKey: <api-key>'
{
  "count": 1,
  "results": [
    {
      "address": "some.example.com",
      "commands": "python3 app.py -m test",
      "created_at": "2021-01-01T00:00:00Z",
      "deploy_status": {
        "ready": 1,
        "total": 2
      },
      "description": "My first container",
      "envs": {
        "ENVIRONMENT_VARIABLE": "value 2",
        "ENV_VAR": "value 1"
      },
      "flavor": "250mCPU-512MiB",
      "image": "nginx:latest",
      "is_api_key_auth": false,
      "is_disabled": false,
      "listening_port": 80,
      "logging": {
        "destination_region_id": 1,
        "enabled": true,
        "retention_policy": {
          "period": 45
        },
        "topic_name": "my-log-name"
      },
      "name": "nginx",
      "namespace": "default",
      "pull_secret": "my-secret",
      "scale": {
        "max": 2,
        "min": 1
      },
      "source": "cloud",
      "status": "RUNNING",
      "status_message": "Some container status",
      "timeout": 5
    }
  ]
}

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

Query Parameters

limit
integer
default:1000

Optional. Limit the number of returned items

Required range: 0 < x <= 1000
Examples:

1000

offset
integer
default:0

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

Required range: x >= 0
Examples:

0

Response

200 - application/json

OK

The response is of type object.