Skip to main content
POST
Exec

Autorisations

Authorization
string
header
défaut:Bearer {API_ACCESS_TOKEN}
requis

CoreWeave API access token sent as a bearer token.

Paramètres de chemin

sandboxId
string
requis

Corps

application/json
sandboxId
string
requis
command
string[]
requis
env
object
maxOutputBytes
integer<int32>

Cap on buffered output per stream; output beyond this is truncated (see ExecResponse.*_truncated). 0 = platform default.

container
string

Target container name. Empty = the primary. Unknown names and platform sidecar names are INVALID_ARGUMENT (CWSANDBOX_INVALID_REQUEST). In a CONTROL_CONTAINER_ENGINE sandbox, cws-engine is the only container and the primary.

Réponse

OK

stdout
string<bytes>
stderr
string<bytes>
exitCode
integer<int32>
stdoutTruncated
boolean
stderrTruncated
boolean
stdoutBytesProduced
string

Total bytes the process wrote to stdout, even when stdout was truncated.

stderrBytesProduced
string

Total bytes the process wrote to stderr, even when stderr was truncated.