Execution

Get an execution result

get/executions/{id}

Request

  • Base URL: https://sandbox-as-a-service.com/v1
  • URL: https://sandbox-as-a-service.com/v1/executions/{id}
  • Auth: HTTP bearer

Response

The execution record.

object'execution'
idstring
sandbox_idstring
status'running' | 'completed' | 'timeout' | 'failed' | 'cancelled'

cancelled means the client disconnected from a streamed execution; the command was killed.

exit_codeinteger nullable
stdoutstring
stderrstring
truncatedboolean

True when output exceeded 1 MiB per stream and was cut off.

duration_msinteger nullable
started_atstring date-time nullable
finished_atstring date-time nullable

Example response

{
  "id": "exec_4b1d2e3f4a5b6c7d",
  "sandbox_id": "sbx_9f2c4a1b8d3e6f0a12",
  "stdout": "hello from the sandbox\n",
  "duration_ms": 412
}

Changes

No recorded changes to this operation across all 1 revision of this API.