更新时间:2025-09-08 GMT+08:00
流水线官方消息通知查询
功能介绍
流水线官方消息通知查询
调用方法
请参见如何调用API。
URI
GET /v5/{project_id}/api/pipeline-notices/{pipeline_id}/notice
请求参数
无
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
[数组元素] |
Array of QueryPipelineNoticeResp objects |
参数解释: 响应体。 取值范围: 不涉及。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
event_type |
String |
参数解释: 事件类型。 取值范围: 不涉及。 |
|
notice_data |
notice_data object |
参数解释: 通知详情。 取值范围: 不涉及。 |
请求示例
GET https://(endpoint)/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipeline-notices/0747d5a7099e45f69dc1d099945909a9/notice
响应示例
状态码:200
响应体
[ {
"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
}
} ]
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
响应体 |
错误码
请参见错误码。
父主题: 流水线管理