Menu Close

10.10.5.2. api/cloudNotifications/v1/publishers/

10.10.5.2.1. HTTP 方法

GET api/cloudNotifications/v1/publishers/<publisher_id>

10.10.5.2.1.1. 描述

使用 id <publisher_id> 返回发布程序。

表 10.2. 查询参数

参数类型

<publisher_id>

字符串

oc exec curl 命令示例

$ oc exec -it linuxptp-daemon-5j265 -n openshift-ptp -c cloud-event-proxy -- curl --location http://localhost:8080/api/cloudNotifications/v1/publishers/56e8a064-dc4b-4428-8085-91c18ea07930

返回示例

{
 "id":"56e8a064-dc4b-4428-8085-91c18ea07930",
 "endpointUri":"http://localhost:8080/api/cloudNotifications/v1/dummy",
 "uriLocation":"http://localhost:8080/api/cloudNotifications/v1/publishers/56e8a064-dc4b-4428-8085-91c18ea07930",
 "resource":"/cluster/node/compute-1.example.com/ptp"
}