List agent deployments
GET/v5/agentex/deployments
List the account’s agent deployments, with pagination and optional filters.
Returns the deployments the caller is authorized to read. Optionally filter by
build_id, by agent_name (matched through each deployment’s associated build),
or by preview_label. A preview_label is non-unique — many deployments can
share one (for example every deploy for a branch) — so combine it with limit=1
to fetch the latest deployment for that label. This lists deployments (the running
or attempted agent instances); to list the image builds they run, use the agentex
builds API.
List agent deployments
curl https://api.egp.scale.com/v5/agentex/deployments \
-H "x-api-key: $SGP_API_KEY"{
"has_more": true,
"items": [
{
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"environment_config": "environment_config",
"manifest_file": "manifest_file",
"namespace": "namespace",
"status": "status",
"build_id": "build_id",
"deploy_events": [
{
"message": "message",
"reason": "reason",
"timestamp": "2019-12-27T18:11:19.117Z",
"type": "type"
}
],
"expires_at": "2019-12-27T18:11:19.117Z",
"helm_release_name": "helm_release_name",
"object": "agentex_cloud_deploy",
"preview_label": "preview_label"
}
],
"total": 0,
"limit": 0,
"object": "list"
}Returns Examples
{
"has_more": true,
"items": [
{
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"environment_config": "environment_config",
"manifest_file": "manifest_file",
"namespace": "namespace",
"status": "status",
"build_id": "build_id",
"deploy_events": [
{
"message": "message",
"reason": "reason",
"timestamp": "2019-12-27T18:11:19.117Z",
"type": "type"
}
],
"expires_at": "2019-12-27T18:11:19.117Z",
"helm_release_name": "helm_release_name",
"object": "agentex_cloud_deploy",
"preview_label": "preview_label"
}
],
"total": 0,
"limit": 0,
"object": "list"
}