Get an agent deployment
GET/v5/agentex/deployments/{deployment_id}
Get a single agent deployment by ID, including its current status and Kubernetes events.
Returns the deployment record with its latest status and the associated
Kubernetes events (deploy_events) observed for the release, which are useful
for diagnosing why a deployment is still pending or unhealthy. Poll this after
POST /v5/agentex/deployments to track the asynchronous deploy to completion.
For the incremental log output rather than status and events, use
GET /v5/agentex/deployments/{deployment_id}/logs. Returns 404 if no deployment
with this ID exists for the caller’s account.
Get an agent deployment
curl https://api.egp.scale.com/v5/agentex/deployments/$DEPLOYMENT_ID \
-H "x-api-key: $SGP_API_KEY"{
"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"
}Returns Examples
{
"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"
}