文档首页/ 流水线 CodeArts Pipeline/ API参考/ API/ 流水线管理/ 流水线第三方消息通知查询
更新时间:2024-08-22 GMT+08:00
分享

流水线第三方消息通知查询

功能介绍

流水线第三方消息通知查询

调用方法

请参见如何调用API

URI

GET /v5/{project_id}/api/pipeline-notices/{pipeline_id}/notice/message

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

参数解释: CodeArts项目ID。 约束限制: 不涉及 取值范围: 32位字符。 默认取值: 不涉及。

pipeline_id

String

参数解释: 流水线ID。 约束限制: 不涉及 取值范围: 32位字符。 默认取值: 不涉及。

请求参数

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

notice_id

String

消息ID

pipeline_id

String

流水线ID

notice_type

String

消息类型

notice_status

Boolean

消息状态

send_url

String

发送URL

notice_events

Array of strings

事件类型

notice_contents

Array of strings

消息内容

notice_users

Array of strings

发送用户

secret_info

String

密钥信息

sort_index

Integer

排序

请求示例

https://(endpoint)/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipeline-notices/0747d5a7099e45f69dc1d099945909a9/notice/message

响应示例

状态码: 200

响应体

[ {
  "notice_id" : "dd58644df44d426d862eea6f8a456b43",
  "pipeline_id" : "0747d5a7099e45f69dc1d099945909a9",
  "notice_type" : "feishu",
  "notice_status" : false,
  "send_url" : "https://123",
  "notice_events" : [ "pipelineRun.pause" ],
  "notice_contents" : [ "projectName" ],
  "notice_users" : [ "12" ],
  "secret_info" : "12",
  "sort_index" : 0
} ]

状态码

状态码

描述

200

响应体

错误码

请参见错误码

相关文档