Updated on 2025-10-24 GMT+08:00

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

Table 1 Request body 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&region_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.