Skip to content
Start here

Create a new application

client.Containers.Applications.New(ctx, params) (*ApplicationNewResponse, 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
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

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

Example:X-Auth-Email: user@example.com

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

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
ParametersExpand Collapse
params ApplicationNewParams
AccountID param.Field[string]

Path param: Account identifier.

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

Image string

Image url.

AuthorizedKeys []ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationAuthorizedKeyOptional
PublicKey string

An SSH public key.

Name stringOptional

Optional human readable name for this key.

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.

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.

EnvironmentVariables []ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationEnvironmentVariableOptional

Container environment variables.

Name string

An environment variable name.

Value string

An environment variable value.

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
One of the following:
const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeLite ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "lite"
const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeBasic ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "basic"
const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeStandard1 ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "standard-1"
const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeStandard2 ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "standard-2"
const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeStandard3 ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "standard-3"
const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceTypeStandard4 ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationInstanceType = "standard-4"
Observability ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationObservabilityOptional

Settings for deployment observability such as logging.

Logs ApplicationNewParamsCcContainersCreateScheduledApplicationRequestConfigurationObservabilityLogsOptional

Observability logging settings.

Enabled boolOptional
Instances param.Field[int64]

Body param: The initial number of deployments to create.

minimum0
MaxInstances param.Field[int64]

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

minimum0
Name param.Field[string]

Body param: The name for this application.

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

const ApplicationNewParamsCcContainersCreateScheduledApplicationRequestSchedulingPolicyDefault ApplicationNewParamsCcContainersCreateScheduledApplicationRequestSchedulingPolicy = "default"
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.

Regions []stringOptional

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

ApplicationNewParamsCcContainersCreateScheduledApplicationRequestDurableObjectsCcDurableObjectsConfigurationNamespaceID
NamespaceID string

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

ApplicationNewParamsCcContainersCreateScheduledApplicationRequestDurableObjectsCcDurableObjectsConfigurationScriptAndClass
ClassName string

The class name of the durable object.

ScriptName string

The script name where the durable object class is defined.

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

Logs ApplicationNewParamsCcContainersCreateScheduledApplicationRequestObservabilityLogsOptional

Observability logging settings.

Enabled boolOptional
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
ReturnsExpand Collapse
type ApplicationNewResponse interface{…}

The public Containers API returns an application.

One of the following:
type ApplicationNewResponseCcScheduledApplication struct{…}

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

ID string

An Application ID represents an identifier of an application.

AccountID string

A unique identifier for the user’s account.

Configuration ApplicationNewResponseCcScheduledApplicationConfiguration

User-specified container configuration.

Image string

Image url.

AuthorizedKeys []ApplicationNewResponseCcScheduledApplicationConfigurationAuthorizedKeyOptional
PublicKey string

An SSH public key.

Name stringOptional

Optional human readable name for this key.

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.

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.

EnvironmentVariables []ApplicationNewResponseCcScheduledApplicationConfigurationEnvironmentVariableOptional

Container environment variables.

Name string

An environment variable name.

Value string

An environment variable value.

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
One of the following:
const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeLite ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "lite"
const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeBasic ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "basic"
const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeStandard1 ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "standard-1"
const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeStandard2 ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "standard-2"
const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeStandard3 ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "standard-3"
const ApplicationNewResponseCcScheduledApplicationConfigurationInstanceTypeStandard4 ApplicationNewResponseCcScheduledApplicationConfigurationInstanceType = "standard-4"
Observability ApplicationNewResponseCcScheduledApplicationConfigurationObservabilityOptional

Settings for deployment observability such as logging.

Logs ApplicationNewResponseCcScheduledApplicationConfigurationObservabilityLogsOptional

Observability logging settings.

Enabled boolOptional
CreatedAt string

UTC timestamp string in ISO 8601 format.

Instances int64

Number of deployments to create.

Name string

The application name.

SchedulingPolicy ApplicationNewResponseCcScheduledApplicationSchedulingPolicy

The scheduling policy to use for an application.

One of the following:
const ApplicationNewResponseCcScheduledApplicationSchedulingPolicyDefault ApplicationNewResponseCcScheduledApplicationSchedulingPolicy = "default"
const ApplicationNewResponseCcScheduledApplicationSchedulingPolicyDurableObject ApplicationNewResponseCcScheduledApplicationSchedulingPolicy = "durable_object"
UpdatedAt string

UTC timestamp string in ISO 8601 format.

Version int64
ActiveRolloutID stringOptional

An identifier for a specific rollout within an application.

Constraints ApplicationNewResponseCcScheduledApplicationConstraintsOptional
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.

Regions []stringOptional
DurableObjects ApplicationNewResponseCcScheduledApplicationDurableObjectsOptional

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

NamespaceID string

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

Health ApplicationNewResponseCcScheduledApplicationHealthOptional
Errors []ApplicationNewResponseCcScheduledApplicationHealthError
Event ApplicationNewResponseCcScheduledApplicationHealthErrorsEvent

An event within a Placement or a Job.

ID string
Details map[string, unknown]
Message string
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.
One of the following:
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameSchedulerPlaced ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "SchedulerPlaced"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameNetworkingIPAssigned ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "NetworkingIPAssigned"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmStarted ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMStarted"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameImagePulled ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "ImagePulled"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameImagePullError ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "ImagePullError"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmFailedToStart ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMFailedToStart"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameNetworkingIPAssignmentFailed ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "NetworkingIPAssignmentFailed"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmRunning ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMRunning"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmStopping ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMStopping"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmStopped ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMStopped"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameVmFailed ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "VMFailed"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameRuntimeStartFailed ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "RuntimeStartFailed"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameSSHStarted ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "SSHStarted"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameServiceHealthUpdates ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "ServiceHealthUpdates"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameCheckUpdate ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "CheckUpdate"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameDurableObjectConnected ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "DurableObjectConnected"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventNameContainerStarted ApplicationNewResponseCcScheduledApplicationHealthErrorsEventName = "ContainerStarted"
StatusChange map[string, unknown]
Time string

UTC timestamp string in ISO 8601 format.

Type ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType
One of the following:
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeInfo ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "Info"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeError ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "Error"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeWarn ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "Warn"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeUserError ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "UserError"
const ApplicationNewResponseCcScheduledApplicationHealthErrorsEventTypeSystemError ApplicationNewResponseCcScheduledApplicationHealthErrorsEventType = "SystemError"
InstanceID string

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

Instances ApplicationNewResponseCcScheduledApplicationHealthInstances

Shows a count of application instance states.

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.

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.

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.
One of the following:
const ApplicationNewResponseCcScheduledApplicationHealthSummaryHealthy ApplicationNewResponseCcScheduledApplicationHealthSummary = "healthy"
const ApplicationNewResponseCcScheduledApplicationHealthSummaryDegraded ApplicationNewResponseCcScheduledApplicationHealthSummary = "degraded"
const ApplicationNewResponseCcScheduledApplicationHealthSummaryUnhealthy ApplicationNewResponseCcScheduledApplicationHealthSummary = "unhealthy"
const ApplicationNewResponseCcScheduledApplicationHealthSummaryPending ApplicationNewResponseCcScheduledApplicationHealthSummary = "pending"
MaxInstances int64Optional

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

Observability ApplicationNewResponseCcScheduledApplicationObservabilityOptional

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

Logs ApplicationNewResponseCcScheduledApplicationObservabilityLogsOptional

Observability logging settings.

Enabled boolOptional
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
type ApplicationNewResponseCcDurableObjectApplication struct{…}

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

ID string

An Application ID represents an identifier of an application.

AccountID string

A unique identifier for the user’s account.

CreatedAt string

UTC timestamp string in ISO 8601 format.

DurableObjects ApplicationNewResponseCcDurableObjectApplicationDurableObjects

Durable object configuration using a namespace ID.

NamespaceID string

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

Name string

The application name.

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.

UpdatedAt string

UTC timestamp string in ISO 8601 format.

Configuration ApplicationNewResponseCcDurableObjectApplicationConfigurationOptional

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

AuthorizedKeys []ApplicationNewResponseCcDurableObjectApplicationConfigurationAuthorizedKeyOptional
PublicKey string

An SSH public key.

Name stringOptional

Optional human readable name for this key.

WranglerSSH ApplicationNewResponseCcDurableObjectApplicationConfigurationWranglerSSHOptional

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

Enabled boolOptional
Port int64Optional
maximum65535
minimum1
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.

Instances ApplicationNewResponseCcDurableObjectApplicationHealthInstances

Counts of observed non-terminal instances.

Active int64

Number of instances whose runtime reports running or stopping.

minimum0
Starting int64

Number of instances whose runtime reports starting.

minimum0
Summary ApplicationNewResponseCcDurableObjectApplicationHealthSummaryOptional

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

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.

Logs ApplicationNewResponseCcDurableObjectApplicationObservabilityLogsOptional

Application-wide logging settings.

Enabled boolOptional

Create a new application

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)
}
{
  "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
{
  "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
}