Appearance
Read a live log session's lines
GET
/devices/{device-id}/log-sessions/{session-id}/lines
Long-polls (up to 20 s) the batches a live log session collected
since ?after, proxied from Pantahub. Requires device read permission.
When the session has ended, the answer carries "ended": true and the
device's own reason for it.
Authorizations
Parameters
Path Parameters
device-id*
device id
Type
Requiredstring
session-id*
log session id (24 hex digits)
Type
Requiredstring
Query Parameters
after
Read the batches after this seq (default: all of them)
Type
string
Responses
Batches; empty until the device printed a line
application/json
JSON "batches": [ { "created_at": "string", "dropped": 0, "end": true, "lines": [ { "line": "string", "src": "pantavisor/pantavisor.log" } ], "reason": "string", "seq": 0 } ], "ended": true, "next": 0, "reason": "string"
{
}