Skip to content
Start here

Instances

List container instances (deprecated)
Deprecated
client.containers.applications.instances.listV1(stringapplicationID, InstanceListV1Params { account_id, name_prefix, page_token, 2 more } params, RequestOptionsoptions?): ContainersInstancesV1Pagination<InstanceListV1Response { id, application_id, image, 5 more } >
GET/accounts/{account_id}/containers/applications/{application_id}/instances
List container instances
client.containers.applications.instances.list(stringapplicationID, InstanceListParams { account_id, name_prefix, page_token, 2 more } params, RequestOptionsoptions?): PageTokenPagination<InstanceListResponse { id, application_id, image, 5 more } >
GET/accounts/{account_id}/containers/applications/{application_id}/instances-v2
Get a container instance
client.containers.applications.instances.get(stringinstanceID, InstanceGetParams { account_id, application_id } params, RequestOptionsoptions?): InstanceGetResponse { id, application_id, image, 5 more }
GET/accounts/{account_id}/containers/applications/{application_id}/instances/{instance_id}
ModelsExpand Collapse
InstanceListV1Response { id, application_id, image, 5 more }

The last-reported state of a logical container instance.

id: string

A container instance ID (64-character hex Durable Object actor ID).

maxLength64
minLength64
application_id: string

An Application ID represents an identifier of an application.

image: string

The image for the current container placement, when one is available.

status: Status { state, updated_at, exit_code }

The latest known status of a container instance.

state: "provisioning" | "running" | "failed" | 5 more

The current lifecycle state of a container instance.

One of the following:
"provisioning"
"running"
"failed"
"stopping"
"stopped"
"unhealthy"
"inactive"
"unknown"
updated_at: string

UTC timestamp string in ISO 8601 format.

exit_code?: number

The process exit code, when the runtime reports one.

configuration?: Configuration { disk, memory, vcpu }

The resources allocated to the container instance.

disk: number

Disk allocated to the container instance, in decimal MB.

minimum1
memory: number

Memory allocated to the container instance, in MiB.

minimum1
vcpu: number

Number of virtual CPUs allocated to the container instance.

exclusiveMinimum
minimum0
location?: Location { name, region }

The location of the instance’s current container placement.

name: string

Unique location code used to identify locations on a logical level.

region: string

Represents a group of datacenters. Choose one of “AFR”, “APAC”, “EEUR”, “ENAM”, “WNAM”, “ME”, “OC”, “SAM”, or “WEUR”.

name?: string

The customer-provided instance name, when available. Its UTF-8 encoding uses at most 1,024 bytes.

started_at?: string

The time at which the current container placement started, when one exists.

InstanceListResponse { id, application_id, image, 5 more }

The last-reported state of a logical container instance.

id: string

A container instance ID (64-character hex Durable Object actor ID).

maxLength64
minLength64
application_id: string

An Application ID represents an identifier of an application.

image: string

The image for the current container placement, when one is available.

status: Status { state, updated_at, exit_code }

The latest known status of a container instance.

state: "provisioning" | "running" | "failed" | 5 more

The current lifecycle state of a container instance.

One of the following:
"provisioning"
"running"
"failed"
"stopping"
"stopped"
"unhealthy"
"inactive"
"unknown"
updated_at: string

UTC timestamp string in ISO 8601 format.

exit_code?: number

The process exit code, when the runtime reports one.

configuration?: Configuration { disk, memory, vcpu }

The resources allocated to the container instance.

disk: number

Disk allocated to the container instance, in decimal MB.

minimum1
memory: number

Memory allocated to the container instance, in MiB.

minimum1
vcpu: number

Number of virtual CPUs allocated to the container instance.

exclusiveMinimum
minimum0
location?: Location { name, region }

The location of the instance’s current container placement.

name: string

Unique location code used to identify locations on a logical level.

region: string

Represents a group of datacenters. Choose one of “AFR”, “APAC”, “EEUR”, “ENAM”, “WNAM”, “ME”, “OC”, “SAM”, or “WEUR”.

name?: string

The customer-provided instance name, when available. Its UTF-8 encoding uses at most 1,024 bytes.

started_at?: string

The time at which the current container placement started, when one exists.

InstanceGetResponse { id, application_id, image, 5 more }

The last-reported state of a logical container instance.

id: string

A container instance ID (64-character hex Durable Object actor ID).

maxLength64
minLength64
application_id: string

An Application ID represents an identifier of an application.

image: string

The image for the current container placement, when one is available.

status: Status { state, updated_at, exit_code }

The latest known status of a container instance.

state: "provisioning" | "running" | "failed" | 5 more

The current lifecycle state of a container instance.

One of the following:
"provisioning"
"running"
"failed"
"stopping"
"stopped"
"unhealthy"
"inactive"
"unknown"
updated_at: string

UTC timestamp string in ISO 8601 format.

exit_code?: number

The process exit code, when the runtime reports one.

configuration?: Configuration { disk, memory, vcpu }

The resources allocated to the container instance.

disk: number

Disk allocated to the container instance, in decimal MB.

minimum1
memory: number

Memory allocated to the container instance, in MiB.

minimum1
vcpu: number

Number of virtual CPUs allocated to the container instance.

exclusiveMinimum
minimum0
location?: Location { name, region }

The location of the instance’s current container placement.

name: string

Unique location code used to identify locations on a logical level.

region: string

Represents a group of datacenters. Choose one of “AFR”, “APAC”, “EEUR”, “ENAM”, “WNAM”, “ME”, “OC”, “SAM”, or “WEUR”.

name?: string

The customer-provided instance name, when available. Its UTF-8 encoding uses at most 1,024 bytes.

started_at?: string

The time at which the current container placement started, when one exists.