No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

eSight V300R010C00SPC200, 300, and 500 Self-Service Integration Guide 11

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Active Message Notification Examples

Active Message Notification Examples

This section provides change notification examples of the subscription messages and unsubscription messages.

Subscribing to the Message Change Notification

For details about the request and response result of each subscription interface, see Parameter Description and Result in subsequent sections.

Request Example

curl -X put -k -i -H "openid:${openid}" "${api}" -d "openID=example@system&systemID=example@system&url=${url}"

Replace ${openid} with openid obtained through login interface of security management.

Replace ${api} with the address of the actual message change notification interface.

Replace ${url} with the address of the interface for third-party systems to receive messages.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 56

{"code":0,"data":null,"description":"Operation success"}

Unsubscribing from the Message Change Notification

Request Example

curl -X delete -k -i -H "openid:${openid}" "${api}?systemID=example@system"

Replace ${openid} with openid obtained through login interface of security management.

Replace ${api} with the address of the actual message change notification interface.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 56

{"code":0,"data":null,"description":"Operation success"}
Download
Updated: 2019-12-13

Document ID: EDOC1100044386

Views: 17904

Downloads: 87

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next