获取单个 Deployment Run 的详细信息。
前提
已完成 Endpoint 与鉴权配置,详见API 总览与认证。
接口
GET
/deployment_runs/{deployment_run_id}路径参数
deployment_run_idstring必填Deployment Run ID
请求示例
curl "$AGENTSTUDIO_URL/deployment_runs/drun_xxx" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
响应字段
idstringDeployment Run ID
typestring固定值 deployment_run
deployment_idstringDeployment ID
agentobject关联的 Agent
session_idstring | null异步 Session 创建完成前为 null
trigger_sourcestring触发来源,例如 manual 或 schedule
statusstring资源状态
errorobject | null错误信息,仅运行失败时返回
started_atstringISO 8601 时间戳
finished_atstring | null运行结束时间;未结束时为 null
request_idstring本次请求的唯一标识,排查问题时附带
响应示例
{
"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"
}
错误码
| 状态码 | 错误码 | 说明 |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API-key provided. |
| 404 | DEPLOYMENT_RUN_NOT_FOUND | Deployment run not found. |
该文章对您有帮助吗?