Skip to main content
Deployments

列出 Deployment Runs

列出指定 Deployment 的运行记录。

GET /api/v1/cloud/deployments/{id}/runs 列出指定 Deployment 的所有运行记录,按触发时间降序排列(最新在前)。

路径参数

参数类型说明
idstringDeployment ID(dep_ 前缀)

请求头

头部必选说明
AuthorizationBearer <PAT>

查询参数

参数类型必选说明
limitinteger每页最大记录数,默认 20,范围 1-100。超过 100 返回 400 invalid_request_error
pagestringnext_page 返回的游标值。不能与 before_idafter_id 同时使用
after_idstring游标分页:返回此 ID 之后的记录
before_idstring游标分页:返回此 ID 之前的记录
triggered_afterstring筛选此时间之后触发的运行(ISO 8601)
triggered_beforestring筛选此时间之前触发的运行(ISO 8601)

示例请求

curl -X GET "https://api.qoder.com/api/v1/cloud/deployments/dep_019ec55a2b687b3f94eee77dd77e4b2a/runs?limit=5" \
  -H "Authorization: Bearer $QODER_PAT"

示例响应

HTTP 200 OK
{
  "data": [
    {
      "agent": {
        "id": "agent_019ebb21ef8e7df6a559052c94875160",
        "type": "agent",
        "version": 1
      },
      "created_at": "2026-06-14T08:58:17Z",
      "deployment_id": "dep_019ec55a2b687b3f94eee77dd77e4b2a",
      "error": null,
      "id": "drun_019ec55a68af73028afa5b87931cb2f3",
      "session_id": "sess_019ec55a68b37e1e8d660691af161ab4",
      "trigger_context": {
        "type": "manual"
      },
      "type": "deployment_run"
    }
  ],
  "first_id": "drun_019ec55a68af73028afa5b87931cb2f3",
  "has_more": false,
  "last_id": "drun_019ec55a68af73028afa5b87931cb2f3",
  "next_page": null
}

响应字段

字段类型说明
dataarrayDeployment Run 对象列表
first_idstring当前页第一条记录的 ID
last_idstring当前页最后一条记录的 ID
has_moreboolean是否还有更多记录
next_pagestring 或 null下一页游标值(无更多时为 null)
使用 next_page 作为下次请求的 page 参数向前翻页。 Run 对象字段说明详见 手动触发 Deployment

错误码

HTTPtype触发条件
401authentication_errorPAT 无效或过期
404not_found_errorDeployment 不存在
完整错误信封说明详见 错误参考

相关