Read logs on a build attempt
Reads a bounded page of the native build container's retained output, oldest first.
Reads a bounded page of the native build container's retained output, oldest first. These logs are separate from standalone Build runs.
- Path
GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/build_attempts/build-attempt:readLogs - Scope
release:read - Effect
read— nothing is written. - Collection build_attempts
- Query
page_token
Request
| Field | Type | What it is |
|---|---|---|
name | string | The exact canonical attempt name returned by ListBuildAttempts. Required. |
page_token | string | Resume after this cursor from the same attempt and principal. |
Response
| Field | Type | What it is |
|---|---|---|
lines | string[] | Redacted build container output, in order. Container streams are combined. Output only. |
next_page_token | string | Cursor after this page; it can also be used after a terminal page. Output only. |
has_more | bool | True if another page can be read immediately. Output only. |
done | bool | True when the attempt is terminal and the retained output window is drained. Output only. |
state | BuildAttemptState | Latest recorded attempt state. A successful build need not be serving. Output only. One of queued, building, succeeded, failed, cancelled. |
Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.INVALID_FIELD— A field failed validation.PAGE_TOKEN_MISMATCH— A page token was reused with different parameters.UNAVAILABLE— The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.
Every error arrives in the body Errors describes.
Examples
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/build_attempts/build-attempt:readLogs" \
-H "Authorization: Bearer $SYLPHX_API_KEY"