Querying Pipeline Triggering Failure Records
Function
This API is used to query pipeline triggering failure records.
Calling Method
For details, see Calling APIs.
URI
GET /v5/{project_id}/api/pipelines/{pipeline_id}/trigger-failed-record
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 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
Yes |
Long |
Offset. |
limit |
Yes |
Long |
Number of records on each page. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
offset |
Integer |
Offset. |
limit |
Integer |
Number of records on each page. |
total |
Integer |
Definition: Total number of items. Value range: The value is no less than 0. |
triggerFailedRecordVOS |
Array of triggerFailedRecordVOS objects |
Details list. |
Example Requests
GET http://(endpoint)/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipelines/dc73b5ed58a64ab7a469b9480e5f6632/trigger-failed-record?offset=0&limit=10
Example Responses
Status code: 200
Response body.
{ "offset" : 0, "limit" : 10, "total" : 3, "triggerFailedRecordVOS" : [ { "pipeline_id" : "dc73b5ed58a64ab7a469b9480e5f6632", "trigger_time" : 1718956712000, "trigger_type" : "Push", "executor_id" : "123456", "executor_name" : "12-5", "reason" : "Trigger branch is not whitelisted" }, { "pipeline_id" : "dc73b5ed58a64ab7a469b9480e5f6632", "trigger_time" : 1718956668000, "trigger_type" : "Push", "executor_id" : "456", "executor_name" : "456-5", "reason" : "Trigger branch is not whitelisted" }, { "pipeline_id" : "dc73b5ed58a64ab7a469b9480e5f6632", "trigger_time" : 1718956660000, "trigger_type" : "Push", "executor_id" : "789", "executor_name" : "78-5", "reason" : "Trigger branch is not whitelisted" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body. |
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