根据 ID 获取单个 Deployment 的详细信息。
前提
已完成 Endpoint 与鉴权配置,详见API 总览与认证。
接口
GET /deployments/{deployment_id}
路径参数deployment_idstring (必选)Deployment ID | 请求示例 |
响应字段idstringDeployment IDtype string固定值 deploymentname stringDeployment 名称description string部署用途描述agent object—environment_id string—schedule object—initial_events array<object>—resources array<object>—vault_ids array<string>—metadata object—status string—paused_reason object | null暂停原因,仅暂停状态时返回archived_at string | null—created_at string—updated_at string—request_id string本次请求的唯一标识,排查问题时附带 | 响应 |
错误码
| 状态码 | 错误码 | 说明 |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API-key provided. |
| 404 | DEPLOYMENT_NOT_FOUND | Deployment not found. |