Skip to main content
POST
Exec

인증

Authorization
string
header
기본값:Bearer {API_ACCESS_TOKEN}
필수

CoreWeave API access token sent as a bearer token.

경로 매개변수

sandboxId
string
필수

본문

application/json
sandboxId
string
필수
command
string[]
필수
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.

응답

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.