POST /accounts/{account_id}/containers/applications/{application_id}/instances

Creates a new container instance within an application. The instance's container is started immediately by invoking startAndWaitForPorts on the backing Durable Object.

Servers

Path parameters

Name Type Required Description
application_id String Yes
account_id String Yes

Account identifier.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
name String Yes

A human-readable name for the instance. Used as the Durable Object name via getByName().

environment_variables Object No

Environment variables to pass to the container.

entrypoint[] Array No

Command to run in the container. Overrides the image's default entrypoint.

enable_internet Boolean No

Whether to enable outbound internet access for the container.

Default value: true

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.