Lybic Docs

在沙箱中执行命令

POST
/api/orgs/{orgId}/sandboxes/{sandboxId}/process

Path Parameters

sandboxId*string
orgId*string

组织 ID

Request Body

application/json

executable*string

可执行文件路径

Length1 <= length
args?array<string>

参数

Default[]
workingDirectory?string

工作目录

stdinBase64?string

可选的 stdin,以 base64 编码的字节

Response Body

application/json

curl -X POST "https://loading/api/orgs/string/sandboxes/string/process" \  -H "Content-Type: application/json" \  -d '{    "executable": "string"  }'
{
  "stdoutBase64": "",
  "stderrBase64": "",
  "exitCode": 0
}