Skip to main content
GET
Stream the output of a command

Authorizations

Authorization
string
header
required

An API key that starts with vms_. Make one in Settings > API keys.

Path Parameters

id
string
required

The ID of the sandbox.

commandId
string
required

The ID of the command.

Query Parameters

after
integer
Required range: -1 <= x <= 9007199254740991

Response

Each line is one JSON event: started, then stdout and stderr, then exit. Each event has a seq that starts at 0. When no event comes for 15 seconds, the stream sends an empty line. Skip empty lines.

type
string
required
Allowed value: "started"
seq
integer
required
Required range: 0 <= x <= 9007199254740991
at
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
commandId
string
required

The ID of a record, such as a slot or a command.

Pattern: ^[a-z0-9_]{1,64}$
pid
integer
required
Required range: x <= 9007199254740991