获取单个 Deployment Run 的详细信息。
前提
已完成 Endpoint 与鉴权配置,详见API 总览与认证。
接口
GET /deployment_runs/{deployment_run_id}
路径参数
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
deployment_run_id | 是 | string | Deployment Run ID |
请求示例
curl "$AGENTSTUDIO_URL/deployment_runs/drun_xxx" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
响应
{
"id": "drun_xxx",
"type": "deployment_run",
"deployment_id": "depl_xxx",
"agent": {
"id": "agent_xxx",
"version": 13
},
"session_id": "sesn_xxx",
"trigger_source": "manual",
"status": "succeeded",
"error": null,
"started_at": "2026-07-28T02:00:00Z",
"finished_at": "2026-07-28T02:03:00Z",
"request_id": "req_xxx"
}
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | Deployment Run ID |
type | string | 固定值 deployment_run |
deployment_id | string | — |
agent | object | — |
session_id | string | null | — |
trigger_source | string | — |
status | string | — |
error | object | null | 错误信息,仅运行失败时返回 |
started_at | string | ISO 8601 时间戳 |
finished_at | string | null | — |
request_id | string | 本次请求的唯一标识,排查问题时附带 |
错误码
| 状态码 | 错误码 | 说明 |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API-key provided. |
| 404 | DEPLOYMENT_RUN_NOT_FOUND | Deployment run not found. |
该文章对您有帮助吗?