List container image builds
GET/v5/builds
List container image build records for the caller’s account as a paginated collection.
Each entry is one individual build with its current lifecycle status; pass agent_name,
source_commit, or working_tree_hash to return only matching builds. Archived builds are
excluded, and results are limited to builds the caller is permitted to read. Use this to
enumerate individual builds; to instead list agents that have been built but not yet
deployed, use GET /v5/builds/undeployed.
Query Parameters
List container image builds
curl https://api.egp.scale.com/v5/builds \
-H "x-api-key: $SGP_API_KEY"{
"has_more": true,
"items": [
{
"id": "id",
"account_id": "account_id",
"agent_name": "agent_name",
"build_status": "queued",
"cloud_provider_build_id": "cloud_provider_build_id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"image_name": "image_name",
"image_tag": "image_tag",
"source_commit": "source_commit",
"source_dirty": true,
"source_ref": "source_ref",
"source_repo": "source_repo",
"source_subpath": "source_subpath",
"working_tree_hash": "working_tree_hash",
"agent_id": "agent_id",
"build_end_time": "2019-12-27T18:11:19.117Z",
"build_start_time": "2019-12-27T18:11:19.117Z",
"image_url": "image_url",
"object": "agentex_cloud_build"
}
],
"total": 0,
"limit": 0,
"object": "list"
}Returns Examples
{
"has_more": true,
"items": [
{
"id": "id",
"account_id": "account_id",
"agent_name": "agent_name",
"build_status": "queued",
"cloud_provider_build_id": "cloud_provider_build_id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"image_name": "image_name",
"image_tag": "image_tag",
"source_commit": "source_commit",
"source_dirty": true,
"source_ref": "source_ref",
"source_repo": "source_repo",
"source_subpath": "source_subpath",
"working_tree_hash": "working_tree_hash",
"agent_id": "agent_id",
"build_end_time": "2019-12-27T18:11:19.117Z",
"build_start_time": "2019-12-27T18:11:19.117Z",
"image_url": "image_url",
"object": "agentex_cloud_build"
}
],
"total": 0,
"limit": 0,
"object": "list"
}