Перейти к содержимому

GET /templates/{templateID}/builds/{buildID}/status

Template build status

Get template build info

Параметры

  • templateID · string · путь · обязательно

  • buildID · string · путь · обязательно

  • logsOffset · integer · запрос · необязательно

    Index of the starting build log that should be returned with the template

    Формат: int32

    По умолчанию: 0

    Минимум: 0

  • limit · integer · запрос · необязательно

    Maximum number of logs that should be returned

    Формат: int32

    По умолчанию: 100

    Минимум: 0

    Максимум: 100

  • level · LogLevel · запрос · необязательно

    State of the sandbox

    Допустимые значения для LogLevel: debug | info | warn | error

Ответы

200

Successfully returned the template

Content-Type: application/json

Схема: TemplateBuildInfo

  • logs · array<string> · обязательно

    Build logs

    По умолчанию: []

  • logEntries · array<BuildLogEntry> · обязательно

    Build logs structured

    По умолчанию: []

  • logEntries.id · string · необязательно

    Stable identifier used to reconcile overlapping live log pages

  • logEntries.timestamp · string · обязательно

    Timestamp of the log entry

    Формат: date-time

  • logEntries.message · string · обязательно

    Log message content

  • logEntries.level · LogLevel · обязательно

    State of the sandbox

    Допустимые значения для LogLevel: debug | info | warn | error

  • logEntries.step · string · необязательно

    Step in the build process related to the log entry

  • templateID · string · обязательно

    Identifier of the template

  • buildID · string · обязательно

    Identifier of the build

  • status · TemplateBuildStatus · обязательно

    Status of the template build

    Допустимые значения для TemplateBuildStatus: building | waiting | ready | error

  • reason · BuildStatusReason · необязательно

  • reason.message · string · обязательно

    Message with the status reason, currently reporting only for error status

  • reason.step · string · необязательно

    Step that failed

  • reason.logEntries · array<BuildLogEntry> · необязательно

    Log entries related to the status reason

    По умолчанию: []

  • reason.logEntries.id · string · необязательно

    Stable identifier used to reconcile overlapping live log pages

  • reason.logEntries.timestamp · string · обязательно

    Timestamp of the log entry

    Формат: date-time

  • reason.logEntries.message · string · обязательно

    Log message content

  • reason.logEntries.level · LogLevel · обязательно

    State of the sandbox

    Допустимые значения для LogLevel: debug | info | warn | error

  • reason.logEntries.step · string · необязательно

    Step in the build process related to the log entry

401

Authentication error

Content-Type: application/json

Схема: Error

  • code · integer · обязательно

    Error code

    Формат: int32

  • message · string · обязательно

    Error

404

Not found

Content-Type: application/json

Схема: Error

  • code · integer · обязательно

    Error code

    Формат: int32

  • message · string · обязательно

    Error

500

Server error

Content-Type: application/json

Схема: Error

  • code · integer · обязательно

    Error code

    Формат: int32

  • message · string · обязательно

    Error