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.