Skip to main content
Console endpoint

Execute Console Command

POST/console-commands/

Example request

application/json
{
  "resourceId": "my-interactive-resource",
  "command": "hostname"
}

Handler-checked behavior​

Replace the example resourceId with a saved resource that supports one-shot commands. resourceId and command are required; timeoutSeconds defaults to 30 and cannot exceed 3600. The request waits for the runner and returns a command record. A runner failure can return 201 Created with status: failed; inspect status, exitCode, and failure instead of treating HTTP status as command success.

See the Console guide for related tasks and context.