Run a command
Starts a command in a ready sandbox and answers with its run record. A command that exits nonzero, times out or cannot start is a result, not an error.
Needs the use scope.
A valid request URL is required to generate request examples{
"sandbox": "<string>",
"run": "<string>",
"state": "running",
"command": [
"<string>"
],
"exitCode": 123,
"signal": "<string>",
"timedOut": true,
"error": "<string>",
"stdout": "<string>",
"stderr": "<string>",
"stdoutTruncated": true,
"stderrTruncated": true,
"outputHeld": true,
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"durationMs": 123
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}Authorizations
The ticket's authorization value, sent as it is (its own scheme, not Bearer), until the ticket's expiresAt.
Path Parameters
The sandbox id (sbx_ and 12 hex).
^sbx_[0-9a-f]{12}$Body
The program, then its arguments (no NUL characters).
Show child attributes
Show child attributes
The run's time limit in ms (at most 24 h).
1 <= x <= 86400000Makes a retried run return the first one's answer; the same key with a different request is idempotency_conflict. 1 to 255 printable ASCII characters without spaces (a UUID is fine).
^[\x21-\x7e]{1,255}$Response
The run.
The sandbox id.
The run id.
^run_[0-9a-f]{12}$running or done.
running, done The command.
The exit code; null while running or when a signal ended it.
The signal that ended it, if one did.
True when it hit its time limit.
Why it could not start, if it could not.
Standard output (what is kept of it).
Standard error (what is kept of it).
True once standard output passed the stored cap.
True once standard error passed the stored cap.
True when output is held back.
When it started.
When it finished.
How long it ran, in ms.
A valid request URL is required to generate request examples{
"sandbox": "<string>",
"run": "<string>",
"state": "running",
"command": [
"<string>"
],
"exitCode": 123,
"signal": "<string>",
"timedOut": true,
"error": "<string>",
"stdout": "<string>",
"stderr": "<string>",
"stdoutTruncated": true,
"stderrTruncated": true,
"outputHeld": true,
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"durationMs": 123
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "invalid_value",
"message": "<string>"
}
}