---
title: Create a new application
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Containers](https://developers.cloudflare.com/api/go/resources/containers)

[Applications](https://developers.cloudflare.com/api/go/resources/containers/subresources/applications)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Create a new application

client.Containers.Applications.New(ctx, params) (\*[ApplicationNewResponse](<https://developers.cloudflare.com/api/go/resources/containers#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/containers/applications

Create a Containers application.

Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts.

Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### ParametersExpand Collapse

<details>

<summary>

params ApplicationNewParams

</summary>

AccountID param.Field\[string]

Path param: Account identifier.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20account_id">Link to this property</a>

<details>

<summary>

Configuration param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/containers/subresources/applications/methods/create#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)">ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfiguration</a>]

Body param: Defines the deployment configuration for every deployment in this application.

</summary>

Image string

Image url.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20image">Link to this property</a>

<details>

<summary>

AuthorizedKeys \[]ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationAuthorizedKeyOptional

</summary>

PublicKey string

An SSH public key.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20authorized_keys%20%3E%20(items)%20%3E%20(property)%20public_key">Link to this property</a>

Name stringOptional

Optional human readable name for this key.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20authorized_keys%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20authorized_keys">Link to this property</a>

Command \[]stringOptional

The command that runs when the container starts, passed to the entrypoint. You can override this at run-time. If you override only the command, it gets passed to the default entrypoint specified in the image.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20command">Link to this property</a>

Entrypoint \[]stringOptional

The entry point for the container, specifying the executable to run when the container starts. You can override this at run-time. If you do, the default command from the image is ignored. Specify both entrypoint and command at run-time to completely replace the image defaults.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20entrypoint">Link to this property</a>

<details>

<summary>

EnvironmentVariables \[]ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationEnvironmentVariableOptional

Container environment variables.

</summary>

Name string

An environment variable name.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20environment_variables%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Value string

An environment variable value.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20environment_variables%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20environment_variables">Link to this property</a>

<details>

<summary>

InstanceType ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeOptional

The instance type configures vCPU, memory, and disk.

- “lite”: 1/16 vCPU, 256 MiB memory, 2 GB disk
- “basic”: 1/4 vCPU, 1 GiB memory, 4 GB disk
- “standard-1”: 1/2 vCPU, 4 GiB memory, 8 GB disk
- “standard-2”: 1 vCPU, 6 GiB memory, 12 GB disk
- “standard-3”: 2 vCPU, 8 GiB memory, 16 GB disk
- “standard-4”: 4 vCPU, 12 GiB memory, 20 GB disk

</summary>

One of the following:

const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeLite ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "lite"

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20instance_type%20%3E%20(member)%200">Link to this property</a>

const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeBasic ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "basic"

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20instance_type%20%3E%20(member)%201">Link to this property</a>

const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeStandard1 ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "standard-1"

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20instance_type%20%3E%20(member)%202">Link to this property</a>

const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeStandard2 ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "standard-2"

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20instance_type%20%3E%20(member)%203">Link to this property</a>

const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeStandard3 ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "standard-3"

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20instance_type%20%3E%20(member)%204">Link to this property</a>

const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeStandard4 ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "standard-4"

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20instance_type%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20instance_type">Link to this property</a>

<details>

<summary>

Observability ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationObservabilityOptional

Settings for deployment observability such as logging.

</summary>

<details>

<summary>

Logs ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationObservabilityLogsOptional

Observability logging settings.

</summary>

Enabled boolOptional

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration%20%3E%20(schema)%20%3E%20(property)%20observability">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20configuration">Link to this property</a>

Instances param.Field\[int64]

Body param: The initial number of deployments to create.

minimum0

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20instances">Link to this property</a>

MaxInstances param.Field\[int64]

Body param: Sets the maximum number of instances that the application can run.

minimum0

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20max_instances">Link to this property</a>

Name param.Field\[string]

Body param: The name for this application.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20name">Link to this property</a>

<details>

<summary>

SchedulingPolicy param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/containers/subresources/applications/methods/create#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20scheduling_policy%20%3E%20(schema)">ApplicationNewParamsCcContainersCreateScheduledApplicationRequestSchedulingPolicy</a>]

Body param: Selects a scheduler-backed application. Use <code>default</code> when the Containers scheduler should maintain the requested number of instances and manage deployment configuration, placement, scaling, versions, and rollouts.

</summary>

const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestSchedulingPolicyDefault <a href="https://developers.cloudflare.com/api/go/resources/containers/subresources/applications/methods/create#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20scheduling_policy%20%3E%20(schema)">ApplicationNewParamsCcContainersCreateScheduledApplicationRequestSchedulingPolicy</a> = "default"

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20scheduling_policy%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20scheduling_policy">Link to this property</a>

<details>

<summary>

Constraints param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/containers/subresources/applications/methods/create#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20constraints%20%3E%20(schema)">ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConstraints</a>]Optional

Body param

</summary>

Jurisdiction stringOptional

Restricts placement to datacenters in the selected jurisdiction. Choose “eu”, “fedramp”, or “us”. When combined with regions, EU supports EEUR and WEUR while FedRAMP and US support ENAM and WNAM.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20constraints%20%3E%20(schema)%20%3E%20(property)%20jurisdiction">Link to this property</a>

Regions \[]stringOptional

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20constraints%20%3E%20(schema)%20%3E%20(property)%20regions">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20constraints">Link to this property</a>

<details>

<summary>

DurableObjects param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/containers/subresources/applications/methods/create#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20durable_objects%20%3E%20(schema)">ApplicationNewParamsCcContainersCreateScheduledApplicationRequestDurableObjects</a>]Optional

Body param: Optionally associates this scheduler-backed application with a Durable Object namespace.

</summary>

<details>

<summary>

ApplicationNewParamsCcContainersCreateScheduledApplicationRequestDurableObjectsCcDurableObjectsConfigurationNamespaceID

</summary>

NamespaceID string

The namespace ID of the durable object namespace to use for this application.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20durable_objects%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20durable_objects%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

ApplicationNewParamsCcContainersCreateScheduledApplicationRequestDurableObjectsCcDurableObjectsConfigurationScriptAndClass

</summary>

ClassName string

The class name of the durable object.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20durable_objects%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20class_name">Link to this property</a>

ScriptName string

The script name where the durable object class is defined.

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20durable_objects%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20script_name">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20durable_objects%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20durable_objects">Link to this property</a>

<details>

<summary>

Observability param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/containers/subresources/applications/methods/create#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20observability%20%3E%20(schema)">ApplicationNewParamsCcContainersCreateScheduledApplicationRequestObservability</a>]Optional

Body param: Top-level observability settings for the application. This field is mutually exclusive with configuration.observability.

</summary>

<details>

<summary>

Logs ApplicationNewParamsCcContainersCreateScheduledApplicationRequestObservabilityLogsOptional

Observability logging settings.

</summary>

Enabled boolOptional

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20observability%20%3E%20(schema)%20%3E%20(property)%20logs%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20observability%20%3E%20(schema)%20%3E%20(property)%20logs">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20observability">Link to this property</a>

RolloutActiveGracePeriod param.Field\[int64]Optional

Body param: Grace period for active instances to stay alive before becoming eligible for shutdown signal due to a rollout, in seconds. Defaults to 0.

maximum604800

minimum0

<a href="#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rollout_active_grace_period">Link to this property</a>

</details>

[Link to this property](<#(resource)%20containers.applications%20%3E%20(method)%20create%20%3E%20(params)%200>)

##### ReturnsExpand Collapse

<details>

<summary>

type ApplicationNewResponse interface{…}

The public Containers API returns an application.

</summary>

One of the following:

<details>

<summary>

type ApplicationNewResponseCcScheduledApplication struct{…}

Describes an application and the parameters that govern how it places its instances.

</summary>

ID string

An Application ID represents an identifier of an application.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

AccountID string

A unique identifier for the user’s account.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20account_id">Link to this property</a>

<details>

<summary>

Configuration ApplicationNewResponseCcScheduledApplicationConfiguration

User-specified container configuration.

</summary>

Image string

Image url.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20image">Link to this property</a>

<details>

<summary>

AuthorizedKeys \[]ApplicationNewResponseCcScheduledApplicationConfigurationAuthorizedKeyOptional

</summary>

PublicKey string

An SSH public key.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20authorized_keys%20%3E%20(items)%20%3E%20(property)%20public_key">Link to this property</a>

Name stringOptional

Optional human readable name for this key.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20authorized_keys%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20authorized_keys">Link to this property</a>

Command \[]stringOptional

The command that runs when the container starts, passed to the entrypoint. You can override this at run-time. If you override only the command, it gets passed to the default entrypoint specified in the image.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20command">Link to this property</a>

Entrypoint \[]stringOptional

The entry point for the container, specifying the executable to run when the container starts. You can override this at run-time. If you do, the default command from the image is ignored. Specify both entrypoint and command at run-time to completely replace the image defaults.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20entrypoint">Link to this property</a>

<details>

<summary>

EnvironmentVariables \[]ApplicationNewResponseCcScheduledApplicationConfigurationEnvironmentVariableOptional

Container environment variables.

</summary>

Name string

An environment variable name.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20environment_variables%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Value string

An environment variable value.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20environment_variables%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20environment_variables">Link to this property</a>

<details>

<summary>

InstanceType ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeOptional

The instance type configures vCPU, memory, and disk.

- “lite”: 1/16 vCPU, 256 MiB memory, 2 GB disk
- “basic”: 1/4 vCPU, 1 GiB memory, 4 GB disk
- “standard-1”: 1/2 vCPU, 4 GiB memory, 8 GB disk
- “standard-2”: 1 vCPU, 6 GiB memory, 12 GB disk
- “standard-3”: 2 vCPU, 8 GiB memory, 16 GB disk
- “standard-4”: 4 vCPU, 12 GiB memory, 20 GB disk

</summary>

One of the following:

const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeLite ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "lite"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20instance_type%20%3E%20(member)%200">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeBasic ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "basic"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20instance_type%20%3E%20(member)%201">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeStandard1 ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "standard-1"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20instance_type%20%3E%20(member)%202">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeStandard2 ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "standard-2"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20instance_type%20%3E%20(member)%203">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeStandard3 ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "standard-3"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20instance_type%20%3E%20(member)%204">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeStandard4 ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "standard-4"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20instance_type%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20instance_type">Link to this property</a>

<details>

<summary>

Observability ApplicationNewResponseCcScheduledApplicationConfigurationObservabilityOptional

Settings for deployment observability such as logging.

</summary>

<details>

<summary>

Logs ApplicationNewResponseCcScheduledApplicationConfigurationObservabilityLogsOptional

Observability logging settings.

</summary>

Enabled boolOptional

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20observability%20%3E%20(property)%20logs">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration%20%3E%20(property)%20observability">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20configuration">Link to this property</a>

CreatedAt string

UTC timestamp string in ISO 8601 format.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_at">Link to this property</a>

Instances int64

Number of deployments to create.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20instances">Link to this property</a>

Name string

The application name.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

SchedulingPolicy ApplicationNewResponseCcScheduledApplicationSchedulingPolicy

The scheduling policy to use for an application.

</summary>

One of the following:

const ApplicationNewResponseCcScheduledApplicationSchedulingPolicyDefault ApplicationNewResponseCcScheduledApplicationSchedulingPolicy = "default"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20scheduling_policy%20%3E%20(member)%200">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationSchedulingPolicyDurableObject ApplicationNewResponseCcScheduledApplicationSchedulingPolicy = "durable\_object"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20scheduling_policy%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20scheduling_policy">Link to this property</a>

UpdatedAt string

UTC timestamp string in ISO 8601 format.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20updated_at">Link to this property</a>

Version int64

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20version">Link to this property</a>

ActiveRolloutID stringOptional

An identifier for a specific rollout within an application.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20active_rollout_id">Link to this property</a>

<details>

<summary>

Constraints ApplicationNewResponseCcScheduledApplicationConstraintsOptional

</summary>

Jurisdiction stringOptional

Restricts placement to datacenters in the selected jurisdiction. Choose “eu”, “fedramp”, or “us”. When combined with regions, EU supports EEUR and WEUR while FedRAMP and US support ENAM and WNAM.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20constraints%20%3E%20(property)%20jurisdiction">Link to this property</a>

Regions \[]stringOptional

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20constraints%20%3E%20(property)%20regions">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20constraints">Link to this property</a>

<details>

<summary>

DurableObjects ApplicationNewResponseCcScheduledApplicationDurableObjectsOptional

Durable object configuration stored on and returned from a Cloudchamber application.

</summary>

NamespaceID string

The namespace ID of the durable object namespace to use for this application.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20durable_objects%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20durable_objects">Link to this property</a>

<details>

<summary>

Health ApplicationNewResponseCcScheduledApplicationHealthOptional

</summary>

<details>

<summary>

Errors \[]ApplicationNewResponseCcScheduledApplicationHealthError

</summary>

<details>

<summary>

Event ApplicationNewResponseCcScheduledApplicationHealthErrorsEvent

An event within a Placement or a Job.

</summary>

ID string

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20id">Link to this property</a>

Details map\[string, unknown]

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20details">Link to this property</a>

Message string

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20message">Link to this property</a>

<details>

<summary>

Name ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName

Name of the event that describes the kind event that happened.

- SchedulerPlaced: It’s the first event that creates a container placement. It happens when the Containers runtime was able to retrieve deployment resources and start verifying everything is correct.
- NetworkingIPAssigned: It’s sent when the Containers runtime maps the IP to the container.
- VMStarted: It’s sent when the Containers runtime starts the VM. The container might remain unhealthy at this point.
- ImagePulled: It’s sent when the Containers runtime pulls the image successfully.
- ImagePullError: It’s sent when the Containers runtime is having issues pulling the image. The message and details have more information on what happened for debugging.
- VMFailedToStart: It’s sent when the Containers runtime was unable to boot the VM.
- VMStopping: It’s sent when the scheduler is stopping the VM.
- VMStopped: It’s sent when the VM finally exits.
- VMFailed: It’s sent when the scheduling of the VM failed in the current location.
- RuntimeStartFailed: It’s sent when the runtime hits an internal error.
- SSHStarted: It’s sent when the container gains network connectivity and opens the SSH port. Containers only send this event when SSH keys exist.
- CheckUpdate: Sent when the status of a health or readiness check changes. This may also affect the health status of the placement.
- DurableObjectConnected: Sent when a durable object instance connects and gains control of the deployment. This event is only sent for durable object deployments. It is sent after VMStarted.
- ContainerStarted: It’s sent when the container starts running.

</summary>

One of the following:

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameSchedulerPlaced ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "SchedulerPlaced"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%200">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameNetworkingIPAssigned ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "NetworkingIPAssigned"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%201">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmStarted ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMStarted"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%202">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameImagePulled ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "ImagePulled"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%203">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameImagePullError ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "ImagePullError"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%204">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmFailedToStart ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMFailedToStart"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%205">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameNetworkingIPAssignmentFailed ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "NetworkingIPAssignmentFailed"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%206">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmRunning ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMRunning"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%207">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmStopping ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMStopping"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%208">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmStopped ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMStopped"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%209">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmFailed ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMFailed"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%2010">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameRuntimeStartFailed ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "RuntimeStartFailed"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%2011">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameSSHStarted ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "SSHStarted"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%2012">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameServiceHealthUpdates ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "ServiceHealthUpdates"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%2013">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameCheckUpdate ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "CheckUpdate"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%2014">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameDurableObjectConnected ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "DurableObjectConnected"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%2015">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameContainerStarted ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "ContainerStarted"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name%20%3E%20(member)%2016">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20name">Link to this property</a>

StatusChange map\[string, unknown]

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20statusChange">Link to this property</a>

Time string

UTC timestamp string in ISO 8601 format.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20time">Link to this property</a>

<details>

<summary>

Type ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType

</summary>

One of the following:

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeInfo ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "Info"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeError ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "Error"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeWarn ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "Warn"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeUserError ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "UserError"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeSystemError ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "SystemError"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20type%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20event">Link to this property</a>

InstanceID string

An instance ID represents an identifier of an instance configuration that maintains an underlying placement.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20instance_id">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

Instances ApplicationNewResponseCcScheduledApplicationHealthInstances

Shows a count of application instance states.

</summary>

Active int64

Number of instances whose runtime reports the container as running (container\_status = “running”). This is a subset of the placements that remain up: an instance that is already bound to a Durable Object and serving traffic is counted under “assigned” until its container\_status catches up to “running”, so container\_status can briefly lag Durable Object attachment under churn. To estimate running, Durable-Object-bound instances, sum “active” + “assigned” rather than reading “active” alone.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20instances%20%3E%20(property)%20active">Link to this property</a>

Assigned int64

Number of instances bound to a Durable Object with a running placement whose container\_status remains behind “running”. These count as live, serving instances; “active” + “assigned” approximates the running, Durable-Object-bound count.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20instances%20%3E%20(property)%20assigned">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20instances">Link to this property</a>

<details>

<summary>

Summary ApplicationNewResponseCcScheduledApplicationHealthSummaryOptional

High-level health assessment. Only populated for “new\_instances” strategy. Based on a sample of target-version instances rather than a full count.

- “pending”: Zero target-version instances exist yet.
- “healthy”: Every sampled target-version instance reports running or active.
- “degraded”: Some sampled instances remain starting or scheduling.
- “unhealthy”: One or more sampled instances have failed.

</summary>

One of the following:

const ApplicationNewResponseCcScheduledApplicationHealthSummaryHealthy ApplicationNewResponseCcScheduledApplicationHealthSummary = "healthy"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20summary%20%3E%20(member)%200">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthSummaryDegraded ApplicationNewResponseCcScheduledApplicationHealthSummary = "degraded"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20summary%20%3E%20(member)%201">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthSummaryUnhealthy ApplicationNewResponseCcScheduledApplicationHealthSummary = "unhealthy"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20summary%20%3E%20(member)%202">Link to this property</a>

const ApplicationNewResponseCcScheduledApplicationHealthSummaryPending ApplicationNewResponseCcScheduledApplicationHealthSummary = "pending"

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20summary%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health%20%3E%20(property)%20summary">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20health">Link to this property</a>

MaxInstances int64Optional

Maximum number of instances the application allows. This is relevant for applications that auto-scale.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20max_instances">Link to this property</a>

<details>

<summary>

Observability ApplicationNewResponseCcScheduledApplicationObservabilityOptional

Top-level observability settings for the application. This field is mutually exclusive with configuration.observability.

</summary>

<details>

<summary>

Logs ApplicationNewResponseCcScheduledApplicationObservabilityLogsOptional

Observability logging settings.

</summary>

Enabled boolOptional

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20observability%20%3E%20(property)%20logs">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20observability">Link to this property</a>

RolloutActiveGracePeriod int64Optional

Grace period for active instances to stay alive before becoming eligible for shutdown signal due to a rollout, in seconds. Defaults to 0.

maximum604800

minimum0

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rollout_active_grace_period">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type ApplicationNewResponseCcDurableObjectApplication struct{…}

Each Durable Object creates and manages the lifecycle of its container instance.

</summary>

ID string

An Application ID represents an identifier of an application.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

AccountID string

A unique identifier for the user’s account.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20account_id">Link to this property</a>

CreatedAt string

UTC timestamp string in ISO 8601 format.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_at">Link to this property</a>

<details>

<summary>

DurableObjects ApplicationNewResponseCcDurableObjectApplicationDurableObjects

Durable object configuration using a namespace ID.

</summary>

NamespaceID string

The namespace ID of the durable object namespace to use for this application.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20durable_objects%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20durable_objects">Link to this property</a>

Name string

The application name.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20name">Link to this property</a>

SchedulingPolicy ApplicationNewResponseCcDurableObjectApplicationSchedulingPolicy

Selects a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Configure application-wide observability settings here. Deployment configuration, scaling, placement constraints, versions, and rollouts do not apply.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20scheduling_policy">Link to this property</a>

UpdatedAt string

UTC timestamp string in ISO 8601 format.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20updated_at">Link to this property</a>

<details>

<summary>

Configuration ApplicationNewResponseCcDurableObjectApplicationConfigurationOptional

Application-wide settings for a Durable Object-managed application.

</summary>

<details>

<summary>

AuthorizedKeys \[]ApplicationNewResponseCcDurableObjectApplicationConfigurationAuthorizedKeyOptional

</summary>

PublicKey string

An SSH public key.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20configuration%20%3E%20(property)%20authorized_keys%20%3E%20(items)%20%3E%20(property)%20public_key">Link to this property</a>

Name stringOptional

Optional human readable name for this key.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20configuration%20%3E%20(property)%20authorized_keys%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20configuration%20%3E%20(property)%20authorized_keys">Link to this property</a>

<details>

<summary>

WranglerSSH ApplicationNewResponseCcDurableObjectApplicationConfigurationWranglerSSHOptional

Configuration properties for connecting with SSH to a container using Wrangler.

</summary>

Enabled boolOptional

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20configuration%20%3E%20(property)%20wrangler_ssh%20%3E%20(property)%20enabled">Link to this property</a>

Port int64Optional

maximum65535

minimum1

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20configuration%20%3E%20(property)%20wrangler_ssh%20%3E%20(property)%20port">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20configuration%20%3E%20(property)%20wrangler_ssh">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20configuration">Link to this property</a>

<details>

<summary>

Health ApplicationNewResponseCcDurableObjectApplicationHealthOptional

Aggregate current activity for the latest observed placement of each instance. Runtime snapshots feed periodic background sweeps. Counts refresh after each complete sweep. Instance listings retain their separate three-month history for failure discovery.

</summary>

<details>

<summary>

Instances ApplicationNewResponseCcDurableObjectApplicationHealthInstances

Counts of observed non-terminal instances.

</summary>

Active int64

Number of instances whose runtime reports running or stopping.

minimum0

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20health%20%3E%20(property)%20instances%20%3E%20(property)%20active">Link to this property</a>

Starting int64

Number of instances whose runtime reports starting.

minimum0

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20health%20%3E%20(property)%20instances%20%3E%20(property)%20starting">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20health%20%3E%20(property)%20instances">Link to this property</a>

Summary ApplicationNewResponseCcDurableObjectApplicationHealthSummaryOptional

Present as pending until the first activity sweep completes; omitted afterward.

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20health%20%3E%20(property)%20summary">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20health">Link to this property</a>

<details>

<summary>

Observability ApplicationNewResponseCcDurableObjectApplicationObservabilityOptional

Application-wide logging settings for a Durable Object-managed application. The application publishes these settings to its runtime metadata. Updating them does not create a deployment or rollout.

</summary>

<details>

<summary>

Logs ApplicationNewResponseCcDurableObjectApplicationObservabilityLogsOptional

Application-wide logging settings.

</summary>

Enabled boolOptional

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20observability%20%3E%20(property)%20logs">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20observability">Link to this property</a>

</details>

<a href="#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20containers.applications%20%3E%20(model)%20ApplicationNewResponse%20%3E%20(schema)>)

### Create a new application

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/containers"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  application, err := client.Containers.Applications.New(context.TODO(), containers.ApplicationNewParams{
    AccountID: cloudflare.F("account-123"),
    Body: containers.ApplicationNewParamsBodyCcContainersCreateScheduledApplicationRequest{
      Configuration: cloudflare.F(containers.ApplicationNewParamsBodyCcContainersCreateScheduledApplicationRequestConfiguration{
        Image: cloudflare.F("image"),
      }),
      Instances: cloudflare.F(int64(0)),
      MaxInstances: cloudflare.F(int64(0)),
      Name: cloudflare.F("name"),
      SchedulingPolicy: cloudflare.F(containers.ApplicationNewParamsBodyCcContainersCreateScheduledApplicationRequestSchedulingPolicyDefault),
    },
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", application)
}
```

200 example

```
{
  "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": {
    "id": "id",
    "account_id": "account_id",
    "configuration": {
      "image": "image",
      "authorized_keys": [
        {
          "public_key": "public_key",
          "name": "name"
        }
      ],
      "command": [
        "myapp",
        "--default-option"
      ],
      "entrypoint": [
        "/bin/bash"
      ],
      "environment_variables": [
        {
          "name": "name",
          "value": "value"
        }
      ],
      "instance_type": "lite",
      "observability": {
        "logs": {
          "enabled": true
        }
      }
    },
    "created_at": "2021-04-01T12:32:41.488Z",
    "instances": 0,
    "name": "name",
    "scheduling_policy": "default",
    "updated_at": "2021-04-01T12:32:41.488Z",
    "version": 0,
    "active_rollout_id": "active_rollout_id",
    "constraints": {
      "jurisdiction": "jurisdiction",
      "regions": [
        "WNAM"
      ]
    },
    "durable_objects": {
      "namespace_id": "14758f1afd44c09b7992073ccf00b43d"
    },
    "health": {
      "errors": [
        {
          "event": {
            "id": "id",
            "details": {
              "foo": "bar"
            },
            "message": "message",
            "name": "SchedulerPlaced",
            "statusChange": {
              "foo": "bar"
            },
            "time": "2021-04-01T12:32:41.488Z",
            "type": "Info"
          },
          "instance_id": "instance_id"
        }
      ],
      "instances": {
        "active": 0,
        "assigned": 0
      },
      "summary": "healthy"
    },
    "max_instances": 0,
    "observability": {
      "logs": {
        "enabled": true
      }
    },
    "rollout_active_grace_period": 0
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "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": {
    "id": "id",
    "account_id": "account_id",
    "configuration": {
      "image": "image",
      "authorized_keys": [
        {
          "public_key": "public_key",
          "name": "name"
        }
      ],
      "command": [
        "myapp",
        "--default-option"
      ],
      "entrypoint": [
        "/bin/bash"
      ],
      "environment_variables": [
        {
          "name": "name",
          "value": "value"
        }
      ],
      "instance_type": "lite",
      "observability": {
        "logs": {
          "enabled": true
        }
      }
    },
    "created_at": "2021-04-01T12:32:41.488Z",
    "instances": 0,
    "name": "name",
    "scheduling_policy": "default",
    "updated_at": "2021-04-01T12:32:41.488Z",
    "version": 0,
    "active_rollout_id": "active_rollout_id",
    "constraints": {
      "jurisdiction": "jurisdiction",
      "regions": [
        "WNAM"
      ]
    },
    "durable_objects": {
      "namespace_id": "14758f1afd44c09b7992073ccf00b43d"
    },
    "health": {
      "errors": [
        {
          "event": {
            "id": "id",
            "details": {
              "foo": "bar"
            },
            "message": "message",
            "name": "SchedulerPlaced",
            "statusChange": {
              "foo": "bar"
            },
            "time": "2021-04-01T12:32:41.488Z",
            "type": "Info"
          },
          "instance_id": "instance_id"
        }
      ],
      "instances": {
        "active": 0,
        "assigned": 0
      },
      "summary": "healthy"
    },
    "max_instances": 0,
    "observability": {
      "logs": {
        "enabled": true
      }
    },
    "rollout_active_grace_period": 0
  },
  "success": true
}
```