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

Executes a command in a running container instance and returns its buffered standard output, standard error, and exit code.

Servers

Path parameters

Name Type Required Description
application_id String Yes
account_id String Yes

Account identifier.

instance_id String Yes

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
cwd String No

Working directory for the command.

command[] Array Yes

Command and arguments to execute without shell interpretation.

user String No

Container user to execute the command as.

stdin String No

Base64-encoded bytes to provide to the command on stdin.

environment_variables Object No

Environment variables to set for the command.

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.