Get Sandbox Logs
Returns retained run-log chunks of a sandbox (the same records TailSandboxLogs 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, for a forward read; more says later chunks exist.
Access: namespace VIEWER or above (read)
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 the chunks after this cursor. 0 returns the latest chunks.
int640 <= valueMost chunks to return. 0 means 200.
value <= 2000Restrict to one run, counting from 1. 0 means every run.
value <= 4294967295Stop adding chunks past this many bytes of output. 0 means 65536.
value <= 1048576Response Body
application/json
application/json
curl -X POST "https://containers.xeonr.io/containers.api.v1.SandboxService/GetSandboxLogs" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"chunks": [
{
"stderr": true,
"atUnix": "string",
"offset": "string",
"run": 0,
"data": "string"
}
],
"nextOffset": "string",
"more": true
}Get Sandbox POST
Returns one sandbox. Egress fields are filled from the live egress binding, so they show what the proxy enforces now (expired grants are omitted). NotFound for an unknown id. **Access:** namespace VIEWER or above (read)
Grant Egress POST
Adds one additive, independently revocable egress grant on top of the sandbox's base policy; the egress in force is the base unioned with every active grant. Takes effect on the proxy through the live policy feed without a restart. ttl_sec 0 means no expiry; otherwise at most 86400. The reason is recorded in the audit log. Rejects a missing policy (InvalidArgument) and a sandbox created without egress configured (FailedPrecondition); Unimplemented when egress signing is not configured. Returns the new grant id. **Access:** namespace OPERATOR or above (write)