Get Job Logs
Returns up to limit_bytes (0 means 65536, at most 1048576) of a job's interleaved log as chunks, each with its offset and stderr flag. With from_offset 0 and from_start false it returns the last limit_bytes of the log; otherwise it reads forward from from_offset. next_offset resumes the read; more says output past it already exists. A terminal job is read from its stored copy (the first 256 KiB of each stream); a running job is read from its pod, which holds what it has written so far. Unimplemented for a running job when the api has no cluster access.
Access: any role in the namespace (viewer, operator or admin — via Xeonr team membership or a namespace API key), or a platform admin.
Required scopes: container-platform:namespaces:read
Authorization
BearerAuth A namespace-scoped API key (cpk_…) for machines, or a Xeonr Auth OIDC
token for humans. The key's namespace and role are pinned server-side.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
1 <= length <= 64Read forward from this byte of the interleaved log. 0 with from_start false returns the end of the log instead.
int640 <= valueMost bytes to return. 0 means 65536.
value <= 1048576Read from the start of the log rather than its end when from_offset is 0. validate:skip a bool has no bounds
Response Body
application/json
application/json
curl -X POST "https://containers.xeonr.io/containers.api.v1.JobService/GetJobLogs" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"chunks": [
{
"offset": "string",
"data": "string",
"stderr": true
}
],
"nextOffset": "string",
"more": true,
"state": "JOB_STATE_UNSPECIFIED"
}Get Job POST
Returns a job record, including its persisted spec and, once terminal, its result (captured stdout/stderr are capped at 256 KiB each). **Access:** any role in the namespace (viewer, operator or admin — via Xeonr team membership or a namespace API key), or a platform admin.
List Jobs POST
Lists jobs newest first, optionally filtered by `environment_id` and `state` (UNSPECIFIED = any). `page_size` 0 means 100 and is clamped to 1000; `page_token` is the opaque offset from `next_page_token`. An empty `namespace` lists every namespace and is refused (InvalidArgument) for anyone but a platform admin. **Access:** any role in the namespace (viewer, operator or admin — via Xeonr team membership or a namespace API key), or a platform admin.