Sandboxes

Execute a command within a session

Changed on
post/sandbox-sessions/{sessionId}/exec

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

sessionId, string uuid required

Headers

Idempotency-Key, string uuid required

Request body

SandboxCommandRequest required
command, string required
timeout_seconds, integer

Command execution time from process start. Cloud defaults to 60 seconds and accepts 1–28800; local defaults to 0 (unlimited) and accepts nonnegative values. VM expiry always takes precedence. Cloud synchronous requests must return within the public connection idle limit (1000 seconds); use a session with a background process and short polling requests for longer work.

environment, object

Response

Execute a command within a session

SandboxCommandResult required
stdout, string required
stderr, string required
exit_code, integer required
stdout_truncated, boolean required
stderr_truncated, boolean required
timed_out, boolean required

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • info

      the timeout_seconds request property default value 60 was removed

    • info

      the timeout_seconds request property's max was increased from 3600.00 to 2147483647.00

    1 more change in this revision