Read a template build's log
Read a build's log, oldest first. A log is kept for seven days; the build's own status and timings outlive it.
Read a build's log, oldest first. A log is kept for seven days; the build's own status and timings outlive it.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Build ULID
length <= 64Query Parameters
Continue from this position, taken from the next_cursor of a previous page read in the same direction. Omit it to start at the beginning of the build going forward, or at its end going backward.
length <= 128forward reads from the cursor towards the end of the build, backward reads from it towards the beginning. Backward is how a console opens a finished build, because the failure is the last line. Forward by default.
Value in
- "forward"
- "backward"
Narrow to one level
Value in
- "debug"
- "info"
- "warn"
- "error"
Page size, 200 by default
int321 <= value <= 1000Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/template-builds/string/logs"{ "items": [ { "at": "2019-08-24T14:15:22Z", "attempt": 0, "level": "debug", "message": "string", "step_index": 0, "step_name": "string" } ], "pagination": { "end_cursor": "string", "has_more": true, "next_cursor": "string" }}{ "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}