API reference · Schema
PodExecResult
objectstringrequiredAlways `exec_result`: the type of this object
One of
exec_resultexit_codeinteger | nullrequiredNull when it timed out or could not start
stdoutstringrequiredUTF-8 (invalid sequences replaced)
stderrstringrequiredUTF-8 (invalid sequences replaced)
timed_outbooleanrequiredThe command did not finish within `timeout_seconds`
truncatedbooleanrequiredOutput beyond 1048576 bytes per stream was discarded
duration_msintegerrequiredHow long the command ran, in milliseconds
errorstring | nullrequiredWhy the command could not be run; null when it ran (finished or timed out)
Example
{
"object": "exec_result",
"exit_code": 1,
"stdout": "string",
"stderr": "string",
"timed_out": true,
"truncated": true,
"duration_ms": 1,
"error": "string"
}Used by
- Run a command in the pod and wait for it (bounded time and output)
POST /v1/pods/{pod_id}/exec