Querying CodeArts Pipeline Notifications
Function
This API is used to query CodeArts Pipeline notifications.
Calling Method
For details, see Calling APIs.
URI
GET /v5/{project_id}/api/pipeline-notices/{pipeline_id}/notice
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Parameter description: CodeArts project ID. Constraints: N/A. Value Range: The value contains 32 characters. Default value: N/A. |
pipeline_id |
Yes |
String |
Parameter description: Pipeline ID. Constraints: N/A. Value Range: The value contains 32 characters. Default value: N/A. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
[items] |
Array of QueryPipelineNoticeResp objects |
Response body. |
Parameter |
Type |
Description |
---|---|---|
event_type |
String |
Event type. |
notice_data |
notice_data object |
Details. |
Example Requests
GET https://(endpoint)/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipeline-notices/0747d5a7099e45f69dc1d099945909a9/notice
Example Responses
Status code: 200
Response body.
[ { "event_type" : "pipeline.updated", "notice_data" : { "notice_types" : [ "MESSAGE" ], "notice_roles" : [ "CREATOR", "EXECUTOR", "COLLECTOR" ], "notice_users" : null } }, { "event_type" : "pipeline.deleted", "notice_data" : { "notice_types" : [ "MESSAGE" ], "notice_roles" : [ "CREATOR", "EXECUTOR", "COLLECTOR" ], "notice_users" : null } }, { "event_type" : "pipelineRun.succeed", "notice_data" : { "notice_types" : [ "MESSAGE" ], "notice_roles" : [ "CREATOR", "EXECUTOR", "COLLECTOR" ], "notice_users" : null } }, { "event_type" : "pipelineRun.failed", "notice_data" : { "notice_types" : [ "MESSAGE" ], "notice_roles" : [ "CREATOR", "EXECUTOR", "COLLECTOR" ], "notice_users" : null } } ]
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