GET /templates/{templateID}/builds/{buildID}/logs
Template build logs
Get template build logs
Параметры
templateID·string· путь · обязательноbuildID·string· путь · обязательноpageCursor·string· запрос · необязательноOpaque continuation cursor returned as nextCursor by the previous page
Максимальная длина:
512cursor·integer· запрос · необязательноStarting timestamp of the logs that should be returned in milliseconds
Формат:
int64Минимум:
0limit·integer· запрос · необязательноMaximum number of logs that should be returned
Формат:
int32По умолчанию:
100Минимум:
0Максимум:
100direction·LogsDirection· запрос · необязательноDirection of the logs that should be returned
Допустимые значения для
LogsDirection:forward|backwardlevel·LogLevel· запрос · необязательноState of the sandbox
Допустимые значения для
LogLevel:debug|info|warn|errorsource·LogsSource· запрос · необязательноSource of the logs that should be returned from
Допустимые значения для
LogsSource:temporary|persistent
Ответы
200
Successfully returned the template build logs
Content-Type: application/json
Схема: TemplateBuildLogsResponse
logs·array<BuildLogEntry>· обязательноBuild logs structured
По умолчанию:
[]logs.id·string· необязательноStable identifier used to reconcile overlapping live log pages
logs.timestamp·string· обязательноTimestamp of the log entry
Формат:
date-timelogs.message·string· обязательноLog message content
logs.level·LogLevel· обязательноState of the sandbox
Допустимые значения для
LogLevel:debug|info|warn|errorlogs.step·string· необязательноStep in the build process related to the log entry
nextCursor·string· необязательноOpaque continuation cursor for the next page
source·LogsSource· необязательноActual source used to serve this page
Допустимые значения для
LogsSource:temporary|persistent
401
Authentication error
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
404
Not found
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
500
Server error
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError