获取单个 Deployment Run 的详细信息。
前提
已完成 Endpoint 与鉴权配置,详见API 总览与认证。
接口
GET /deployment_runs/{deployment_run_id}
路径参数
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
deployment_run_id | 是 | string | Deployment Run ID |
请求示例
响应
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
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. |