Skip to content
Console
On this page

List build attempts

Lists the latest native build attempt per service for one exact commit, newest first.

Lists the latest native build attempt per service for one exact commit, newest first. Use this to follow a push even before a Release exists. An empty result means no matching attempts were observed. An unreadable store returns an error. This does not list standalone Build runs.

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/build_attempts
  • Scope release:read
  • Effect read — nothing is written.
  • Collection build_attempts
  • Query commit, page_size, page_token
  • Pagination the answer carries build_attempts and, when there is more, next_page_token

Request

FieldTypeWhat it is
parentstringThe environment to inspect. Required.
commitstringThe full 40-character source commit SHA (case-insensitive). Branch names and prefixes are not accepted. Required.
page_sizeint32At most this many; default 50, clamped to 100.
page_tokenstringThe previous page's next_page_token for the same environment and commit.

Response

FieldTypeWhat it is
build_attemptsBuildAttempt[]Latest matching attempt per service as observed at the time of this read.
next_page_tokenstringThe token of the next page; empty on the last page.

BuildAttempt

FieldTypeWhat it is
namestringThe attempt's name. Only listing is supported.
uidstringStable identity of this attempt. Output only.
metaResourceMetaThe time the build was recorded, before it necessarily began running. Output only.
service_slugstringThe project service slug, when still available. Output only.
commitstringThe intended source commit for this attempt, even before source capture. Output only.
stateBuildAttemptStateThe recorded build state, independent of Release admission or serving. Output only. One of queued, building, succeeded, failed, cancelled.
start_timetimestampWhen the build was marked started, if recorded. Output only.
end_timetimestampWhen the build finished or was cancelled, if recorded. Output only.
reasonBuildAttemptReasonFinite terminal reason; absent while active or after a successful build. Output only. One of build_failed, preparation_failed, export_failed, smoke_test_failed, cancelled, superseded.
service_idstringStable project service ID, absent on older project-level attempts. Output only.

ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

Errors

Every error arrives in the body Errors describes.

Examples

curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/build_attempts" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"