API ReferenceVm
Exec_await
Execute command in VM and await result
Path Parameters
vm_id*string
The ID of the VM to execute the command in
Request Body
application/json
command*string
terminal?string|null
timeoutMs?integer|null
Format
int64Range
0 <= valueResponse Body
application/json
application/json
curl -X POST "https://api.freestyle.sh/v1/vms/string/exec-await" \ -H "Content-Type: application/json" \ -d '{ "command": "string" }'{
"stdout": "string",
"stderr": "string",
"statusCode": 0
}{
"error": "string",
"message": "string"
}