Skip to Content
Xeonr Developer Docs
API SpecificationApps

Get App Logs

POST
/containers.api.v1.AppService/GetAppLogs

Returns retained output chunks of an App (the same records TailAppLogs streams). With from_offset 0 it returns the latest chunks, oldest first; otherwise the chunks after that cursor. At most limit chunks (0 means 200, at most 2000) and about limit_bytes of output (0 means 65536, at most 1048576; a chunk is never split). next_offset is the cursor of the last chunk returned; more says later chunks exist.

Access: namespace VIEWER or above (read)

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

appId?string
Length1 <= length <= 64
replica?string

Restrict to one replica. Empty means every replica, merged.

Lengthlength <= 256
fromOffset?string

Read the chunks after this cursor. 0 returns the latest chunks.

Formatint64
Range0 <= value
limit?integer

Most chunks to return. 0 means 200.

Rangevalue <= 2000
limitBytes?integer

Stop adding chunks past this many bytes of output. 0 means 65536.

Rangevalue <= 1048576
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://containers.xeonr.io/containers.api.v1.AppService/GetAppLogs" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "chunks": [
    {
      "replica": "string",
      "data": "string",
      "stderr": true,
      "atUnix": "string",
      "offset": "string"
    }
  ],
  "nextOffset": "string",
  "more": true
}