Skip to the page

A resource's logs

GET/v1/organisations/{id}/environments/{envId}/resources/{rid}/logs

Operation resources.logs · since 2026-11-05 · stable

Needs a session withreadscopeAnswers200 OK

A service: { "lines", "cursor" }; pass cursor back as after. A database or store: { "components", "lines", "truncated" }.

Path parameters

idstring (uuid)required
The organisation id.
envIdstring (uuid)required
The environment id.
ridstringrequired
The resource id (a service's id for the cursor form), or its name.

Query parameters

afterstringoptional
A service: the cursor from the last answer, to read only newer lines.
tailinteger, 1 to 2000optional
A service: lines to start with (default 500).
previous"true" or "false"optional
A service: the container before its last restart.
levelstringoptional
A database or store: "error", "warn", "info" or "debug".
sincestringoptional
A database or store: how far back, like 30m or 2h (default 1h).
limitinteger, 1 to 2000optional
A database or store: lines at most (default 300).

Errors

Every error is { "error", "message", "detail"? } (Errors and references). Besides the codes any route can answer.

GET/v1/organisations/{id}/environments/{envId}/resources/{rid}/logs
curl "https://api.rykloud.com/v1/organisations/$ORG_ID/environments/$ENV_ID/resources/$RESOURCE_ID/logs" \
  -H "Authorization: Bearer $RYKLOUD_TOKEN"
With the rykloud CLI
rykloud resources logs RESOURCE [flags]

Command reference: rykloud resources logs