跳转到主要内容
GET /v1/deployments/{id} 根据 ID 获取完整的 Deployment 对象。

路径参数

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

请求头

头部必选说明
AuthorizationBearer <PAT>

示例请求

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

示例响应

HTTP 200 OK 返回完整 Deployment 对象(结构同 创建 Deployment 的响应)。
{
  "agent": {
    "id": "agent_019ebb21ef8e7df6a559052c94875160",
    "type": "agent",
    "version": 1
  },
  "archived_at": null,
  "created_at": "2026-06-14T08:58:01Z",
  "description": "Deployment created for API documentation verification",
  "environment_id": "env_019e49a1780171daac1e6b01f290ac2b",
  "id": "dep_019ec55a2b687b3f94eee77dd77e4b2a",
  "initial_events": [
    {
      "content": "Generate today's status report",
      "type": "user.message"
    }
  ],
  "metadata": {
    "cas_config": {
      "config": {
        "max_concurrent": 1,
        "max_retries": 0,
        "timeout_ms": 300000
      },
      "session_strategy": "new_session",
      "stats": {
        "consecutive_failures": 0,
        "next_trigger_at": "2026-06-15T01:00:00Z",
        "total_failures": 0,
        "total_runs": 0
      }
    }
  },
  "name": "api-doc-verification-deployment",
  "paused_reason": null,
  "resources": [],
  "schedule": {
    "expression": "0 9 * * *",
    "timezone": "Asia/Shanghai",
    "type": "cron",
    "upcoming_runs_at": [
      "2026-06-15T01:00:00Z",
      "2026-06-16T01:00:00Z",
      "2026-06-17T01:00:00Z",
      "2026-06-18T01:00:00Z",
      "2026-06-19T01:00:00Z"
    ]
  },
  "status": "active",
  "type": "deployment",
  "updated_at": "2026-06-14T08:58:01Z",
  "vault_ids": []
}

错误码

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

相关

列出 Deployment

分页查询账号下的所有 Deployment。

更新 Deployment

修改名称、调度、资源等可变字段。

列出 Deployment Run

查看该 Deployment 的运行历史。

错误参考

所有 API 错误码与错误信封约定。