Skip to Content
Xeonr Developer Docs
API SpecificationJobs

Get Job Logs

POST
/containers.api.v1.JobService/GetJobLogs

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
AuthorizationBearer <token>

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

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

jobId?string
Length1 <= length <= 64
fromOffset?string

Read forward from this byte of the interleaved log. 0 with from_start false returns the end of the log instead.

Formatint64
Range0 <= value
limitBytes?integer

Most bytes to return. 0 means 65536.

Rangevalue <= 1048576
fromStart?boolean

Read from the start of the log rather than its end when from_offset is 0. validate:skip a bool has no bounds

[key: string]?never

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"
}