machines

Read job output.

Changed on

A slice of the job's stdout or stderr from offset. Ask again from nextOffset until eof. Wakes a stopped machine, where the output is kept. Requires the machine:exec scope.

get/v1/machines/{id}/jobs/{job_id}/output

Request

Path parameters

idstring required

Machine id

job_idstring required

Job id

Query parameters

streamstring

stdout (default) or stderr

offsetinteger

Byte offset to start at (default 0)

limitinteger

Most bytes to return (default 262144, at most 1048576)

Response

Output slice

datastring required

The slice as lossy UTF-8.

dataB64string byte

The slice, byte-exact (base64).

eofboolean required

True once the job has finished and this slice reaches the end of the stream: nothing more will be written.

nextOffsetinteger required

Byte offset to ask for next.

offsetinteger required

Byte offset this slice starts at.

streamstring required

stdout or stderr.

Changes