Jobs /
Get job build logs
Required permission
Project > Jobs > Deployment > View Instance Logs
Path parameters
projectId
string requiredID of the project
jobId
string requiredID of the job
Query parameters
buildId
stringSelects logs for specific build.
queryType
stringrange
selects a log range and returns immediately.one ofrangestartTime
stringFetch logs generated after this timestamp.
endTime
stringFetch logs generated before this timestamp.
duration
integerRange duration in seconds. If set, only one of
startTime
orendTime
can be set.lineLimit
numberNumber of log lines to fetch.
direction
stringOrdering of log lines
one ofbackward, forwardtextIncludes
stringFilter log lines to match this search string
textNotIncludes
stringFilter log lines to not match this search string
regexIncludes
stringFilter log lines to match this regular expression
regexNotIncludes
stringFilter log lines to not match this regular expression
Response body
- {object}
Response object.
data
[array] requiredResult data.
- {object}
containerId
string requiredlog
requiredts
string required
GET /v1/projects/{projectId}/jobs/{jobId}/build-logs
Example response
200 OK
JSON
{
"data": [
{
"log": "stdout F This is a log line",
"ts": "2023-03-21T15:01:17.310Z"
}
]
}