Updated on 2023-12-13 GMT+08:00

SMN.Subscription

Element Description

The SMN.Subscription element is used to subscribe for SMN.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

remark

No

Remarks

Type: string

Value Description: The value must be a character string in UTF-8 format. Otherwise, Chinese characters cannot be displayed.

endpoint

Yes

Access point for receiving messages

Type: string

Value Description: For the HTTP protocol, the access point must start with http://. For the HTTPS protocol, the access point must start with https://. For the email protocol, the access point must be an email address. For the SMS protocol, the access point must be a phone number.

protocol

Yes

The way endpoint pushes

Type: string

Value Description: Currently only supported ["email", "sms", "http", "https"]

Default: email

Value Constraint: Supports "email", "sms", "http", "https"

topicUrn

Yes

Unique resource Identification of the topic.

Type: string

Value Description: Supports an English character string, such as c51567523b744d098a8a81ede51894ac:gcs-haha.

Relationships Between Elements

Table 2 Relationship description

Description

Target

ContainedIn

SMN.Topic

Return Value

Property

Type

Description

topicUrn

string

Unique resource Identification of topic

subscriptionUrn

string

Unique resource Identification of the subscription

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  smns33gi_topicUrn:
    description: Unique resource Identification of the topic
    label: ''
  smns33gi_endpoint:
    description: Access point for receiving messages
    label: ''
node_templates:
  smns33gi:
    type: HuaweiCloud.SMN.Subscription
    properties:
      topicUrn:
        get_input: smns33gi_topicUrn
      endpoint:
        get_input: smns33gi_endpoint
      protocol: email