List container instances (deprecated)
Deprecated
GET/accounts/{account_id}/containers/applications/{application_id}/instances
Deprecated: use instances-v2 instead. Lists container instances belonging to an application.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Path Parameters
List container instances (deprecated)
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/containers/applications/$APPLICATION_ID/instances \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": {
"instances": [
{
"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"application_id": "application_id",
"image": "image",
"status": {
"state": "provisioning",
"updated_at": "2021-04-01T12:32:41.488Z",
"exit_code": 0
},
"configuration": {
"disk": 1,
"memory": 1,
"vcpu": 1
},
"location": {
"name": "name",
"region": "WNAM"
},
"name": "name",
"started_at": "2021-04-01T12:32:41.488Z"
}
]
},
"result_info": {
"next_page_token": "next_page_token",
"page_token": "page_token",
"per_page": 0
},
"success": true
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": {
"instances": [
{
"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"application_id": "application_id",
"image": "image",
"status": {
"state": "provisioning",
"updated_at": "2021-04-01T12:32:41.488Z",
"exit_code": 0
},
"configuration": {
"disk": 1,
"memory": 1,
"vcpu": 1
},
"location": {
"name": "name",
"region": "WNAM"
},
"name": "name",
"started_at": "2021-04-01T12:32:41.488Z"
}
]
},
"result_info": {
"next_page_token": "next_page_token",
"page_token": "page_token",
"per_page": 0
},
"success": true
}