Obtaining the Pipeline Step Execution Output
Function
Obtaining the Pipeline Step Execution Output
Calling Method
For details, see Calling APIs.
URI
GET /v5/{project_id}/api/pipelines/{pipeline_id}/pipeline-runs/{pipeline_run_id}/steps/outputs
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition: Project ID. For details, see Obtaining a Project ID. Constraints: N/A Value range: The value consists of 32 characters, including digits and letters. Default value: N/A |
| pipeline_id | Yes | String | Definition: Pipeline ID. Obtain the ID by calling the API for querying pipelines. pipelines.pipelineId indicates the pipeline ID. Constraints: N/A Value range: The value consists of 32 characters, including digits and letters. Default value: N/A |
| pipeline_run_id | Yes | String | Definition: Pipeline run ID. The return value of the API for starting a pipeline is the pipeline run ID. Constraints: N/A Value range: The value consists of 32 characters, including digits and letters. Default value: N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| step_run_ids | Yes | String | Parameter description: Pipeline step ID. Constraints: N/A Value range: Each ID is a string of 32 characters, consisting of only digits and letters. Default value: N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Definition: User token. Obtain a token (the value of the X-Subject-Token response header) by calling the IAM API for . Constraints: N/A Value range: N/A Default value: N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| step_outputs | Array of step_outputs objects | Parameter description: Step output list, which records the output ID and result information of each step. Constraints: N/A |
| current_system_time | Long | Parameter description: Current system time. Value range: N/A |
| Parameter | Type | Description |
|---|---|---|
| step_run_id | String | Definition: Step ID. Value range: The value consists of 32 characters, including digits and letters. |
| output_result | Array of output_result objects | Parameter description: Step output. Value range: N/A. |
| Parameter | Type | Description |
|---|---|---|
| key | String | Parameter description: Step output key value. Value range: N/A. |
| value | String | Parameter description: Step output value. Value range: N/A. |
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}/v5/26726a24b3f247b4b49300b6f84fee61/pipelines/5f58d4f7b0a9450a889c3ccb58813f1c/pipeline-runs/9018898842af45b3a0546f9caa44e4d5/steps/outputs?step_run_ids=eafeade4aade49b2bc1cac8405c2f44c Example Responses
Status code: 200
OK
{
"step_outputs" : [ {
"step_run_id" : "eafeade4aade49b2bc1cac8405c2f44c",
"output_result" : [ {
"key" : "new_issue_count",
"value" : "0"
}, {
"key" : "codecheck.deadly",
"value" : "0"
}, {
"key" : "codecheck.important",
"value" : "0"
}, {
"key" : "codecheck.common",
"value" : "0"
}, {
"key" : "codecheck.prompt",
"value" : "0"
} ]
} ],
"current_system_time" : 1710153194163
} 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