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"
}
}
]
}List all containers in the specified project and region.
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"
}
}
]
}API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Optional. Limit the number of returned items
x <= 1000Optional. Offset value is used to exclude the first set of records from the result
x >= 0OK
Number of objects
x >= 0Objects
Show child attributes
Container address
Container creation date
Container description
Container environment variables
Container flavor
Container image
Enable/Disable api key authentication
Set to true if container is disabled
Container listening port
Container name
Container namespace
Image pull secret
"my-secret"
Container autoscaling
Show child attributes
Maximum number of instances
1 <= x <= 25Minimum number of instances
0 <= x <= 25Cooldown period in seconds
1 <= x <= 3600Scale triggers configuration
Show child attributes
Source of the container, can be 'cloud' or 'iate'
Container status
Container status message
"Some container status"
Container timeout in seconds
Container's commands
"python3 app.py -m test"
Logging configuration
Show child attributes
ID of the region in which the logs will be stored
1
Indicates if log streaming is enabled or disabled
The topic name to stream logs to
"my-log-name"
{
"destination_region_id": 1,
"enabled": true,
"retention_policy": { "period": 45 },
"topic_name": "my-log-name"
}Was this page helpful?