Get pod logs

View as Markdown
Returns the last N lines of logs from a pod in the deployment's namespace.

Authentication

AuthorizationBearer
OAuth 2.0 device flow or platform session token

Path parameters

namespacestringRequired
Kubernetes namespace for the deployment

Query parameters

accountstringRequired

Account name (used for ownership verification)

podstringRequired
Pod name
containerstringOptional

Container name (defaults to first container)

tailLinesintegerOptionalDefaults to 200

Number of log lines to return (default 200)

Response

Log output as plain text

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error