SMN Subscription
Function
This API is used to subscribe to SMN for receiving change messages of IAM account names.
URI
POST /v1/internal/smn/notify
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
type |
Yes |
String |
|
|
topic_urn |
No |
String |
|
|
message_id |
Yes |
String |
|
|
message |
Yes |
String |
|
|
unsubscribe_url |
No |
String |
|
|
subscribe_url |
No |
String |
|
|
signature |
No |
String |
|
|
signature_version |
No |
String |
|
|
signing_cert_url |
No |
String |
|
|
timestamp |
No |
String |
|
|
subject |
No |
String |
Response Parameters
Status code: 200
Successful.
None
Example Requests
Subscribing to SMN
POST https://{hostname}/v1/internal/smn/notify
{
"auth" : "exception:coercing to Unicode",
"message" : "Ulanqab 1-2",
"message_id" : "ab5db6e41803433ea3fa8aaccc53410a",
"signature" : "xxxxxx",
"signature_version" : "v1",
"signing_cert_url" : "https://smn.cn-north-9.myhuaweicloud.com/smn/SMN_cn-north-9_94f60ccdfbee4588aa4d555935a56ba3.pem",
"subject" : "xxxxx",
"timestamp" : "2021-06-10T17:09:46Z",
"topic_urn" : "urn:smn:cn-north-9:0919a0fb6c80f38f2f06c01ea940d5d3:hw",
"type" : "Notification",
"unsubscribe_url" : "https://console.huaweicloud.com/smn/subscription/unsubscribe?region=cn-north-9®ion_id=cn-north-9&subscription_urn=urn:smn:cn-north-9:0919a0fb6c80f38f2f06c01ea940d5d3:hw:7b1a2ab5ce684accbf86483179f2463"
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Successful. |
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