更新时间:2025-09-08 GMT+08:00
查询批量执行流水线结果
功能介绍
查询批量执行流水线结果
调用方法
请参见如何调用API。
URI
POST /v5/{project_id}/api/pipelines/batch-runs/result
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
参数解释: 项目ID,获取方式请参见获取项目ID。 约束限制: 不涉及。 取值范围: 32位字符,由数字和字母组成。 默认取值: 不涉及。 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
query |
是 |
Array of query objects |
请求体 |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
pipeline_id |
是 |
String |
流水线ID |
|
pipeline_run_id |
是 |
String |
流水线运行实例ID,启动流水线接口的返回值即为流水线运行实例ID。 |
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
result |
Array of result objects |
响应体 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
pipeline_id |
String |
流水线ID |
|
pipeline_name |
String |
流水线名称 |
|
pipeline_run_id |
String |
流水线运行实例ID,启动流水线接口的返回值即为流水线运行实例ID。 |
|
status |
String |
流水线启动状态 |
|
reason |
String |
流水线启动失败原因 |
请求示例
POST https://{endpoint}/v5/db8d07265e24426598b3eb03a7818972/api/pipelines/batch-runs/result
{
"query" : [ {
"pipeline_id" : "6ba9a2dbc7024c22a9a6614516dc22db",
"pipeline_run_id" : "e41fe3981361476eb6dad17ad98c683c"
}, {
"pipeline_id" : "d7013d2402ff4cc88489ee5af324e049",
"pipeline_run_id" : "3d8143d197dd4fa5b23f20ee39179af3"
}, {
"pipeline_id" : "2eb1fc4d750546b3bbc2566a7cf34d5b",
"pipeline_run_id" : "ba15657cb88d46deb9e17f203a061f21"
}, {
"pipeline_id" : "cce81e5f7e604b609172aafcae73c025",
"pipeline_run_id" : "73861d5a72e6417a81abb1baba1a8d16"
}, {
"pipeline_id" : "1d5107b3cd4746a3a03efef83b9e4e45",
"pipeline_run_id" : "f68aa7ca562f4f31bfbb63628de0e2cd"
}, {
"pipeline_id" : "70aa57009b0d433587b58faf05e4fd7f",
"pipeline_run_id" : "cd96020f0e2748048a6b4d1a15091c9b"
} ]
}
响应示例
状态码:200
响应体
{
"result" : [ {
"pipeline_id" : "6ba9a2dbc7024c22a9a6614516dc22db",
"pipeline_name" : "父流水线b",
"pipeline_run_id" : "e41fe3981361476eb6dad17ad98c683c",
"status" : "START_FAILED",
"reason" : "Current pipeline is banned."
}, {
"pipeline_id" : "d7013d2402ff4cc88489ee5af324e049",
"pipeline_name" : "子流水线引用新版",
"pipeline_run_id" : "3d8143d197dd4fa5b23f20ee39179af3",
"status" : "START_SUCCESS",
"reason" : null
}, {
"pipeline_id" : "2eb1fc4d750546b3bbc2566a7cf34d5b",
"pipeline_name" : "信息检查2",
"pipeline_run_id" : "ba15657cb88d46deb9e17f203a061f21",
"status" : "START_SUCCESS",
"reason" : null
}, {
"pipeline_id" : "cce81e5f7e604b609172aafcae73c025",
"pipeline_name" : "排队",
"pipeline_run_id" : "73861d5a72e6417a81abb1baba1a8d16",
"status" : "START_FAILED",
"reason" : "Reached the maximum of 1 concurrencies for single pipeline. Entering the queuing state."
}, {
"pipeline_id" : "1d5107b3cd4746a3a03efef83b9e4e45",
"pipeline_name" : "变更1012",
"pipeline_run_id" : "f68aa7ca562f4f31bfbb63628de0e2cd",
"status" : "START_FAILED",
"reason" : "The change request pipeline can not batch run."
}, {
"pipeline_id" : "70aa57009b0d433587b58faf05e4fd7f",
"pipeline_name" : "codehub源--批量执行",
"pipeline_run_id" : "cd96020f0e2748048a6b4d1a15091c9b",
"status" : "START_SUCCESS",
"reason" : null
} ]
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
响应体 |
错误码
请参见错误码。
父主题: 流水线管理