Obtaining Pipeline Statuses in Batches
Function
This API is used to obtain pipeline statuses and stage information.
Calling Method
For details, see Calling APIs.
URI
GET /v3/pipelines/status
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| pipeline_ids | Yes | String | ID of the pipeline whose status is to be obtained. IDs are separated by commas (,). |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | No | String | User token. Obtain a token (the value of the X-Subject-Token response header) by calling the IAM API for . |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| [items] | Array of PipelineExecuteStates objects | Pipeline execution result. |
| Parameter | Type | Description |
|---|---|---|
| result | String | Pipeline execution result. The value can be success, error, or aborted. |
| status | String | Definition: Pipeline execution status. Constraints: N/A Range:
Default value: N/A |
| stages | Array of Stages objects | Stage execution status. |
| executor | String | Executor. |
| pipeline_name | String | Pipeline name. |
| pipeline_id | String | Pipeline ID. |
| build_id | String | Pipeline execution ID. |
| detail_url | String | URL of the pipeline details page. |
| modify_url | String | URL of the pipeline editing page. |
| start_time | String | Execution start time. |
| end_time | String | Execution end time. |
| Parameter | Type | Description |
|---|---|---|
| result | String | Execution result of a stage. The value can be success, error, or aborted. |
| status | String | Stage execution status. The value can be waiting, running, verifying, suspending, or completed. |
| name | String | Stage name. |
| parameters | Object | Stage running parameters. |
| order | Integer | Stage sequence. |
| dsl_method | String | Stage type. |
| display_name | String | Stage display name. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Parameter description: Error message. Value range: N/A |
| error_code | String | Parameter description: Error code. Value range: N/A |
Example Requests
GET https://{endpoint}/v3/pipelines/status?pipeline_ids=8025ba36a87a4dd5af496708c2961817,413937e669914f95bed293617886c6c1 Example Responses
Status code: 200
OK
[ {
"result" : "error",
"status" : "completed",
"stages" : [ {
"result" : "success",
"status" : "completed",
"name" : "initial",
"parameters" : null,
"order" : 1,
"dsl_method" : "initial",
"display_name" : "Source code"
}, {
"result" : "success",
"status" : "completed",
"name" : "state_3",
"parameters" : null,
"order" : 2,
"dsl_method" : "build",
"display_name" : "Build"
} ],
"executor" : "executor",
"pipeline_name" : "Do not delete the PipelineSvc test._Continue the test.",
"pipeline_id" : "92a65e2337174fabbdbccda97ab7ffad",
"detail_url" : "https://example.com",
"modify_url" : "https://example.com",
"start_time" : "2022-09-09 00:00:00",
"end_time" : "2022-09-09 00:00:24",
"build_id" : "25"
} ] Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot