smn_umn_1110

Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
This commit is contained in:
guoyanyan 2022-11-24 10:31:08 +00:00 committed by zuul
parent 519944c837
commit c483984844
95 changed files with 908 additions and 1151 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 B

View File

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

Before

Width:  |  Height:  |  Size: 197 B

After

Width:  |  Height:  |  Size: 197 B

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

Before

Width:  |  Height:  |  Size: 716 B

After

Width:  |  Height:  |  Size: 716 B

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

View File

@ -1,22 +0,0 @@
<a name="EN-US_TOPIC_0000001366065676"></a><a name="EN-US_TOPIC_0000001366065676"></a>
<h1 class="topictitle1">Region and AZ</h1>
<div id="en-us_topic_0184026189_body1565144987716"><div class="section" id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_section388255972712"><h4 class="sectiontitle">Concept</h4><p id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_p212716216381">A region and availability zone (AZ) identify the location of a data center. You can create resources in a specific region and AZ.</p>
<ul id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_ul86578533460"><li id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_li14657175334618">A region is a physical data center, which is completely isolated to improve fault tolerance and stability. The region that is selected during resource creation cannot be changed after the resource is created.</li><li id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_li45875020473">An AZ is a physical location where resources use independent power supplies and networks. A region contains one or more AZs that are physically isolated but interconnected through internal networks. Because AZs are isolated from each other, any fault that occurs in an AZ will not affect other AZs.</li></ul>
<p id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_p1479174514614"><a href="#EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_fig8747114281212">Figure 1</a> shows the relationship between regions and AZs.</p>
<div class="fignone" id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_fig8747114281212"><a name="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_fig8747114281212"></a><a name="en-us_topic_0184026189_fig8747114281212"></a><span class="figcap"><b>Figure 1 </b>Regions and AZs</span><br><span><img class="vsd" id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_image12748194211128" src="en-us_image_0000001366545404.png"></span></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_section67281149192216"><h4 class="sectiontitle">Selecting a Region</h4><p id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_p68521454132212">Select a region closest to your target users for low network latency and quick access.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_section193971112578"><h4 class="sectiontitle">Selecting an AZ</h4><p id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_p859161416717">When deploying resources, consider your applications' requirements on disaster recovery (DR) and network latency.</p>
<ul id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_ul157203571473"><li id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_li7720175710711">For high DR capability, deploy resources in different AZs within the same region.</li><li id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_li109763595719">For low network latency, deploy resources in the same AZ.</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_section1110135820407"><h4 class="sectiontitle">Regions and Endpoints</h4><p id="EN-US_TOPIC_0000001366065676__en-us_topic_0184026189_p361784821111">Before you use an API to call resources, specify its region and endpoint. For more details, see <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="smn_pd_20000.html">Overview</a></div>
</div>
</div>

View File

@ -0,0 +1,22 @@
<a name="EN-US_TOPIC_0000001409933861"></a><a name="EN-US_TOPIC_0000001409933861"></a>
<h1 class="topictitle1">Region and AZ</h1>
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_section388255972712"><h4 class="sectiontitle">Concept</h4><p id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_p212716216381">A region and availability zone (AZ) identify the location of a data center. You can create resources in a specific region and AZ.</p>
<ul id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_ul86578533460"><li id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_li14657175334618">A region is a physical data center, which is completely isolated to improve fault tolerance and stability. The region that is selected during resource creation cannot be changed after the resource is created.</li><li id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_li45875020473">An AZ is a physical location where resources use independent power supplies and networks. A region contains one or more AZs that are physically isolated but interconnected through internal networks. Because AZs are isolated from each other, any fault that occurs in one AZ will not affect others.</li></ul>
<p id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_p1479174514614"><a href="#EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_fig8747114281212">Figure 1</a> shows the relationship between regions and AZs.</p>
<div class="fignone" id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_fig8747114281212"><a name="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_fig8747114281212"></a><a name="en-us_topic_0184026189_fig8747114281212"></a><span class="figcap"><b>Figure 1 </b>Regions and AZs</span><br><span><img class="vsd" id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_image12748194211128" src="en-us_image_0184026531.png"></span></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_section67281149192216"><h4 class="sectiontitle">Selecting a Region</h4><p id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_p68521454132212">Select a region closest to your target users for lower network latency and quick access.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_section193971112578"><h4 class="sectiontitle">Selecting an AZ</h4><p id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_p859161416717">When deploying resources, consider your applications' requirements on disaster recovery (DR) and network latency.</p>
<ul id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_ul157203571473"><li id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_li7720175710711">For high DR capability, deploy resources in different AZs within the same region.</li><li id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_li109763595719">For lower network latency, deploy resources in the same AZ.</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_section1110135820407"><h4 class="sectiontitle">Regions and Endpoints</h4><p id="EN-US_TOPIC_0000001409933861__en-us_topic_0184026189_p361784821111">Before you use an API to call resources, specify its region and endpoint. For more details, see <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="smn_pd_20000.html">Overview</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
<a name="en-us_topic_0043394877"></a><a name="en-us_topic_0043394877"></a> <a name="en-us_topic_0043394877"></a><a name="en-us_topic_0043394877"></a>
<h1 class="topictitle1">Simple Message Notification</h1> <h1 class="topictitle1">Simple Message Notification</h1>
<div id="body1467621416806"><p id="en-us_topic_0043394877__p2068261434217">Simple Message Notification (SMN) is a reliable and flexible large-scale message notification service. It enables you to efficiently send messages to phone numbers, email addresses and HTTP/HTTPS servers and connect cloud services through notifications, reducing system complexity. </p> <div id="body1467621416806"><p id="en-us_topic_0043394877__p2068261434217">Simple Message Notification (SMN) is a reliable and flexible large-scale message notification service. It enables you to efficiently send messages to various endpoints, such as phone numbers, and email addresses, </p>
<p id="en-us_topic_0043394877__p147811538174410">SMN offers a publish/subscribe model to achieve one-to-multiple message subscriptions and notifications in a variety of message types. SMN involves two roles: publisher and subscriber. A publisher publishes messages to a topic, and SMN then delivers the messages to subscribers in the topic. The subscribers can be email addresses, phone numbers, message queues, and URLs.</p> <p id="en-us_topic_0043394877__p147811538174410">SMN offers a publish/subscribe model to achieve one-to-multiple message subscriptions and notifications in a variety of message types. SMN involves two roles: publisher and subscriber. A publisher publishes messages to a topic, and SMN then delivers the messages to subscribers in the topic. The subscribers can be email addresses, phone numbers, message queues, and URLs.</p>
<p id="en-us_topic_0043394877__p878115380445">A topic is a collection of messages and a logical access point, through which the publisher and the subscriber can interact with each other. Each topic has a unique topic name. The topic creator can configure topic policies to grant other users or cloud services permissions to perform certain operations to a topic, for example, querying subscriptions or publishing messages.</p> <p id="en-us_topic_0043394877__p878115380445">A topic is a collection of messages and a logical access point, through which the publisher and the subscriber can interact with each other. Each topic has a unique topic name. The topic creator can configure topic policies to grant other users or cloud services permissions to perform certain operations to a topic, for example, querying subscriptions or publishing messages.</p>
</div> </div>

View File

@ -1,13 +1,13 @@
<a name="en-us_topic_0043394889"></a><a name="en-us_topic_0043394889"></a> <a name="en-us_topic_0043394889"></a><a name="en-us_topic_0043394889"></a>
<h1 class="topictitle1">Message Template Management</h1> <h1 class="topictitle1">Message Template Management</h1>
<div id="body1468834610704"><div class="section" id="en-us_topic_0043394889__section3499028611828"><h4 class="sectiontitle">Scenario</h4><p id="en-us_topic_0043394889__p6469251163720">Message templates contain fixed and changeable content and can be used to send messages quickly. When you publish a message using a template, you can specify values for variables in the template.</p> <div id="body1468834610704"><div class="section" id="en-us_topic_0043394889__section3499028611828"><h4 class="sectiontitle">Scenarios</h4><p id="en-us_topic_0043394889__p7085359164946">Message templates contain fixed and changeable content and can be used to create and send messages more quickly. When you use a template to publish a message, you can specify values for different variables in the template.</p>
<p id="en-us_topic_0043394889__p8470185163716">Message templates are grouped by template name. You can create templates for different protocols using the same template name. You must specify the default protocol in any template name, or the system will not allow you to publish messages using that template name. When sending messages using a template, SMN tries to match different types of subscribers to the template protocols. If there is no template for a specified protocol, SMN will use the default template to send messages to subscribers of that protocol.</p> <p id="en-us_topic_0043394889__p21562735103221">Message templates are identified by name, but you can create different templates with the same name as long as they are configured for different protocols. All template messages must include a <strong id="en-us_topic_0043394889__b1631511361618">Default</strong> template or they cannot be sent out. The <strong id="en-us_topic_0043394889__b14265659365">Default</strong> template is used anytime a template has not been configured for a given protocol, but as long as there is a template for the protocol, then any subscriber who selected that protocol when they subscribed will receive a message using the corresponding template.</p>
<p id="en-us_topic_0043394889__p747005143711">This section describes how to publish messages using a template.</p> <p id="en-us_topic_0043394889__p1577920518421">This section describes how to publish messages using a template.</p>
</div> </div>
<div class="section" id="en-us_topic_0043394889__section66624127194914"><a name="en-us_topic_0043394889__section66624127194914"></a><a name="section66624127194914"></a><h4 class="sectiontitle">To Create a Message Template</h4><ol id="en-us_topic_0043394889__ol6268589194730"><li id="en-us_topic_0043394889__li1508056115226">Log in to the management console.</li><li id="en-us_topic_0043394889__li6027193112482">Click <span><img id="en-us_topic_0043394889__image19711341171519" src="en-us_image_0000001366225560.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043394889__en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_li56417302194730">In the <strong id="en-us_topic_0043394889__b151887226114">Application</strong> category, click <strong id="en-us_topic_0043394889__b132311222714">Simple Message Notification</strong>.<p id="en-us_topic_0043394889__en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p> <div class="section" id="en-us_topic_0043394889__section66624127194914"><a name="en-us_topic_0043394889__section66624127194914"></a><a name="section66624127194914"></a><h4 class="sectiontitle">To Create a Message Template</h4><ol id="en-us_topic_0043394889__ol6268589194730"><li id="en-us_topic_0043394889__li1508056115226">Log in to the management console.</li><li id="en-us_topic_0043394889__li6027193112482">Click <span><img id="en-us_topic_0043394889__image19711341171519" src="en-us_image_0259222474.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043394889__smn_json_en-us_topic_0043961401_en-us_topic_0043394871_li56417302194730">Under <strong id="en-us_topic_0043394889__b151887226114">Application</strong>, select <strong id="en-us_topic_0043394889__b132311222714">Simple Message Notification</strong>.<p id="en-us_topic_0043394889__smn_json_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p>
</li><li id="en-us_topic_0043394889__li15432909174849">In the navigation pane, choose <strong id="en-us_topic_0043394889__b842352706144724">Message Templates</strong>.</li><li id="en-us_topic_0043394889__li45015022153020">Click <strong id="en-us_topic_0043394889__b665081136233440">Create Message Template</strong>.<p id="en-us_topic_0043394889__p48227841153021">The <strong id="en-us_topic_0043394889__b84235270614261">Create Message Template</strong> box is displayed.</p> </li><li id="en-us_topic_0043394889__li15432909174849">In the navigation pane, choose <strong id="en-us_topic_0043394889__b842352706144724">Message Templates</strong>.</li><li id="en-us_topic_0043394889__li45015022153020">In the upper right corner, click <strong id="en-us_topic_0043394889__b665081136233440">Create Message Template</strong>.<p id="en-us_topic_0043394889__p48227841153021">The <strong id="en-us_topic_0043394889__b84235270614261">Create Message Template</strong> dialog box is displayed.</p>
<div class="fignone" id="en-us_topic_0043394889__fig18154514124448"><span class="figcap"><b>Figure 1 </b>Create Message Template</span><br><span><img id="en-us_topic_0043394889__image1470595212176" src="en-us_image_0000001416865433.png" title="Click to enlarge" class="imgResize"></span></div> <div class="fignone" id="en-us_topic_0043394889__fig18154514124448"><span class="figcap"><b>Figure 1 </b>Create Message Template</span><br><span><img id="en-us_topic_0043394889__image1470595212176" src="en-us_image_0095667221.png" title="Click to enlarge" class="imgResize"></span></div>
</li><li id="en-us_topic_0043394889__li31541025153249">Specify the template name, protocol, and content. </li><li id="en-us_topic_0043394889__li31541025153249">Specify the template name, protocol, and content.
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0043394889__table9567729153632" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters required for creating a message template</caption><thead align="left"><tr id="en-us_topic_0043394889__row46643153153632"><th align="left" class="cellrowborder" valign="top" width="19.74%" id="mcps1.3.2.2.6.1.2.3.1.1"><p id="en-us_topic_0043394889__p45773798153632"><strong id="en-us_topic_0043394889__b633727016234">Parameter</strong></p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0043394889__table9567729153632" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters required for creating a message template</caption><thead align="left"><tr id="en-us_topic_0043394889__row46643153153632"><th align="left" class="cellrowborder" valign="top" width="19.74%" id="mcps1.3.2.2.6.1.2.3.1.1"><p id="en-us_topic_0043394889__p45773798153632"><strong id="en-us_topic_0043394889__b633727016234">Parameter</strong></p>
</th> </th>
@ -18,29 +18,29 @@
<tbody><tr id="en-us_topic_0043394889__row15993813153632"><td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043394889__p43710295164421">Template Name</p> <tbody><tr id="en-us_topic_0043394889__row15993813153632"><td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043394889__p43710295164421">Template Name</p>
</td> </td>
<td class="cellrowborder" valign="top" width="80.25999999999999%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043394889__p44258107153632">Template name, which:</p> <td class="cellrowborder" valign="top" width="80.25999999999999%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043394889__p44258107153632">Template name, which:</p>
<ul id="en-us_topic_0043394889__ul40971925153757"><li id="en-us_topic_0043394889__li50065056153757">Contains letters, numerals, underscores (_), and hyphens (-) and starts with a letter or numeral.</li><li id="en-us_topic_0043394889__li46057856153757">Is a character string 1 to 64 bytes long.</li><li id="en-us_topic_0043394889__li16528589153757">Cannot be modified once the template is created.</li></ul> <ul id="en-us_topic_0043394889__ul40971925153757"><li id="en-us_topic_0043394889__li50065056153757">Contains only letters, digits, hyphens (-), and underscores (_), and must start with a letter or digit.</li><li id="en-us_topic_0043394889__li46057856153757">Can contain 1 to 64 bytes.</li><li id="en-us_topic_0043394889__li16528589153757">Cannot be modified once the template is created.</li></ul>
</td> </td>
</tr> </tr>
<tr id="en-us_topic_0043394889__row62778644153632"><td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043394889__p27643693164446">Protocol</p> <tr id="en-us_topic_0043394889__row62778644153632"><td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043394889__p27643693164446">Protocol</p>
</td> </td>
<td class="cellrowborder" valign="top" width="80.25999999999999%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043394889__p40584374104257">Endpoint protocol of the template, which cannot be changed once the template is created</p> <td class="cellrowborder" valign="top" width="80.25999999999999%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043394889__p40584374104257">Endpoint protocol of the template, which cannot be changed once the template is created</p>
<p id="en-us_topic_0043394889__p43586774153632">The value can be <strong id="en-us_topic_0043394889__b2108805878143347">Default</strong>, <strong id="en-us_topic_0043394889__b1095921216143347">SMS</strong>, <strong id="en-us_topic_0043394889__b218424467143347">HTTP</strong>, <strong id="en-us_topic_0043394889__b1369851447143347">HTTPS</strong>, <strong id="en-us_topic_0043394889__b84235270615203">DMS</strong>, or <strong id="en-us_topic_0043394889__b1100015765143347">Email</strong>.</p> <p id="en-us_topic_0043394889__p43586774153632">The protocol can be <strong id="en-us_topic_0043394889__b2108805878143347">Default</strong>, <strong id="en-us_topic_0043394889__b1095921216143347">SMS</strong>, <strong id="en-us_topic_0043394889__b218424467143347">HTTP</strong>, <strong id="en-us_topic_0043394889__b1369851447143347">HTTPS</strong>, <strong id="en-us_topic_0043394889__b84235270615203">DMS</strong>, or <strong id="en-us_topic_0043394889__b1100015765143347">Email</strong>.</p>
<p id="en-us_topic_0043394889__p12468638104149">If you do not specify a protocol, the <strong id="en-us_topic_0043394889__b1862142081510">Default</strong> protocol is used.</p> <p id="en-us_topic_0043394889__p12468638104149">If you do not specify a protocol, <strong id="en-us_topic_0043394889__b842352706204357">Default</strong> is used.</p>
</td> </td>
</tr> </tr>
<tr id="en-us_topic_0043394889__row23418429162644"><td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043394889__p32830814164510">Content</p> <tr id="en-us_topic_0043394889__row23418429162644"><td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043394889__p32830814164510">Content</p>
</td> </td>
<td class="cellrowborder" valign="top" width="80.25999999999999%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043394889__p5697748316413">Template content</p> <td class="cellrowborder" valign="top" width="80.25999999999999%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043394889__p5697748316413">Template content</p>
<p id="en-us_topic_0043394889__p29184378155831">You can use variables as placeholders. Before you send messages using the template, SMN replaces the variables with the message content you specify. A variable is a string of up to 21 characters. It may contain upper- or lower-case letters, numerals, hyphens (-), underscores (_), and periods (.) and must start with a letter or numeral.</p> <p id="en-us_topic_0043394889__p29184378155831">You can use variables as placeholders. Before you send messages using the template, SMN replaces the variables with the message content you specify. A variable can contain up to 21 characters and must start with a letter or digit. It can contain letters, digits, hyphens (-), underscores (_), and periods (.).</p>
<p id="en-us_topic_0043394889__p40948298155833">The message template must meet the following requirements:</p> <p id="en-us_topic_0043394889__p40948298155833">The message template must meet the following requirements:</p>
<ul id="en-us_topic_0043394889__ul24327004104111"><li id="en-us_topic_0043394889__li33483129104111">The template supports plain text only.</li><li id="en-us_topic_0043394889__li16507566115216">The template content cannot be left blank and cannot exceed 256 KB.</li></ul> <ul id="en-us_topic_0043394889__ul24327004104111"><li id="en-us_topic_0043394889__li33483129104111">The template supports plain text only.</li><li id="en-us_topic_0043394889__li16507566115216">The template content cannot be left blank and cannot exceed 256 KB.</li></ul>
<ul id="en-us_topic_0043394889__ul36563140155946"><li id="en-us_topic_0043394889__li60632807155946">A template can contain up to 90 non-repeating variables or 256 variables counting the repeated ones.</li><li id="en-us_topic_0043394889__li1566440816017">When you send messages using a template, the message content you specify for each variable cannot exceed 1 KB.</li></ul> <ul id="en-us_topic_0043394889__ul36563140155946"><li id="en-us_topic_0043394889__li60632807155946">The template can contain up to 256 variables in total, but that includes redundant variables. For unique variables, there can be no more than 90.</li><li id="en-us_topic_0043394889__li1566440816017">When you send messages using a template, the message content you specify for each variable cannot exceed 1 KB.</li></ul>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="p" id="en-us_topic_0043394889__p2546525716048">For example, the template information is as follows:<ul id="en-us_topic_0043394889__en-us_topic_0044170770_ul5044007014355"><li id="en-us_topic_0043394889__en-us_topic_0044170770_li4443585114355"><strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706163210">Template Name</strong>: <strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706163239">tem_001</strong></li><li id="en-us_topic_0043394889__en-us_topic_0044170770_li143143414419"><strong id="en-us_topic_0043394889__en-us_topic_0044170770_b158535461116339">Protocol</strong>: <strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706163315">Default</strong></li><li id="en-us_topic_0043394889__en-us_topic_0044170770_li42097216103353"><strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706112333">Content</strong>: <strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706112354">The Arts and Crafts Exposition will be held from {startdate} through {enddate}. We sincerely invite you to join us.</strong><div class="fignone" id="en-us_topic_0043394889__en-us_topic_0044170770_fig17426812318"><span class="figcap"><b>Figure 2 </b>Create Message Template</span><br><span><img id="en-us_topic_0043394889__en-us_topic_0044170770_image197421283237" src="en-us_image_0000001366385432.png" title="Click to enlarge" class="imgResize"></span></div> <div class="p" id="en-us_topic_0043394889__p2546525716048">For example, the template information is as follows:<ul id="en-us_topic_0043394889__en-us_topic_0044170770_ul5044007014355"><li id="en-us_topic_0043394889__en-us_topic_0044170770_li4443585114355"><strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706163210">Template Name</strong>: <strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706163239">tem_001</strong></li><li id="en-us_topic_0043394889__en-us_topic_0044170770_li143143414419"><strong id="en-us_topic_0043394889__en-us_topic_0044170770_b158535461116339">Protocol</strong>: <strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706163315">Default</strong></li><li id="en-us_topic_0043394889__en-us_topic_0044170770_li42097216103353"><strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706112333">Content</strong>: <strong id="en-us_topic_0043394889__en-us_topic_0044170770_b842352706112354">The Arts and Crafts Exposition will be held from {startdate} through {enddate}. We sincerely invite you to join us.</strong><div class="fignone" id="en-us_topic_0043394889__en-us_topic_0044170770_fig17426812318"><span class="figcap"><b>Figure 2 </b>Create Message Template</span><br><span><img id="en-us_topic_0043394889__en-us_topic_0044170770_image197421283237" src="en-us_image_0095665587.png" title="Click to enlarge" class="imgResize"></span></div>
</li></ul> </li></ul>
</div> </div>
</li><li id="en-us_topic_0043394889__li21708033194730">Click <strong id="en-us_topic_0043394889__b842352706174649">OK</strong>.<p id="en-us_topic_0043394889__p37694147103152">The template you created is displayed in the template list.</p> </li><li id="en-us_topic_0043394889__li21708033194730">Click <strong id="en-us_topic_0043394889__b842352706174649">OK</strong>.<p id="en-us_topic_0043394889__p37694147103152">The template you created is displayed in the template list.</p>

View File

@ -2,47 +2,45 @@
<h1 class="topictitle1">Basic Mode</h1> <h1 class="topictitle1">Basic Mode</h1>
<div id="body1604305022191"><p id="en-us_topic_0043394891__p103713210100">The topic creator has the right to configure topic policies. Using topic policies, you can specify which users and cloud services can perform which topic operations, for example, querying topic details and publishing messages. Topic creators always have permissions over a topic even if they grant topic permissions to other users.</p> <div id="body1604305022191"><p id="en-us_topic_0043394891__p103713210100">The topic creator has the right to configure topic policies. Using topic policies, you can specify which users and cloud services can perform which topic operations, for example, querying topic details and publishing messages. Topic creators always have permissions over a topic even if they grant topic permissions to other users.</p>
<div class="section" id="en-us_topic_0043394891__section123941655999"><h4 class="sectiontitle">Configuring Topic Policies in Basic Mode</h4><ol id="en-us_topic_0043394891__ol59341341165252"><li id="en-us_topic_0043394891__li17052523145723">Log in to the management console.</li><li id="en-us_topic_0043394891__li6027193112482">Click <span><img id="en-us_topic_0043394891__en-us_topic_0043961401_image1893792703171224" src="en-us_image_0000001366545396.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043394891__li19254981145723">In the <strong id="en-us_topic_0043394891__en-us_topic_0043961402_en-us_topic_0043961401_b5246102962317">Application</strong> category, click <strong id="en-us_topic_0043394891__en-us_topic_0043961402_en-us_topic_0043961401_b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0043394891__en-us_topic_0043961402_en-us_topic_0043961401_en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p> <div class="section" id="en-us_topic_0043394891__section123941655999"><h4 class="sectiontitle">Configuring Topic Policies in Basic Mode</h4><ol id="en-us_topic_0043394891__ol59341341165252"><li id="en-us_topic_0043394891__li17052523145723">Log in to the management console.</li><li id="en-us_topic_0043394891__li6027193112482">Click <span><img id="en-us_topic_0043394891__en-us_topic_0043961401_image1893792703171224" src="en-us_image_0151546390.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043394891__li19254981145723">Under <strong id="en-us_topic_0043394891__en-us_topic_0043961402_en-us_topic_0043961401_b5246102962317">Application</strong>, select <strong id="en-us_topic_0043394891__en-us_topic_0043961402_en-us_topic_0043961401_b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0043394891__en-us_topic_0043961402_en-us_topic_0043961401_smn_json_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p>
</li><li id="en-us_topic_0043394891__li46553485145723"><p id="en-us_topic_0043394891__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0043394891__li46553485145723"></a><a name="li46553485145723"></a>In the navigation pane, choose <strong id="en-us_topic_0043394891__en-us_topic_0043961401_b842352706173443">Topics</strong>.</p> </li><li id="en-us_topic_0043394891__li46553485145723"><p id="en-us_topic_0043394891__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0043394891__li46553485145723"></a><a name="li46553485145723"></a>In the navigation pane, choose <strong id="en-us_topic_0043394891__en-us_topic_0043961401_b842352706173443">Topics</strong>.</p>
<p id="en-us_topic_0043394891__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0043394891__en-us_topic_0043961401_b8423527069492">Topics</strong> page is displayed.</p> <p id="en-us_topic_0043394891__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0043394891__en-us_topic_0043961401_b8423527069492">Topics</strong> page is displayed.</p>
</li><li id="en-us_topic_0043394891__li5832090715590">Locate a topic, click <strong id="en-us_topic_0043394891__b5645917123511">More</strong> under <strong id="en-us_topic_0043394891__b3654171715359">Operation</strong>, and select <strong id="en-us_topic_0043394891__b13654117163512">Configure Topic Policy</strong>.</li><li id="en-us_topic_0043394891__li821712459553">In the <strong id="en-us_topic_0043394891__b88281318193513">Configure Topic Policy</strong> box, configure the topic policy in basic mode.<p id="en-us_topic_0043394891__p102952047125517">The basic mode simply specifies which users or cloud services have permissions to publish messages to a topic. For details, see <a href="#en-us_topic_0043394891__table41411027111244">Table 1</a>.</p> </li><li id="en-us_topic_0043394891__li5832090715590">Locate a topic, click <strong id="en-us_topic_0043394891__b5645917123511">More</strong> under <strong id="en-us_topic_0043394891__b3654171715359">Operation</strong>, and select <strong id="en-us_topic_0043394891__b13654117163512">Configure Topic Policy</strong>.</li><li id="en-us_topic_0043394891__li821712459553">In the <strong id="en-us_topic_0043394891__b88281318193513">Configure Topic Policy</strong> dialog box, configure the topic policy in basic mode.<p id="en-us_topic_0043394891__p102952047125517">The basic mode simply specifies which users or cloud services have permissions to publish messages to a topic. For details, see <a href="#en-us_topic_0043394891__table41411027111244">Table 1</a>.</p>
<p id="en-us_topic_0043394891__p317424116543">The advanced mode provides more flexible permission settings. For details, see section <a href="en-us_topic_0043394868.html">3.4.2 Advanced Mode</a>.</p>
<div class="tablenoborder"><a name="en-us_topic_0043394891__table41411027111244"></a><a name="table41411027111244"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0043394891__table41411027111244" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Description for configuring topic policies in basic mode</caption><thead align="left"><tr id="en-us_topic_0043394891__row13344231111244"><th align="left" class="cellrowborder" valign="top" width="14.141414141414144%" id="mcps1.3.2.2.6.4.2.4.1.1"><p id="en-us_topic_0043394891__p33478231112118">Item</p> <div class="tablenoborder"><a name="en-us_topic_0043394891__table41411027111244"></a><a name="table41411027111244"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0043394891__table41411027111244" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Description for configuring topic policies in basic mode</caption><thead align="left"><tr id="en-us_topic_0043394891__row13344231111244"><th align="left" class="cellrowborder" valign="top" width="14.141414141414144%" id="mcps1.3.2.2.6.3.2.4.1.1"><p id="en-us_topic_0043394891__p33478231112118">Item</p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="22.222222222222225%" id="mcps1.3.2.2.6.4.2.4.1.2"><p id="en-us_topic_0043394891__p18000631111244">Parameter</p> <th align="left" class="cellrowborder" valign="top" width="22.222222222222225%" id="mcps1.3.2.2.6.3.2.4.1.2"><p id="en-us_topic_0043394891__p18000631111244">Parameter</p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="63.63636363636363%" id="mcps1.3.2.2.6.4.2.4.1.3"><p id="en-us_topic_0043394891__p48765019111244"><strong id="en-us_topic_0043394891__b56065301353">Description</strong></p> <th align="left" class="cellrowborder" valign="top" width="63.63636363636363%" id="mcps1.3.2.2.6.3.2.4.1.3"><p id="en-us_topic_0043394891__p48765019111244"><strong id="en-us_topic_0043394891__b56065301353">Description</strong></p>
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody><tr id="en-us_topic_0043394891__row18473302111244"><td class="cellrowborder" rowspan="3" valign="top" width="14.141414141414144%" headers="mcps1.3.2.2.6.4.2.4.1.1 "><p id="en-us_topic_0043394891__p5383640695554">Users who can publish messages to this topic</p> <tbody><tr id="en-us_topic_0043394891__row18473302111244"><td class="cellrowborder" rowspan="3" valign="top" width="14.141414141414144%" headers="mcps1.3.2.2.6.3.2.4.1.1 "><p id="en-us_topic_0043394891__p5383640695554">Users who can publish messages to this topic</p>
</td> </td>
<td class="cellrowborder" valign="top" width="22.222222222222225%" headers="mcps1.3.2.2.6.4.2.4.1.2 "><p id="en-us_topic_0043394891__p47398656111244">Topic creator</p> <td class="cellrowborder" valign="top" width="22.222222222222225%" headers="mcps1.3.2.2.6.3.2.4.1.2 "><p id="en-us_topic_0043394891__p47398656111244">Topic creator</p>
</td> </td>
<td class="cellrowborder" valign="top" width="63.63636363636363%" headers="mcps1.3.2.2.6.4.2.4.1.3 "><p id="en-us_topic_0043394891__p14085905111244">Only the topic creator has permission to publish messages to the topic.</p> <td class="cellrowborder" valign="top" width="63.63636363636363%" headers="mcps1.3.2.2.6.3.2.4.1.3 "><p id="en-us_topic_0043394891__p14085905111244">Only the topic creator has the permission to publish messages to the topic.</p>
</td> </td>
</tr> </tr>
<tr id="en-us_topic_0043394891__row11395712111244"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.6.4.2.4.1.1 "><p id="en-us_topic_0043394891__p43476026111244">All users</p> <tr id="en-us_topic_0043394891__row11395712111244"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.6.3.2.4.1.1 "><p id="en-us_topic_0043394891__p43476026111244">All users</p>
</td> </td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.6.4.2.4.1.2 "><p id="en-us_topic_0043394891__p31897252111244">All users have permission to publish messages to the topic.</p> <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.6.3.2.4.1.2 "><p id="en-us_topic_0043394891__p31897252111244">All users have the permission to publish messages to the topic.</p>
</td> </td>
</tr> </tr>
<tr id="en-us_topic_0043394891__row23505339111244"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.6.4.2.4.1.1 "><p id="en-us_topic_0043394891__p1329320191815">Specified user domains</p> <tr id="en-us_topic_0043394891__row23505339111244"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.6.3.2.4.1.1 "><p id="en-us_topic_0043394891__p1329320191815">Specified user domains</p>
</td> </td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.6.4.2.4.1.2 "><p id="en-us_topic_0043394891__p850910222516">Only specified users have permission to publish messages to the topic. Users are specified in the format <strong id="en-us_topic_0043394891__b10605131617369">urn:csp:iam::domainId:root</strong>.</p> <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.6.3.2.4.1.2 "><p id="en-us_topic_0043394891__p850910222516">Only specified users have the permission to publish messages to the topic. Users are specified in the following format: urn:csp:iam::domainId:root.</p>
<p id="en-us_topic_0043394891__p13818194012327">You only need to enter the domain ID and click <strong id="en-us_topic_0043394891__b075818143620">OK</strong>. The system completes all other required information for you. SMN does not limit the number of IDs you enter, but the total length of a topic policy cannot exceed 30 KB.</p> <p id="en-us_topic_0043394891__p13818194012327">You only need to enter the domain ID and click <strong id="en-us_topic_0043394891__b075818143620">OK</strong>. The system completes all other required information for you. SMN does not limit the number of IDs you enter, but the total size of a topic policy cannot exceed 30 KB.</p>
<p id="en-us_topic_0043394891__p9731817181012">All settings in the basic mode are also presented in the advanced policy. You can modify them in the advanced mode if necessary. For details, see section <a href="en-us_topic_0043394868.html">3.4.2 Advanced Mode</a>.</p> <p id="en-us_topic_0043394891__p1068720613235">To obtain your domain ID, log in to the SMN console. In the upper right corner, hover the mouse over your login account, and select <strong id="en-us_topic_0043394891__b9875133915438">My Credentials</strong> from the drop-down list.</p>
<p id="en-us_topic_0043394891__p1068720613235">To obtain a user's domain ID, log in to the SMN console and click <strong id="en-us_topic_0043394891__b830332622319">My Credentials</strong> in the username drop-down list on the upper right.</p>
</td> </td>
</tr> </tr>
<tr id="en-us_topic_0043394891__row6059372111244"><td class="cellrowborder" valign="top" width="14.141414141414144%" headers="mcps1.3.2.2.6.4.2.4.1.1 "><p id="en-us_topic_0043394891__p27095394111244">Services that can publish messages to this topic</p> <tr id="en-us_topic_0043394891__row6059372111244"><td class="cellrowborder" valign="top" width="14.141414141414144%" headers="mcps1.3.2.2.6.3.2.4.1.1 "><p id="en-us_topic_0043394891__p27095394111244">Services that can publish messages to this topic</p>
</td> </td>
<td class="cellrowborder" valign="top" width="22.222222222222225%" headers="mcps1.3.2.2.6.4.2.4.1.2 "><p id="en-us_topic_0043394891__p1450115341985">The services that can publish messages vary according to regions.</p> <td class="cellrowborder" valign="top" width="22.222222222222225%" headers="mcps1.3.2.2.6.3.2.4.1.2 "><p id="en-us_topic_0043394891__p17746124818914">Example: <strong id="en-us_topic_0043394891__b573962493619">OBS</strong></p>
<p id="en-us_topic_0043394891__p1450115341985">The services that can publish messages to a topic vary in different regions.</p>
</td> </td>
<td class="cellrowborder" valign="top" width="63.63636363636363%" headers="mcps1.3.2.2.6.4.2.4.1.3 "><p id="en-us_topic_0043394891__p1504539111244">The selected cloud services have operation permissions of the topic.</p> <td class="cellrowborder" valign="top" width="63.63636363636363%" headers="mcps1.3.2.2.6.3.2.4.1.3 "><p id="en-us_topic_0043394891__p1504539111244">The selected cloud services have operation permissions of the topic.</p>
<div class="note" id="en-us_topic_0043394891__note52989799155357"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="en-us_topic_0043394891__p10394321932">By default, Cloud Eye and Anti-DDoS have permissions to publish messages to topics created by all users.</p> <div class="note" id="en-us_topic_0043394891__note52989799155357"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="en-us_topic_0043394891__p7146143155357">By default, Cloud Eye and Anti-DDoS have the permission to publish messages to topics created by all users. For details about how to use SMN in other cloud services, see user guides of the related services.</p>
<p id="en-us_topic_0043394891__p7556617334">For details about how to use SMN in other cloud services, see user guides of the related services.</p>
</div></div> </div></div>
</td> </td>
</tr> </tr>

View File

@ -12,7 +12,7 @@
</li> </li>
<li class="ulchildlink"><strong><a href="smn_ug_0007.html">Configuring Topic Policies</a></strong><br> <li class="ulchildlink"><strong><a href="smn_ug_0007.html">Configuring Topic Policies</a></strong><br>
</li> </li>
<li class="ulchildlink"><strong><a href="en-us_topic_0043961402.html">Adding a Subscription</a></strong><br> <li class="ulchildlink"><strong><a href="en-us_topic_0043961402.html">Adding a Subscription to a Topic</a></strong><br>
</li> </li>
<li class="ulchildlink"><strong><a href="smn_ug_0027.html">Publishing a Message</a></strong><br> <li class="ulchildlink"><strong><a href="smn_ug_0027.html">Publishing a Message</a></strong><br>
</li> </li>

View File

@ -1,15 +1,14 @@
<a name="en-us_topic_0043961401"></a><a name="en-us_topic_0043961401"></a> <a name="en-us_topic_0043961401"></a><a name="en-us_topic_0043961401"></a>
<h1 class="topictitle1">Creating a Topic</h1> <h1 class="topictitle1">Creating a Topic</h1>
<div id="body1481095236901"><div class="section" id="en-us_topic_0043961401__section5231877317314"><h4 class="sectiontitle">Scenario</h4><p id="en-us_topic_0043961401__p61784484162238">A topic is a specified event to publish messages and subscribe to notifications. It serves as a message sending channel, where publishers and subscribers can interact with each other.</p> <div id="body1481095236901"><div class="section" id="en-us_topic_0043961401__section5231877317314"><h4 class="sectiontitle">Scenarios</h4><p id="en-us_topic_0043961401__p61784484162238">A topic is a specified event to publish messages and subscribe to notifications. It serves as a message sending channel, where publishers and subscribers can interact with each other.</p>
</div> </div>
<div class="section" id="en-us_topic_0043961401__section141512514421"><h4 class="sectiontitle">To Create a Topic</h4><ol id="en-us_topic_0043961401__o450d975fa59441da87e317a2a9102855"><li id="en-us_topic_0043961401__en-us_topic_0043394871_li1508056115226">Log in to the management console.</li><li id="en-us_topic_0043961401__li5151573555">Click <span><img id="en-us_topic_0043961401__image1893792703171224" src="en-us_image_0000001366545396.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043961401__en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_li56417302194730">In the <strong id="en-us_topic_0043961401__b5246102962317">Application</strong> category, click <strong id="en-us_topic_0043961401__b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0043961401__en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p> <div class="section" id="en-us_topic_0043961401__section141512514421"><h4 class="sectiontitle">To Create a Topic</h4><ol id="en-us_topic_0043961401__o450d975fa59441da87e317a2a9102855"><li id="en-us_topic_0043961401__en-us_topic_0043394871_li1508056115226">Log in to the management console.</li><li id="en-us_topic_0043961401__li5151573555">Click <span><img id="en-us_topic_0043961401__image1893792703171224" src="en-us_image_0151546390.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043961401__smn_json_en-us_topic_0043961401_en-us_topic_0043394871_li56417302194730">Under <strong id="en-us_topic_0043961401__b5246102962317">Application</strong>, select <strong id="en-us_topic_0043961401__b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0043961401__smn_json_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p>
</li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li4034985818049"><p id="en-us_topic_0043961401__p55288773174430"><a name="en-us_topic_0043961401__en-us_topic_0043394871_li4034985818049"></a><a name="en-us_topic_0043394871_li4034985818049"></a>In the navigation pane, choose <strong id="en-us_topic_0043961401__b842352706173443">Topics</strong>.</p> </li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li4034985818049"><p id="en-us_topic_0043961401__p55288773174430"><a name="en-us_topic_0043961401__en-us_topic_0043394871_li4034985818049"></a><a name="en-us_topic_0043394871_li4034985818049"></a>In the navigation pane, choose <strong id="en-us_topic_0043961401__b842352706173443">Topics</strong>.</p>
<p id="en-us_topic_0043961401__en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0043961401__b8423527069492">Topics</strong> page is displayed.</p> <p id="en-us_topic_0043961401__en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0043961401__b8423527069492">Topics</strong> page is displayed.</p>
</li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li53401209155118">Click <strong id="en-us_topic_0043961401__b3771120134220">Create Topic</strong>.<p id="en-us_topic_0043961401__p58381023987">The <strong id="en-us_topic_0043961401__b1964116240814">Create Topic</strong> box is displayed.</p> </li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li53401209155118">In the upper right corner, click <strong id="en-us_topic_0043961401__b3771120134220">Create Topic</strong>.<div class="fignone" id="en-us_topic_0043961401__fig63880443104346"><span class="figcap"><b>Figure 1 </b>Create Topic</span><br><span><img id="en-us_topic_0043961401__image2150956185612" src="en-us_image_0152909747.png" title="Click to enlarge" class="imgResize"></span></div>
<div class="fignone" id="en-us_topic_0043961401__fig63880443104346"><span class="figcap"><b>Figure 1 </b>Create Topic</span><br><span><img id="en-us_topic_0043961401__image2150956185612" src="en-us_image_0000001416865373.png" title="Click to enlarge" class="imgResize"></span></div>
</li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li31541025153249">Enter a topic name and display name. </li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li31541025153249">Enter a topic name and display name.
<div class="tablenoborder"><a name="en-us_topic_0043961401__en-us_topic_0043394871_table9567729153632"></a><a name="en-us_topic_0043394871_table9567729153632"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0043961401__en-us_topic_0043394871_table9567729153632" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Information required for creating a topic</caption><thead align="left"><tr id="en-us_topic_0043961401__en-us_topic_0043394871_row46643153153632"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.2.2.6.1.2.3.1.1"><p id="en-us_topic_0043961401__en-us_topic_0043394871_p45773798153632"><strong id="en-us_topic_0043961401__en-us_topic_0043394871_b4942326616041">Parameter</strong></p> <div class="tablenoborder"><a name="en-us_topic_0043961401__en-us_topic_0043394871_table9567729153632"></a><a name="en-us_topic_0043394871_table9567729153632"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0043961401__en-us_topic_0043394871_table9567729153632" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter descriptions</caption><thead align="left"><tr id="en-us_topic_0043961401__en-us_topic_0043394871_row46643153153632"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.2.2.6.1.2.3.1.1"><p id="en-us_topic_0043961401__en-us_topic_0043394871_p45773798153632"><strong id="en-us_topic_0043961401__en-us_topic_0043394871_b4942326616041">Parameter</strong></p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="79%" id="mcps1.3.2.2.6.1.2.3.1.2"><p id="en-us_topic_0043961401__en-us_topic_0043394871_p16690171153632"><strong id="en-us_topic_0043961401__en-us_topic_0043394871_b4386163916041">Description</strong></p> <th align="left" class="cellrowborder" valign="top" width="79%" id="mcps1.3.2.2.6.1.2.3.1.2"><p id="en-us_topic_0043961401__en-us_topic_0043394871_p16690171153632"><strong id="en-us_topic_0043961401__en-us_topic_0043394871_b4386163916041">Description</strong></p>
</th> </th>
@ -18,27 +17,27 @@
<tbody><tr id="en-us_topic_0043961401__en-us_topic_0043394871_row15993813153632"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043961401__en-us_topic_0043394871_p41631540153632">Topic Name</p> <tbody><tr id="en-us_topic_0043961401__en-us_topic_0043394871_row15993813153632"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043961401__en-us_topic_0043394871_p41631540153632">Topic Name</p>
</td> </td>
<td class="cellrowborder" valign="top" width="79%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043961401__en-us_topic_0043394871_p44258107153632">Topic name, which:</p> <td class="cellrowborder" valign="top" width="79%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043961401__en-us_topic_0043394871_p44258107153632">Topic name, which:</p>
<ul id="en-us_topic_0043961401__en-us_topic_0043394871_ul40971925153757"><li id="en-us_topic_0043961401__en-us_topic_0043394871_li4690254191513">Contains only letters, numerals, hyphens (-), and underscores (_) and starts with a letter or numeral.</li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li50065056153757">Is a string of 1 to 255 characters.</li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li16528589153757">Must be unique and cannot be modified once the topic is created.</li></ul> <ul id="en-us_topic_0043961401__en-us_topic_0043394871_ul40971925153757"><li id="en-us_topic_0043961401__en-us_topic_0043394871_li4690254191513">Contains only letters, digits, hyphens (-), and underscores (_), and must start with a letter or digit.</li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li50065056153757">Contain 1 to 255 characters.</li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li16528589153757">Must be unique and cannot be modified once the topic is created.</li></ul>
</td> </td>
</tr> </tr>
<tr id="en-us_topic_0043961401__row1798615142421"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043961401__p1025213190423">Display Name</p> <tr id="en-us_topic_0043961401__row1798615142421"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043961401__p1025213190423">Display Name</p>
</td> </td>
<td class="cellrowborder" valign="top" width="79%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043961401__p1881782917426">Message sender name, which must be less than 192 bytes.</p> <td class="cellrowborder" valign="top" width="79%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043961401__p1881782917426">Message sender name, which must be fewer than 192 characters.</p>
<div class="note" id="en-us_topic_0043961401__note13186621175918"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="en-us_topic_0043961401__p0186821165916">After you specify a display name, the sender in email messages will be presented as <em id="en-us_topic_0043961401__i42478810">Display name</em><strong id="en-us_topic_0043961401__b1009127020">&lt;username@example.com&gt;</strong>. Otherwise, the sender will be <strong id="en-us_topic_0043961401__b7110974">username@example.com</strong>.</p> <div class="note" id="en-us_topic_0043961401__note13186621175918"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="en-us_topic_0043961401__p0186821165916">After you specify a display name, the sender in email messages will be presented as <em id="en-us_topic_0043961401__i2088379205">Display name</em><strong id="en-us_topic_0043961401__b447699674">&lt;username@example.com&gt;</strong>. Otherwise, the sender will be <strong id="en-us_topic_0043961401__b392424548">username@example.com</strong>.</p>
</div></div> </div></div>
</td> </td>
</tr> </tr>
<tr id="en-us_topic_0043961401__row101210019315"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043961401__p0121302312">Tag</p> <tr id="en-us_topic_0043961401__row101210019315"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.6.1.2.3.1.1 "><p id="en-us_topic_0043961401__p0121302312">Tag</p>
</td> </td>
<td class="cellrowborder" valign="top" width="79%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043961401__p712190143113">Tags consist of keys and values. They identify cloud resources so that you can easily categorize and search for your resources.</p> <td class="cellrowborder" valign="top" width="79%" headers="mcps1.3.2.2.6.1.2.3.1.2 "><p id="en-us_topic_0043961401__p712190143113">A tag is a key-value pair. Tags identify cloud resources so that you can easily categorize and search for your resources.</p>
<ul id="en-us_topic_0043961401__ul584116317458"><li id="en-us_topic_0043961401__li18841831194519">A key or value is composed of letters, numerals, special characters -_@ and cannot start or end with a space. A key contains 36 characters at most, and a value contains 43 characters at most.</li><li id="en-us_topic_0043961401__li10841631124513">You can add up to 10 tags for each topic.</li></ul> <ul id="en-us_topic_0043961401__ul584116317458"><li id="en-us_topic_0043961401__li18841831194519">A key can contain up to 36 characters. A value can contain up to 43 characters. Both <strong id="en-us_topic_0043961401__b353482515413">Key</strong> and <strong id="en-us_topic_0043961401__b17534162512540">Value</strong> can contain only digits, letters, hyphens (-), at signs (@), and underscores (_).</li><li id="en-us_topic_0043961401__li10841631124513">You can add up to 10 tags for each topic.</li></ul>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li21708033194730">Click <strong id="en-us_topic_0043961401__b842352706144626">OK.</strong><p id="en-us_topic_0043961401__en-us_topic_0043394871_p9048733125612">The topic you created is displayed in the topic list. The system generates a topic URN, which is the unique resource identifier of the topic and cannot be changed.</p> </li><li id="en-us_topic_0043961401__en-us_topic_0043394871_li21708033194730">Click <strong id="en-us_topic_0043961401__b842352706144626">OK.</strong><p id="en-us_topic_0043961401__en-us_topic_0043394871_p9048733125612">The topic you created is displayed in the topic list. The system generates a topic URN, which is the unique resource identifier of the topic and cannot be changed.</p>
</li><li id="en-us_topic_0043961401__li1720481917816">Click the name of the topic to view its details, including the subscriptions, URN, and display name.</li></ol> </li><li id="en-us_topic_0043961401__li1720481917816">Click the name of the topic to view its details, including the URN, display name, and subscriptions.</li></ol>
</div> </div>
</div> </div>
<div> <div>

View File

@ -1,22 +1,22 @@
<a name="en-us_topic_0043961402"></a><a name="en-us_topic_0043961402"></a> <a name="en-us_topic_0043961402"></a><a name="en-us_topic_0043961402"></a>
<h1 class="topictitle1">Adding a Subscription</h1> <h1 class="topictitle1">Adding a Subscription to a Topic</h1>
<div id="body1481095236905"><div class="section" id="en-us_topic_0043961402__section32629212144827"><h4 class="sectiontitle">Scenario</h4><p id="en-us_topic_0043961402__p55362121145924">To deliver messages published to a topic to subscription endpoints, you must add the endpoints to the topic.</p> <div id="body1481095236905"><div class="section" id="en-us_topic_0043961402__section32629212144827"><h4 class="sectiontitle">Scenarios</h4><p id="en-us_topic_0043961402__p55362121145924">To deliver messages published to a topic to subscription endpoints, you must add the endpoints to the topic.</p>
</div> </div>
<div class="section" id="en-us_topic_0043961402__section66233919201117"><h4 class="sectiontitle">To Add a Subscription</h4><ol id="en-us_topic_0043961402__ol3129830020129"><li id="en-us_topic_0043961402__li64538836144937">Log in to the management console.</li><li id="en-us_topic_0043961402__li6027193112482">Click <span><img id="en-us_topic_0043961402__en-us_topic_0043961401_image1893792703171224" src="en-us_image_0000001366545396.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043961402__li55962959145012">In the <strong id="en-us_topic_0043961402__en-us_topic_0043961401_b5246102962317">Application</strong> category, click <strong id="en-us_topic_0043961402__en-us_topic_0043961401_b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0043961402__en-us_topic_0043961401_en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p> <div class="section" id="en-us_topic_0043961402__section66233919201117"><h4 class="sectiontitle">To Add a Subscription</h4><ol id="en-us_topic_0043961402__ol3129830020129"><li id="en-us_topic_0043961402__li64538836144937">Log in to the management console.</li><li id="en-us_topic_0043961402__li6027193112482">Click <span><img id="en-us_topic_0043961402__en-us_topic_0043961401_image1893792703171224" src="en-us_image_0151546390.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043961402__li55962959145012">Under <strong id="en-us_topic_0043961402__en-us_topic_0043961401_b5246102962317">Application</strong>, select <strong id="en-us_topic_0043961402__en-us_topic_0043961401_b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0043961402__en-us_topic_0043961401_smn_json_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p>
</li><li id="en-us_topic_0043961402__li51905376145112"><p id="en-us_topic_0043961402__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0043961402__li51905376145112"></a><a name="li51905376145112"></a>In the navigation pane, choose <strong id="en-us_topic_0043961402__en-us_topic_0043961401_b842352706173443">Topics</strong>.</p> </li><li id="en-us_topic_0043961402__li51905376145112"><p id="en-us_topic_0043961402__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0043961402__li51905376145112"></a><a name="li51905376145112"></a>In the navigation pane, choose <strong id="en-us_topic_0043961402__en-us_topic_0043961401_b842352706173443">Topics</strong>.</p>
<p id="en-us_topic_0043961402__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0043961402__en-us_topic_0043961401_b8423527069492">Topics</strong> page is displayed.</p> <p id="en-us_topic_0043961402__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0043961402__en-us_topic_0043961401_b8423527069492">Topics</strong> page is displayed.</p>
</li><li id="en-us_topic_0043961402__li47990020184517">Locate the topic to which you want to add a subscription, click <strong id="en-us_topic_0043961402__b12521675114">More</strong> under <strong id="en-us_topic_0043961402__b185161685113">Operation</strong>, and select <strong id="en-us_topic_0043961402__b145161675111">Add Subscription</strong>.<p id="en-us_topic_0043961402__p23850576184517">The <strong id="en-us_topic_0043961402__b1887873872153813">Add Subscription</strong> box is displayed.</p> </li><li id="en-us_topic_0043961402__li47990020184517">Locate the topic that you want to add a subscription to. In the <strong id="en-us_topic_0043961402__b121839671616">Operation</strong> column, choose <strong id="en-us_topic_0043961402__b733824151617">More</strong> &gt; <strong id="en-us_topic_0043961402__b842352706153238">Add Subscription</strong>.<p id="en-us_topic_0043961402__p23850576184517">The <strong id="en-us_topic_0043961402__b1887873872153813">Add Subscription</strong> dialog box is displayed.</p>
<div class="fignone" id="en-us_topic_0043961402__fig78719791833"><span class="figcap"><b>Figure 1 </b>Add Subscription</span><br><span><img id="en-us_topic_0043961402__image1114621915015" src="en-us_image_0000001417026805.png" title="Click to enlarge" class="imgResize"></span></div> <div class="fignone" id="en-us_topic_0043961402__fig78719791833"><span class="figcap"><b>Figure 1 </b>Add Subscription</span><br><span><img id="en-us_topic_0043961402__image1114621915015" src="en-us_image_0095665399.png" title="Click to enlarge" class="imgResize"></span></div>
</li><li id="en-us_topic_0043961402__li5569594161943">Specify the subscription protocol and endpoints. You can enter 10 endpoints at most, each on a separate line.<ul id="en-us_topic_0043961402__ul458944655113"><li id="en-us_topic_0043961402__li558724610515">Email<p id="en-us_topic_0043961402__p2058794675119"><a name="en-us_topic_0043961402__li558724610515"></a><a name="li558724610515"></a>Enter a valid email address, for example, <strong id="en-us_topic_0043961402__b842352706165231">username@example.com</strong>.</p> </li><li id="en-us_topic_0043961402__li5569594161943">Specify the subscription protocol and endpoints. You can enter 10 endpoints at most, each on a separate line.<ul id="en-us_topic_0043961402__ul458944655113"><li id="en-us_topic_0043961402__li558724610515">Email<p id="en-us_topic_0043961402__p2058794675119"><a name="en-us_topic_0043961402__li558724610515"></a><a name="li558724610515"></a>Enter a valid email address, for example, <strong id="en-us_topic_0043961402__b842352706165231">username@example.com</strong>.</p>
<p id="en-us_topic_0043961402__p45871146155114">Subscribers will receive a subscription confirmation email valid in 48 hours and must confirm the subscription to receive messages published to the topic.</p> <p id="en-us_topic_0043961402__p45871146155114">Subscribers will receive a subscription confirmation email valid in 48 hours and must confirm the subscription to receive messages published to the topic.</p>
</li><li id="en-us_topic_0043961402__li1458814617515">HTTP/HTTPS<p id="en-us_topic_0043961402__p1458774610514"><a name="en-us_topic_0043961402__li1458814617515"></a><a name="li1458814617515"></a>Enter a public network URL, for example, <strong id="en-us_topic_0043961402__b84235270617152">http://example.com/notification/action</strong>. HTTP/HTTPS subscribers must confirm their subscriptions. For details about HTTP/HTTPS messages, see section <a href="smn_ug_a9001.html">A.6.1 Introduction</a>.</p> </li><li id="en-us_topic_0043961402__li1458814617515">HTTP/HTTPS<p id="en-us_topic_0043961402__p1458774610514"><a name="en-us_topic_0043961402__li1458814617515"></a><a name="li1458814617515"></a>Enter a public network URL, for example, <strong id="en-us_topic_0043961402__b84235270617152">http://example.com/notification/action</strong>. HTTP/HTTPS subscribers must confirm their subscriptions. For details about HTTP/HTTPS messages, see <a href="smn_ug_a9001.html">Introduction</a>.</p>
</li><li id="en-us_topic_0043961402__li18588174614513">SMS<p id="en-us_topic_0043961402__p584912791111"><a name="en-us_topic_0043961402__li18588174614513"></a><a name="li18588174614513"></a>Enter a valid mobile number preceded by a plus sign (+) and a country code, for example, +4900000000.</p> </li><li id="en-us_topic_0043961402__li18588174614513">SMS<p id="en-us_topic_0043961402__p14588846135114"><a name="en-us_topic_0043961402__li18588174614513"></a><a name="li18588174614513"></a>Enter a valid mobile number preceded by a plus sign (+) and a country code .Example: +4900000000</p>
<p id="en-us_topic_0043961402__p185887466511">Subscribers will receive a subscription confirmation message valid in 48 hours and must confirm the subscription to receive messages published to the topic.</p> <p id="en-us_topic_0043961402__p185887466511">Subscribers will receive a subscription confirmation message valid in 48 hours and must confirm the subscription to receive messages published to the topic.</p>
</li><li id="en-us_topic_0043961402__li1358854611516">DMS<p id="en-us_topic_0043961402__p185881946175119"><a name="en-us_topic_0043961402__li1358854611516"></a><a name="li1358854611516"></a>Subscription endpoints are message queues. This type of subscriptions does not need confirmation. Click <span><img id="en-us_topic_0043961402__image6222155720296" src="en-us_image_0148410841.png"></span> to select subscription endpoints. Ensure that the queue policy grants the <strong id="en-us_topic_0043961402__b8423527061693">DMS:ProduceMessages</strong> permission to SMN. For details, see "Managing Queue Policies" in the <em id="en-us_topic_0043961402__i842352697152551">Distributed Message Service User Guide</em>.</p> </li><li id="en-us_topic_0043961402__li1358854611516">DMS<p id="en-us_topic_0043961402__p185881946175119"><a name="en-us_topic_0043961402__li1358854611516"></a><a name="li1358854611516"></a>Subscription endpoints are message queues. This type of subscriptions does not require confirmation. Click <span><img id="en-us_topic_0043961402__image6222155720296" src="en-us_image_0148410841.png"></span> to select subscription endpoints. When you select DMS queues, grant the <strong id="en-us_topic_0043961402__b83743216298">ProduceMessages</strong> permission to SMN in the queue policy. For details, see section "Managing Queue Policies" in the <em id="en-us_topic_0043961402__i1091813211378">Distributed Message Service User Guide</em>.</p>
</li></ul> </li></ul>
</li><li id="en-us_topic_0043961402__li10786811173119">Click <strong id="en-us_topic_0043961402__b842352706174649">OK</strong>.<p id="en-us_topic_0043961402__p46184451175514">The subscription you added is displayed in the subscription list.</p> </li><li id="en-us_topic_0043961402__li10786811173119">Click <strong id="en-us_topic_0043961402__b842352706174649">OK</strong>.<p id="en-us_topic_0043961402__p46184451175514">The subscription you added is displayed in the subscription list.</p>
<div class="note" id="en-us_topic_0043961402__note12466114784612"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0043961402__ul223164154714"><li id="en-us_topic_0043961402__li92311248474">To prevent malicious users from attacking subscription endpoints, SMN limits the number of confirmation messages that can be sent to an endpoint within a specified period of time. For details, see section <a href="smn_ug_a4000.html">A.4 Control on Subscription Confirmation Traffic</a>.</li><li id="en-us_topic_0043961402__li17231643473">SMN does not check whether subscription endpoints exist when you add subscriptions. However, subscribers will not receive notification messages until they confirm their subscriptions.</li><li id="en-us_topic_0043961402__li1023112417479">The token is valid only for 48 hours. Therefore, subscribers must confirm subscriptions within that time.</li></ul> <div class="note" id="en-us_topic_0043961402__note12466114784612"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0043961402__ul223164154714"><li id="en-us_topic_0043961402__li92311248474">To prevent malicious users from attacking subscription endpoints, SMN limits the number of confirmation messages that can be sent to an endpoint within a specified period of time. For details, see <a href="smn_ug_a4000.html">Control over Subscription Confirmation Traffic</a>.</li><li id="en-us_topic_0043961402__li17231643473">SMN does not check whether subscription endpoints exist when you add subscriptions. However, subscribers will not receive notification messages until they confirm their subscriptions.</li><li id="en-us_topic_0043961402__li1023112417479">After you add a subscription, SMN sends a confirmation message to the subscription endpoint. The message contains a link for confirming the subscription. The subscription confirmation link is valid within 48 hours. Confirm the subscription on your mobile phone, mailbox, or other endpoints in time.</li></ul>
</div></div> </div></div>
</li></ol> </li></ol>
</div> </div>

View File

@ -1,42 +1,43 @@
<a name="en-us_topic_0043961403"></a><a name="en-us_topic_0043961403"></a> <a name="en-us_topic_0043961403"></a><a name="en-us_topic_0043961403"></a>
<h1 class="topictitle1">Publishing a Text Message</h1> <h1 class="topictitle1">Publishing a Text Message</h1>
<div id="body1481095238094"><div class="section" id="en-us_topic_0043961403__section3152890014563"><h4 class="sectiontitle">Scenario</h4><p id="en-us_topic_0043961403__p31291543142459">After you publish a text message to a topic, SMN will deliver the message to all confirmed subscription endpoints in the topic.</p> <div id="body1481095238094"><div class="section" id="en-us_topic_0043961403__section3152890014563"><h4 class="sectiontitle">Scenarios</h4><p id="en-us_topic_0043961403__p31291543142459">After you publish a text message to a topic, SMN will deliver the message to all confirmed subscription endpoints in the topic.</p>
</div> </div>
<div class="section" id="en-us_topic_0043961403__section30431634133546"><h4 class="sectiontitle">Prerequisites</h4><p id="en-us_topic_0043961403__p23609712133556">Subscribers in the topic must have confirmed the subscription, or they will not be able to receive any messages.</p> <div class="section" id="en-us_topic_0043961403__section30431634133546"><h4 class="sectiontitle">Prerequisites</h4><p id="en-us_topic_0043961403__p23609712133556">Subscribers in the topic must have confirmed the subscription, or they will not be able to receive any messages.</p>
</div> </div>
<div class="section" id="en-us_topic_0043961403__section48379737125756"><h4 class="sectiontitle">To Publish a Text Message</h4><ol id="en-us_topic_0043961403__ol2431622213355"><li id="en-us_topic_0043961403__li64538836144937">Log in to the management console.</li><li id="en-us_topic_0043961403__li6027193112482">Click <span><img id="en-us_topic_0043961403__en-us_topic_0043961401_image1893792703171224" src="en-us_image_0000001366545396.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043961403__li55962959145012">In the <strong id="en-us_topic_0043961403__en-us_topic_0043961401_b5246102962317">Application</strong> category, click <strong id="en-us_topic_0043961403__en-us_topic_0043961401_b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0043961403__en-us_topic_0043961401_en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p> <div class="section" id="en-us_topic_0043961403__section48379737125756"><h4 class="sectiontitle">To Publish a Text Message</h4><ol id="en-us_topic_0043961403__ol2431622213355"><li id="en-us_topic_0043961403__li64538836144937">Log in to the management console.</li><li id="en-us_topic_0043961403__li6027193112482">Click <span><img id="en-us_topic_0043961403__en-us_topic_0043961401_image1893792703171224" src="en-us_image_0151546390.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0043961403__li55962959145012">Under <strong id="en-us_topic_0043961403__en-us_topic_0043961401_b5246102962317">Application</strong>, select <strong id="en-us_topic_0043961403__en-us_topic_0043961401_b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0043961403__en-us_topic_0043961401_smn_json_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p>
</li><li id="en-us_topic_0043961403__li51905376145112"><p id="en-us_topic_0043961403__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0043961403__li51905376145112"></a><a name="li51905376145112"></a>In the navigation pane, choose <strong id="en-us_topic_0043961403__en-us_topic_0043961401_b842352706173443">Topics</strong>.</p> </li><li id="en-us_topic_0043961403__li51905376145112"><p id="en-us_topic_0043961403__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0043961403__li51905376145112"></a><a name="li51905376145112"></a>In the navigation pane, choose <strong id="en-us_topic_0043961403__en-us_topic_0043961401_b842352706173443">Topics</strong>.</p>
<p id="en-us_topic_0043961403__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0043961403__en-us_topic_0043961401_b8423527069492">Topics</strong> page is displayed.</p> <p id="en-us_topic_0043961403__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0043961403__en-us_topic_0043961401_b8423527069492">Topics</strong> page is displayed.</p>
</li><li id="en-us_topic_0043961403__li1751941213355">In the topic list, locate the topic to which you need to publish a message and click <strong id="en-us_topic_0043961403__b84235270693032">Publish Message</strong> under <strong id="en-us_topic_0043961403__b84235270693057">Operation</strong>.</li><li id="en-us_topic_0043961403__li15444192392315">Configure the required parameters according to <a href="#en-us_topic_0043961403__table616755201736">Table 1</a>. The topic name is provided by default and cannot be changed. </li><li id="en-us_topic_0043961403__li1751941213355">In the topic list, locate the topic that you need to publish a message to and click <strong id="en-us_topic_0043961403__b84235270693032">Publish Message</strong> under <strong id="en-us_topic_0043961403__b84235270693057">Operation</strong>.</li><li id="en-us_topic_0043961403__li15444192392315">Configure the required parameters based on <a href="#en-us_topic_0043961403__table616755201736">Table 1</a>.<div class="p" id="en-us_topic_0043961403__p1984424122314">The topic name is provided by default and cannot be changed.
<div class="tablenoborder"><a name="en-us_topic_0043961403__table616755201736"></a><a name="table616755201736"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0043961403__table616755201736" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters required for publishing a message</caption><thead align="left"><tr id="en-us_topic_0043961403__row584325251736"><th align="left" class="cellrowborder" valign="top" width="30.259999999999998%" id="mcps1.3.3.2.6.2.2.3.1.1"><p id="en-us_topic_0043961403__p354141231736"><strong id="en-us_topic_0043961403__b593529816129">Parameter</strong></p> <div class="tablenoborder"><a name="en-us_topic_0043961403__table616755201736"></a><a name="table616755201736"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0043961403__table616755201736" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter descriptions</caption><thead align="left"><tr id="en-us_topic_0043961403__row584325251736"><th align="left" class="cellrowborder" valign="top" width="30.259999999999998%" id="mcps1.3.3.2.6.2.1.2.3.1.1"><p id="en-us_topic_0043961403__p354141231736"><strong id="en-us_topic_0043961403__b593529816129">Parameter</strong></p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="69.74000000000001%" id="mcps1.3.3.2.6.2.2.3.1.2"><p id="en-us_topic_0043961403__p470923481736"><strong id="en-us_topic_0043961403__b1099715916129">Description</strong></p> <th align="left" class="cellrowborder" valign="top" width="69.74000000000001%" id="mcps1.3.3.2.6.2.1.2.3.1.2"><p id="en-us_topic_0043961403__p470923481736"><strong id="en-us_topic_0043961403__b1099715916129">Description</strong></p>
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody><tr id="en-us_topic_0043961403__row24022921736"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.6.2.2.3.1.1 "><p id="en-us_topic_0043961403__p603679291736">Subject</p> <tbody><tr id="en-us_topic_0043961403__row24022921736"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.6.2.1.2.3.1.1 "><p id="en-us_topic_0043961403__p603679291736">Subject</p>
</td> </td>
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.6.2.2.3.1.2 "><p id="en-us_topic_0043961403__p519144811736">(Optional) The message subject is a string of less than 512 bytes.</p> <td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.6.2.1.2.3.1.2 "><p id="en-us_topic_0043961403__p519144811736">(Optional) The message subject must be less than 512 bytes.</p>
</td> </td>
</tr> </tr>
<tr id="en-us_topic_0043961403__row645771531736"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.6.2.2.3.1.1 "><p id="en-us_topic_0043961403__p633668671736">Message Format</p> <tr id="en-us_topic_0043961403__row645771531736"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.6.2.1.2.3.1.1 "><p id="en-us_topic_0043961403__p633668671736">Message Format</p>
</td> </td>
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.6.2.2.3.1.2 "><p id="en-us_topic_0043961403__p16675104132026">The message format can be <strong id="en-us_topic_0043961403__b842352706151447">Text</strong>, <strong id="en-us_topic_0043961403__b842352706151510">JSON</strong>, or <strong id="en-us_topic_0043961403__b84235270615161">Template</strong>. In this context, you need to select <strong id="en-us_topic_0043961403__b1892485612159">Text</strong>.</p> <td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.6.2.1.2.3.1.2 "><p id="en-us_topic_0043961403__p16675104132026">The message format can be <strong id="en-us_topic_0043961403__b842352706151447">Text</strong>, <strong id="en-us_topic_0043961403__b842352706151510">JSON</strong>, or <strong id="en-us_topic_0043961403__b84235270615161">Template</strong>. In this context, select <strong id="en-us_topic_0043961403__b1892485612159">Text</strong>.</p>
<ul id="en-us_topic_0043961403__ul37120136132048"><li id="en-us_topic_0043961403__li13251437132048"><strong id="en-us_topic_0043961403__b84235270616514">Text</strong>: common text message</li><li id="en-us_topic_0043961403__li21474914132053"><strong id="en-us_topic_0043961403__b842352706165215">JSON</strong>: JSON message</li><li id="en-us_topic_0043961403__li58807944132058"><strong id="en-us_topic_0043961403__b3824744584352">Template</strong>: template message. For details, see <a href="en-us_topic_0043394889.html">5 Message Template Management</a>.</li></ul> <ul id="en-us_topic_0043961403__ul37120136132048"><li id="en-us_topic_0043961403__li13251437132048"><strong id="en-us_topic_0043961403__b84235270616514">Text</strong>: common text message</li><li id="en-us_topic_0043961403__li21474914132053"><strong id="en-us_topic_0043961403__b842352706165215">JSON</strong>: JSON message</li><li id="en-us_topic_0043961403__li58807944132058"><strong id="en-us_topic_0043961403__b3824744584352">Template</strong>: template message. For details, see <a href="en-us_topic_0043394889.html">Message Template Management</a></li></ul>
</td> </td>
</tr> </tr>
<tr id="en-us_topic_0043961403__row45964848125529"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.6.2.2.3.1.1 "><p id="en-us_topic_0043961403__p5280417412564">Message</p> <tr id="en-us_topic_0043961403__row45964848125529"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.6.2.1.2.3.1.1 "><p id="en-us_topic_0043961403__p5280417412564">Message</p>
</td> </td>
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.6.2.2.3.1.2 "><p id="en-us_topic_0043961403__p55246607125529">This is the message content, which cannot be left blank nor exceed 256 KB.</p> <td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.6.2.1.2.3.1.2 "><p id="en-us_topic_0043961403__p55246607125529">This is the message content, which cannot be left blank nor exceed 256 KB.</p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="p" id="en-us_topic_0043961403__p6570291710358">The following figure shows an example text message.<div class="fignone" id="en-us_topic_0043961403__fig804716611238"><span class="figcap"><b>Figure 1 </b>Text message example</span><br><span><img id="en-us_topic_0043961403__image1444410190114" src="en-us_image_0000001366225576.png" title="Click to enlarge" class="imgResize"></span></div>
</div> </div>
</li><li id="en-us_topic_0043961403__li1708676313355">Click <strong id="en-us_topic_0043961403__b842352706174649">OK</strong>.<p id="en-us_topic_0043961403__p1116173015454">SMN delivers your message to all subscription endpoints. For details about messages for different protocols, see <a href="smn_ug_a3000.html">A.3 Messages of Different Protocols</a>.</p> <div class="p" id="en-us_topic_0043961403__p6570291710358"><a href="#en-us_topic_0043961403__fig804716611238">Figure 1</a> shows an example text message.<div class="fignone" id="en-us_topic_0043961403__fig804716611238"><a name="en-us_topic_0043961403__fig804716611238"></a><a name="fig804716611238"></a><span class="figcap"><b>Figure 1 </b>Text message example</span><br><span><img id="en-us_topic_0043961403__image1444410190114" src="en-us_image_0095665442.png" title="Click to enlarge" class="imgResize"></span></div>
</div>
</li><li id="en-us_topic_0043961403__li1708676313355">Click <strong id="en-us_topic_0043961403__b842352706174649">OK</strong>.<p id="en-us_topic_0043961403__p1116173015454">SMN delivers your message to all subscription endpoints. For details about the messages received by each endpoint, see <a href="smn_ug_a3000.html">Messages of Different Protocols</a>.</p>
</li></ol> </li></ol>
</div> </div>
</div> </div>

View File

@ -5,7 +5,7 @@
</div> </div>
<p id="en-us_topic_0044170758__p40153247145618">After you publish a message to a topic, SMN will deliver the message to all confirmed subscription endpoints in the topic.</p> <p id="en-us_topic_0044170758__p40153247145618">After you publish a message to a topic, SMN will deliver the message to all confirmed subscription endpoints in the topic.</p>
<p id="en-us_topic_0044170758__p5020065214149">For SMS endpoints, if an SMS message is oversized, the system divides it into multiple parts when sending it to subscribers. However, you must note that SMN only sends the first two parts of the SMS message and does not send any additional parts. You are charged based on the actual number of messages sent to the subscribers.</p> <p id="en-us_topic_0044170758__p5020065214149">For SMS endpoints, if an SMS message is oversized, the system divides it into multiple parts when sending it to subscribers. However, you must note that SMN only sends the first two parts of the SMS message and does not send any additional parts. You are charged based on the actual number of messages sent to the subscribers.</p>
<p id="en-us_topic_0044170758__p2894751141412">You must ensure that firewall policies of the HTTP or HTTPS endpoints allow SMN to send messages from the Internet. An SMN HTTP or HTTPS message consists of a message header and body. For details, see <a href="smn_ug_a9002.html">A.6.2 HTTP/HTTPS Message Format</a>.</p> <p id="en-us_topic_0044170758__p2894751141412">You must ensure that firewall policies of the HTTP or HTTPS endpoints allow SMN to send messages over the Internet. An SMN HTTP or HTTPS message consists of a message header and body. For details, see <a href="smn_ug_a9002.html">HTTP/HTTPS Message Format</a>.</p>
</div> </div>
<div> <div>
<div class="familylinks"> <div class="familylinks">

View File

@ -1,19 +1,22 @@
<a name="en-us_topic_0044170767"></a><a name="en-us_topic_0044170767"></a> <a name="en-us_topic_0044170767"></a><a name="en-us_topic_0044170767"></a>
<h1 class="topictitle1">Publishing a JSON Message</h1> <h1 class="topictitle1">Publishing a JSON Message</h1>
<div id="body1481255439111"><div class="section" id="en-us_topic_0044170767__section3152890014563"><h4 class="sectiontitle">Scenario</h4><p id="en-us_topic_0044170767__p47861138143834">In a JSON message, you can specify different message content for different protocols, including SMS, email, DMS, HTTP, and HTTPS.</p> <div id="body1481255439111"><div class="section" id="en-us_topic_0044170767__section3152890014563"><h4 class="sectiontitle">Scenarios</h4><p id="en-us_topic_0044170767__p47861138143834">In a JSON message, you can specify different message content for different protocols, including SMS, email, DMS, HTTP, and HTTPS.</p>
</div> </div>
<div class="section" id="en-us_topic_0044170767__section96171713434"><h4 class="sectiontitle">Prerequisites</h4><p id="en-us_topic_0044170767__en-us_topic_0043961403_p23609712133556">Subscribers in the topic must have confirmed the subscription, or they will not be able to receive any messages.</p> <div class="section" id="en-us_topic_0044170767__section96171713434"><h4 class="sectiontitle">Prerequisites</h4><p id="en-us_topic_0044170767__en-us_topic_0043961403_p23609712133556">Subscribers in the topic must have confirmed the subscription, or they will not be able to receive any messages.</p>
</div> </div>
<div class="section" id="en-us_topic_0044170767__section48379737125756"><h4 class="sectiontitle">To Publish a JSON Message</h4><ol id="en-us_topic_0044170767__ol2431622213355"><li id="en-us_topic_0044170767__li64538836144937">Log in to the management console.</li><li id="en-us_topic_0044170767__li6027193112482">Click <span><img id="en-us_topic_0044170767__en-us_topic_0043961401_image1893792703171224" src="en-us_image_0000001366545396.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0044170767__li55962959145012">In the <strong id="en-us_topic_0044170767__en-us_topic_0043961401_b5246102962317">Application</strong> category, click <strong id="en-us_topic_0044170767__en-us_topic_0043961401_b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0044170767__en-us_topic_0043961401_en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p> <div class="section" id="en-us_topic_0044170767__section48379737125756"><h4 class="sectiontitle">To Publish a JSON Message</h4><ol id="en-us_topic_0044170767__ol2431622213355"><li id="en-us_topic_0044170767__li64538836144937">Log in to the management console.</li><li id="en-us_topic_0044170767__li6027193112482">Click <span><img id="en-us_topic_0044170767__en-us_topic_0043961401_image1893792703171224" src="en-us_image_0151546390.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0044170767__li55962959145012">Under <strong id="en-us_topic_0044170767__en-us_topic_0043961401_b5246102962317">Application</strong>, select <strong id="en-us_topic_0044170767__en-us_topic_0043961401_b1897015122017">Simple Message Notification</strong>.<p id="en-us_topic_0044170767__en-us_topic_0043961401_smn_json_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p>
</li><li id="en-us_topic_0044170767__li51905376145112"><p id="en-us_topic_0044170767__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0044170767__li51905376145112"></a><a name="li51905376145112"></a>In the navigation pane, choose <strong id="en-us_topic_0044170767__en-us_topic_0043961401_b842352706173443">Topics</strong>.</p> </li><li id="en-us_topic_0044170767__li51905376145112"><p id="en-us_topic_0044170767__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0044170767__li51905376145112"></a><a name="li51905376145112"></a>In the navigation pane, choose <strong id="en-us_topic_0044170767__en-us_topic_0043961401_b842352706173443">Topics</strong>.</p>
<p id="en-us_topic_0044170767__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0044170767__en-us_topic_0043961401_b8423527069492">Topics</strong> page is displayed.</p> <p id="en-us_topic_0044170767__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0044170767__en-us_topic_0043961401_b8423527069492">Topics</strong> page is displayed.</p>
</li><li id="en-us_topic_0044170767__li1751941213355">In the topic list, locate the topic to which you need to publish a message and click <strong id="en-us_topic_0044170767__en-us_topic_0043961403_b84235270693032">Publish Message</strong> under <strong id="en-us_topic_0044170767__en-us_topic_0043961403_b84235270693057">Operation</strong>.</li><li id="en-us_topic_0044170767__li15596146145715">Configure the required parameters according to <a href="en-us_topic_0043961403.html#en-us_topic_0043961403__table616755201736">Table 1</a>. The topic name is provided by default and cannot be changed.<p id="en-us_topic_0044170767__p17146113443520">Select <strong id="en-us_topic_0044170767__b6705144516359">JSON</strong> for <strong id="en-us_topic_0044170767__b9544105373518">Message Format</strong>. Then, manually type the JSON message in the <strong id="en-us_topic_0044170767__b258871513620">Message</strong> box or click <strong id="en-us_topic_0044170767__b741822011361">Generate JSON Message</strong> to generate it automatically. The total size of a JSON message cannot exceed 256 KB.</p> </li><li id="en-us_topic_0044170767__li1751941213355">In the topic list, locate the topic that you need to publish a message to and click <strong id="en-us_topic_0044170767__en-us_topic_0043961403_b84235270693032">Publish Message</strong> under <strong id="en-us_topic_0044170767__en-us_topic_0043961403_b84235270693057">Operation</strong>.</li><li id="en-us_topic_0044170767__li15596146145715">Configure the required parameters.<p id="en-us_topic_0044170767__p745131105710"><a name="en-us_topic_0044170767__li15596146145715"></a><a name="li15596146145715"></a>The topic name is provided by default and cannot be changed.</p>
<ul id="en-us_topic_0044170767__ul91694809306"><li id="en-us_topic_0044170767__li154164629306">If you choose to manually type the JSON message, see <a href="smn_ug_a1000.html">A.1 JSON Message Format</a> for detailed requirements.</li><li id="en-us_topic_0044170767__li407739099306">If you choose to automatically generate the JSON message, proceed with steps <a href="#en-us_topic_0044170767__li59465700211512">7</a> through <a href="#en-us_topic_0044170767__li3542952114596">10</a>.</li></ul> <p id="en-us_topic_0044170767__p8131174577">Configure the required parameters based on <a href="en-us_topic_0043961403.html#en-us_topic_0043961403__table616755201736">Table 1</a>.</p>
</li><li id="en-us_topic_0044170767__li59465700211512"><a name="en-us_topic_0044170767__li59465700211512"></a><a name="li59465700211512"></a>Click <strong id="en-us_topic_0044170767__b528224952113029">Generate JSON Message</strong>.</li><li id="en-us_topic_0044170767__li18063796124032">Enter your message content, for example, "This is a default message.", in the <strong id="en-us_topic_0044170767__b84235270611324">Message</strong> box and select the desired message protocols.<p id="en-us_topic_0044170767__p27666737124039">The size of a JSON message varies depending on the protocol combinations. As you type in the message content, the system will calculate the number of bytes you have entered, the size of the JSON message, and how many bytes are left. The total size of a JSON message includes braces, quotation marks, spaces, line breaks, and message content. For details about how to calculate the size of a JSON message, see <a href="smn_ug_a1000.html#smn_ug_a1000__section11977745123756">Calculation on the JSON Message Size</a> in <a href="smn_ug_a1000.html">A.1 JSON Message Format</a>.</p> <p id="en-us_topic_0044170767__p3983113316573">Select <strong id="en-us_topic_0044170767__b1698315332576">JSON</strong> for <strong id="en-us_topic_0044170767__b698343395715">Message Format</strong>.</p>
<div class="fignone" id="en-us_topic_0044170767__fig1130720419115"><span class="figcap"><b>Figure 1 </b>Generate JSON Message</span><br><span><img id="en-us_topic_0044170767__image8734587214" src="en-us_image_0000001366545412.png" title="Click to enlarge" class="imgResize"></span></div> <p id="en-us_topic_0044170767__p3507287792725">Manually type the JSON message in the <strong id="en-us_topic_0044170767__b13691141713349">Message</strong> box or click <strong id="en-us_topic_0044170767__b1069141743415">Generate JSON Message</strong> to generate it automatically. The total size of a JSON message cannot exceed 256 KB.</p>
</li><li id="en-us_topic_0044170767__li12314987211144">Click <strong id="en-us_topic_0044170767__b815873211018">OK</strong>. The system generates a JSON message.<div class="fignone" id="en-us_topic_0044170767__fig3832434220122"><span class="figcap"><b>Figure 2 </b>JSON message</span><br><span><img id="en-us_topic_0044170767__image1571216566220" src="en-us_image_0000001417145493.png" title="Click to enlarge" class="imgResize"></span></div> <ul id="en-us_topic_0044170767__ul91694809306"><li id="en-us_topic_0044170767__li154164629306">If you choose to manually type the JSON message, see <a href="smn_ug_a1000.html">JSON Message Format</a> for detailed requirements.</li><li id="en-us_topic_0044170767__li407739099306">If you choose to automatically generate the JSON message, proceed with steps <a href="#en-us_topic_0044170767__li59465700211512">7</a> through <a href="#en-us_topic_0044170767__li3542952114596">10</a>.</li></ul>
</li><li id="en-us_topic_0044170767__li3542952114596"><a name="en-us_topic_0044170767__li3542952114596"></a><a name="li3542952114596"></a>Modify the message content for each protocol so that different messages are sent to endpoints of different protocols. The system generates JSON-formatted content that includes a default message and message for each protocol. When SMN fails to match any specific message protocol, it sends the default message. For detailed JSON message format, see <a href="smn_ug_a1000.html">A.1 JSON Message Format</a>.</li><li id="en-us_topic_0044170767__li1708676313355">Click <strong id="en-us_topic_0044170767__en-us_topic_0043961403_b842352706174649">OK</strong>.<p id="en-us_topic_0044170767__p1504056193713">SMN delivers your message to all subscription endpoints. For details about messages for different protocols, see <a href="smn_ug_a3000.html">A.3 Messages of Different Protocols</a>.</p> </li><li id="en-us_topic_0044170767__li59465700211512"><a name="en-us_topic_0044170767__li59465700211512"></a><a name="li59465700211512"></a>Click <strong id="en-us_topic_0044170767__b528224952113029">Generate JSON Message</strong>.</li><li id="en-us_topic_0044170767__li18063796124032">Enter your message content, for example, <strong id="en-us_topic_0044170767__b1768517475554">This is a default message.</strong>, in the <strong id="en-us_topic_0044170767__b84235270611324">Message</strong> box and select the desired message protocols.<p id="en-us_topic_0044170767__p27666737124039">The size of a JSON message varies depending on the protocol combinations. As you type in the message content, the system will calculate the number of bytes you have entered, the size of the JSON message, and how many bytes are left. The total size of a JSON message includes braces, quotation marks, spaces, line breaks, and message content. For details about how to calculate the size of a JSON message, see <a href="smn_ug_a1000.html#smn_ug_a1000__section11977745123756">Calculation on the JSON Message Size</a> in <a href="smn_ug_a1000.html">JSON Message Format</a>.</p>
<div class="fignone" id="en-us_topic_0044170767__fig1130720419115"><span class="figcap"><b>Figure 1 </b>Generate JSON Message</span><br><span><img id="en-us_topic_0044170767__image8734587214" src="en-us_image_0095665453.png" title="Click to enlarge" class="imgResize"></span></div>
</li><li id="en-us_topic_0044170767__li12314987211144">Click <strong id="en-us_topic_0044170767__b815873211018">OK</strong>. <div class="fignone" id="en-us_topic_0044170767__fig3832434220122"><span class="figcap"><b>Figure 2 </b>JSON message</span><br><span><img id="en-us_topic_0044170767__image1571216566220" src="en-us_image_0095665471.png" title="Click to enlarge" class="imgResize"></span></div>
</li><li id="en-us_topic_0044170767__li3542952114596"><a name="en-us_topic_0044170767__li3542952114596"></a><a name="li3542952114596"></a>Modify the message content for each protocol so that different messages are sent to endpoints of different protocols. The system generates JSON-formatted content that includes a default message and message for each protocol. When SMN fails to match any specific message protocol, it sends the default message. For detailed JSON message format, see <a href="smn_ug_a1000.html">JSON Message Format</a>.</li><li id="en-us_topic_0044170767__li1708676313355">Click <strong id="en-us_topic_0044170767__en-us_topic_0043961403_b842352706174649">OK</strong>.<p id="en-us_topic_0044170767__en-us_topic_0043961403_p1116173015454">SMN delivers your message to all subscription endpoints. For details about the messages received by each endpoint, see <a href="smn_ug_a3000.html">Messages of Different Protocols</a>.</p>
</li></ol> </li></ol>
</div> </div>
</div> </div>

View File

@ -1,33 +1,34 @@
<a name="en-us_topic_0044170770"></a><a name="en-us_topic_0044170770"></a> <a name="en-us_topic_0044170770"></a><a name="en-us_topic_0044170770"></a>
<h1 class="topictitle1">Publishing a Template Message</h1> <h1 class="topictitle1">Publishing a Template Message</h1>
<div id="body1481255440125"><div class="section" id="en-us_topic_0044170770__section3152890014563"><h4 class="sectiontitle">Scenario</h4><p id="en-us_topic_0044170770__p13943764155329">Message templates contain fixed message content. If you need to send the same or similar messages multiple times, you can create a message template for quick message sending.</p> <div id="body1481255440125"><div class="section" id="en-us_topic_0044170770__section3152890014563"><h4 class="sectiontitle">Scenarios</h4><p id="en-us_topic_0044170770__p13943764155329">Message templates contain fixed message content. If you need to send the same or similar messages multiple times, you can create a message template for quick message sending.</p>
<p id="en-us_topic_0044170770__p1231617402230">You can create different templates for different protocols using the same template name so that each type of subscribers can receive customized messages. Templates contain variables as the placeholders to represent changeable content that you can replace with your own message content. Note that you must create a template in the default protocol, or the system will not allow you to publish messages using this template name.</p> <p id="en-us_topic_0044170770__p56675158174641">You can create different templates for different protocols using the same template name so that each type of subscribers can receive customized messages. Templates contain variables as the placeholders to represent changeable content that you can replace with your own message content. Note that you must create a template whose Protocol is <strong id="en-us_topic_0044170770__b844982314399">Default</strong>, or the system will not allow you to publish messages using this template name.</p>
<p id="en-us_topic_0044170770__p2312753192311">When creating messages using a template, you need to select a template name. The system will list all variables in the following protocol sequence: default, SMS, email, DMS, HTTP, and HTTPS. The same variables are listed only once even if they are used in multiple protocols, and the protocols they support are listed after each variable. You need to specify content for each variable in the message template, and SMN replaces them with the content you entered. If you do not enter any content for a variable, the system will treat it as empty when sending messages.</p> <p id="en-us_topic_0044170770__p44322021153537">When you are creating messages using a template, select a template name. The system will list all variables in the following protocol sequence: default, SMS, email, DMS, HTTP, and HTTPS. The same variables are listed only once even if they are used in multiple protocols, and the protocols they support are listed after each variable. Specify content for each variable in the message template, and SMN replaces them with the content you entered. If you do not enter any content for a variable, the system will treat it as empty when sending messages.</p>
<p id="en-us_topic_0044170770__p22419252411">SMN tries to match different types of subscribers to the template protocols. If there is no template for a specified protocol, it will use the default template to send messages to subscribers of that protocol.</p> <p id="en-us_topic_0044170770__p23594514113428">SMN tries to match different types of subscribers to the template protocols. If there is no template for a specified protocol, SMN will use the default template to send messages to subscribers of that protocol.</p>
<p id="en-us_topic_0044170770__p55703093155329">This section describes how to publish messages using a template. For more details about message templates, see <a href="en-us_topic_0043394889.html">5 Message Template Management</a>.</p> <p id="en-us_topic_0044170770__p55703093155329">This section describes how to publish messages using a template. For more details about message templates, see <a href="en-us_topic_0043394889.html">Message Template Management</a>.</p>
</div> </div>
<div class="section" id="en-us_topic_0044170770__section4110931134351"><h4 class="sectiontitle">Prerequisites</h4><p id="en-us_topic_0044170770__en-us_topic_0043961403_p23609712133556">Subscribers in the topic must have confirmed the subscription, or they will not be able to receive any messages.</p> <div class="section" id="en-us_topic_0044170770__section4110931134351"><h4 class="sectiontitle">Prerequisites</h4><p id="en-us_topic_0044170770__en-us_topic_0043961403_p23609712133556">Subscribers in the topic must have confirmed the subscription, or they will not be able to receive any messages.</p>
</div> </div>
<div class="section" id="en-us_topic_0044170770__section203332771700"><h4 class="sectiontitle">To Create a Message Template</h4><ol id="en-us_topic_0044170770__en-us_topic_0043394889_ol6268589194730"><li id="en-us_topic_0044170770__en-us_topic_0043394889_li1508056115226">Log in to the management console.</li><li id="en-us_topic_0044170770__li6027193112482">Click <span><img id="en-us_topic_0044170770__image09917166489" src="en-us_image_0000001416985637.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0044170770__en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_li56417302194730">In the <strong id="en-us_topic_0044170770__b162219401703">Application</strong> category, click <strong id="en-us_topic_0044170770__b1630863123315">Simple Message Notification</strong>.<p id="en-us_topic_0044170770__en-us_topic_0206394368_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p> <div class="section" id="en-us_topic_0044170770__section203332771700"><h4 class="sectiontitle">To Create a Message Template</h4><ol id="en-us_topic_0044170770__en-us_topic_0043394889_ol6268589194730"><li id="en-us_topic_0044170770__en-us_topic_0043394889_li1508056115226">Log in to the management console.</li><li id="en-us_topic_0044170770__li6027193112482">Click <span><img id="en-us_topic_0044170770__image09917166489" src="en-us_image_0259222479.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0044170770__smn_json_en-us_topic_0043961401_en-us_topic_0043394871_li56417302194730">Under <strong id="en-us_topic_0044170770__b162219401703">Application</strong>, select <strong id="en-us_topic_0044170770__b1630863123315">Simple Message Notification</strong>.<p id="en-us_topic_0044170770__smn_json_en-us_topic_0043961401_en-us_topic_0043394871_p1597355715256">The SMN console is displayed.</p>
</li><li id="en-us_topic_0044170770__li216121182810"><p id="en-us_topic_0044170770__p8671578281"><a name="en-us_topic_0044170770__li216121182810"></a><a name="li216121182810"></a>In the navigation pane, choose <strong id="en-us_topic_0044170770__b842352706144724">Message Templates</strong>.</p> </li><li id="en-us_topic_0044170770__li216121182810"><p id="en-us_topic_0044170770__p8671578281"><a name="en-us_topic_0044170770__li216121182810"></a><a name="li216121182810"></a>In the navigation pane, choose <strong id="en-us_topic_0044170770__b842352706144724">Message Templates</strong>.</p>
</li><li id="en-us_topic_0044170770__li2733989813513">Create a message template. For details, see <a href="en-us_topic_0043394889.html#en-us_topic_0043394889__section66624127194914">To Create a Message Template</a> in <a href="en-us_topic_0043394889.html">5 Message Template Management</a>.<div class="p" id="en-us_topic_0044170770__p3716373314335">For example, the template information is as follows:<ul id="en-us_topic_0044170770__ul5044007014355"><li id="en-us_topic_0044170770__li4443585114355"><strong id="en-us_topic_0044170770__b842352706163210">Template Name</strong>: <strong id="en-us_topic_0044170770__b842352706163239">tem_001</strong></li><li id="en-us_topic_0044170770__li143143414419"><strong id="en-us_topic_0044170770__b158535461116339">Protocol</strong>: <strong id="en-us_topic_0044170770__b842352706163315">Default</strong></li><li id="en-us_topic_0044170770__li42097216103353"><strong id="en-us_topic_0044170770__b842352706112333">Content</strong>: <strong id="en-us_topic_0044170770__b842352706112354">The Arts and Crafts Exposition will be held from {startdate} through {enddate}. We sincerely invite you to join us.</strong><div class="fignone" id="en-us_topic_0044170770__fig17426812318"><span class="figcap"><b>Figure 1 </b>Create Message Template</span><br><span><img id="en-us_topic_0044170770__image197421283237" src="en-us_image_0000001366385432.png" title="Click to enlarge" class="imgResize"></span></div> </li><li id="en-us_topic_0044170770__li2733989813513">In the upper right corner, click <strong id="en-us_topic_0044170770__b189841313111118">Create Message Template</strong>. For details, see <a href="en-us_topic_0043394889.html#en-us_topic_0043394889__section66624127194914">To Create a Message Template</a> in <a href="en-us_topic_0043394889.html">Message Template Management</a>.<div class="p" id="en-us_topic_0044170770__p3716373314335">For example, the template information is as follows:<ul id="en-us_topic_0044170770__ul5044007014355"><li id="en-us_topic_0044170770__li4443585114355"><strong id="en-us_topic_0044170770__b842352706163210">Template Name</strong>: <strong id="en-us_topic_0044170770__b842352706163239">tem_001</strong></li><li id="en-us_topic_0044170770__li143143414419"><strong id="en-us_topic_0044170770__b158535461116339">Protocol</strong>: <strong id="en-us_topic_0044170770__b842352706163315">Default</strong></li><li id="en-us_topic_0044170770__li42097216103353"><strong id="en-us_topic_0044170770__b842352706112333">Content</strong>: <strong id="en-us_topic_0044170770__b842352706112354">The Arts and Crafts Exposition will be held from {startdate} through {enddate}. We sincerely invite you to join us.</strong><div class="fignone" id="en-us_topic_0044170770__fig17426812318"><span class="figcap"><b>Figure 1 </b>Create Message Template</span><br><span><img id="en-us_topic_0044170770__image197421283237" src="en-us_image_0095665587.png" title="Click to enlarge" class="imgResize"></span></div>
</li></ul> </li></ul>
</div> </div>
</li></ol> </li></ol>
</div> </div>
<div class="section" id="en-us_topic_0044170770__section48379737125756"><h4 class="sectiontitle">To Publish a Template Message</h4><ol id="en-us_topic_0044170770__ol2431622213355"><li id="en-us_topic_0044170770__li17052523145723">Log in to the management console.</li><li id="en-us_topic_0044170770__li37453145125040">Click <span><img id="en-us_topic_0044170770__image387362154810" src="en-us_image_0000001416865365.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0044170770__li18901617389">In the <strong id="en-us_topic_0044170770__b16466173516596">Application</strong> category, click <strong id="en-us_topic_0044170770__b938616273313">Simple Message Notification</strong>.<p id="en-us_topic_0044170770__p169061163820">The SMN console is displayed.</p> <div class="section" id="en-us_topic_0044170770__section48379737125756"><h4 class="sectiontitle">To Publish a Template Message</h4><ol id="en-us_topic_0044170770__ol2431622213355"><li id="en-us_topic_0044170770__li17052523145723">Log in to the management console.</li><li id="en-us_topic_0044170770__li37453145125040">Click <span><img id="en-us_topic_0044170770__image387362154810" src="en-us_image_0259222478.png"></span> on the upper left to select the desired region and project.</li><li id="en-us_topic_0044170770__li18901617389">Under <strong id="en-us_topic_0044170770__b16466173516596">Application</strong>, select <strong id="en-us_topic_0044170770__b938616273313">Simple Message Notification</strong>.<p id="en-us_topic_0044170770__p169061163820">The SMN console is displayed.</p>
</li><li id="en-us_topic_0044170770__li46553485145723"><p id="en-us_topic_0044170770__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0044170770__li46553485145723"></a><a name="li46553485145723"></a>In the navigation pane, choose <strong id="en-us_topic_0044170770__b147171326154812">Topics</strong>.</p> </li><li id="en-us_topic_0044170770__li46553485145723"><p id="en-us_topic_0044170770__en-us_topic_0043961401_p55288773174430"><a name="en-us_topic_0044170770__li46553485145723"></a><a name="li46553485145723"></a>In the navigation pane, choose <strong id="en-us_topic_0044170770__b147171326154812">Topics</strong>.</p>
<p id="en-us_topic_0044170770__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0044170770__b7456128154816">Topics</strong> page is displayed.</p> <p id="en-us_topic_0044170770__en-us_topic_0043961401_en-us_topic_0043394871_p36644308154158">The <strong id="en-us_topic_0044170770__b7456128154816">Topics</strong> page is displayed.</p>
</li><li id="en-us_topic_0044170770__li1751941213355">In the topic list, locate the topic to which you need to publish a message and click <strong id="en-us_topic_0044170770__b84235270693032">Publish Message</strong> under <strong id="en-us_topic_0044170770__b84235270693057">Operation</strong>.</li><li id="en-us_topic_0044170770__li953094717518">Configure the required parameters. The topic name is provided by default and cannot be changed.<p id="en-us_topic_0044170770__p5868205293940"><a name="en-us_topic_0044170770__li953094717518"></a><a name="li953094717518"></a>Select <strong id="en-us_topic_0044170770__b842352706114337">Template</strong> for <strong id="en-us_topic_0044170770__b842352706114344">Message Format</strong>. Then, manually type the template content in the <strong id="en-us_topic_0044170770__b842352706124153">Message</strong> box or click <strong id="en-us_topic_0044170770__b84235270614121">Generate Template Message</strong> to generate it automatically. The template message content cannot exceed 256 KB.</p> </li><li id="en-us_topic_0044170770__li1751941213355">In the topic list, locate the topic that you need to publish a message to and click <strong id="en-us_topic_0044170770__b84235270693032">Publish Message</strong> under <strong id="en-us_topic_0044170770__b84235270693057">Operation</strong>.</li><li id="en-us_topic_0044170770__li953094717518">Configure the required parameters.<p id="en-us_topic_0044170770__p1726974818515"><a name="en-us_topic_0044170770__li953094717518"></a><a name="li953094717518"></a>The topic name is provided by default and cannot be changed.</p>
<ul id="en-us_topic_0044170770__ul667483329409"><li id="en-us_topic_0044170770__li638640849409">If you choose to manually type the template message, see <a href="smn_ug_a2000.html">A.2 Template Message Format</a> for detailed requirements.</li><li id="en-us_topic_0044170770__li56083019409">If you choose to automatically generate the template message, proceed with steps <a href="#en-us_topic_0044170770__li37303092212221">7</a> through <a href="#en-us_topic_0044170770__li3929025721230">10</a>.</li></ul> <p id="en-us_topic_0044170770__p5868205293940">Select <strong id="en-us_topic_0044170770__b842352706114337">Template</strong> for <strong id="en-us_topic_0044170770__b842352706114344">Message Format</strong>. Then, manually type the template content in the <strong id="en-us_topic_0044170770__b842352706124153">Message</strong> box or click <strong id="en-us_topic_0044170770__b84235270614121">Generate Template Message</strong> to generate it automatically. The template message content cannot exceed 256 KB.</p>
</li><li id="en-us_topic_0044170770__li37303092212221"><a name="en-us_topic_0044170770__li37303092212221"></a><a name="li37303092212221"></a>Click <strong id="en-us_topic_0044170770__b344177579151923">Generate Template Message</strong>.</li><li id="en-us_topic_0044170770__li3094064715927">Select a template name, for example, <strong id="en-us_topic_0044170770__b842352706143812">tem_001</strong>, and enter values for the variables.<div class="p" id="en-us_topic_0044170770__p8207557113018">The system replaces the variables with the message content you specified. The protocols configured in the template are displayed after each variable. In the example shown in the following figure, only the default protocol is specified in <strong id="en-us_topic_0044170770__b47511534193113">tem_001</strong>. Therefore, all confirmed subscribers in the topic will receive the message content in the default template.<div class="fignone" id="en-us_topic_0044170770__fig365979611560"><span class="figcap"><b>Figure 2 </b>Generate Template Message</span><br><span><img id="en-us_topic_0044170770__image13204326950" src="en-us_image_0000001366545400.png" title="Click to enlarge" class="imgResize"></span></div> <ul id="en-us_topic_0044170770__ul667483329409"><li id="en-us_topic_0044170770__li638640849409">If you choose to manually type the template message, see <a href="smn_ug_a2000.html">Template Message Format</a> for detailed requirements.</li><li id="en-us_topic_0044170770__li56083019409">If you choose to automatically generate the template message, proceed with <a href="#en-us_topic_0044170770__li37303092212221">7</a> through <a href="#en-us_topic_0044170770__li3929025721230">10</a>.</li></ul>
</li><li id="en-us_topic_0044170770__li37303092212221"><a name="en-us_topic_0044170770__li37303092212221"></a><a name="li37303092212221"></a>Click <strong id="en-us_topic_0044170770__b344177579151923">Generate Template Message</strong>.</li><li id="en-us_topic_0044170770__li3094064715927">Select a template name, for example, <strong id="en-us_topic_0044170770__b842352706143812">tem_001</strong>, and enter values for the variables.<div class="p" id="en-us_topic_0044170770__p5118298315929">The system replaces the variables with the message content you specified. The protocols configured in the template are displayed after each variable. Only the <strong id="en-us_topic_0044170770__b1975932121518">Default</strong> protocol is specified in <strong id="en-us_topic_0044170770__b842352706105850">tem_001</strong>, as shown in <a href="#en-us_topic_0044170770__fig365979611560">Figure 2</a>. Therefore, all confirmed subscribers in the topic will receive the message content in the default template. <div class="fignone" id="en-us_topic_0044170770__fig365979611560"><a name="en-us_topic_0044170770__fig365979611560"></a><a name="fig365979611560"></a><span class="figcap"><b>Figure 2 </b>Generate Template Message</span><br><span><img id="en-us_topic_0044170770__image13204326950" src="en-us_image_0095665660.png" title="Click to enlarge" class="imgResize"></span></div>
</div> </div>
</li><li id="en-us_topic_0044170770__li48158118144451">Click the <strong id="en-us_topic_0044170770__b4441453225">Preview</strong> tab to preview the message.<div class="p" id="en-us_topic_0044170770__p66586473144453">In this example, the message generated is "The Arts and Crafts Exposition will be held from February 10 through February 21. We sincerely invite you to join us."<div class="fignone" id="en-us_topic_0044170770__fig4102954615137"><span class="figcap"><b>Figure 3 </b>Previewing the template message</span><br><span><img id="en-us_topic_0044170770__image111090131969" src="en-us_image_0000001366065760.png" title="Click to enlarge" class="imgResize"></span></div> </li><li id="en-us_topic_0044170770__li48158118144451">Click the <strong id="en-us_topic_0044170770__b4441453225">Preview</strong> tab to preview the message.<div class="p" id="en-us_topic_0044170770__p66586473144453">In this example, the message generated is "The Arts and Crafts Exposition will be held from February 10 through February 21. We sincerely invite you to join us."<div class="fignone" id="en-us_topic_0044170770__fig4102954615137"><span class="figcap"><b>Figure 3 </b>Previewing the template message</span><br><span><img id="en-us_topic_0044170770__image111090131969" src="en-us_image_0095665678.png" title="Click to enlarge" class="imgResize"></span></div>
</div> </div>
</li><li id="en-us_topic_0044170770__li3929025721230"><a name="en-us_topic_0044170770__li3929025721230"></a><a name="li3929025721230"></a>Click <strong id="en-us_topic_0044170770__b842352706174649">OK</strong>.<div class="p" id="en-us_topic_0044170770__p2271285410623">The message that is generated contains the template name and variables.<div class="fignone" id="en-us_topic_0044170770__fig20843289192615"><span class="figcap"><b>Figure 4 </b>Template message example</span><br><span><img id="en-us_topic_0044170770__image1174311574" src="en-us_image_0000001366065752.png" title="Click to enlarge" class="imgResize"></span></div> </li><li id="en-us_topic_0044170770__li3929025721230"><a name="en-us_topic_0044170770__li3929025721230"></a><a name="li3929025721230"></a>Click <strong id="en-us_topic_0044170770__b842352706174649">OK</strong>.<div class="p" id="en-us_topic_0044170770__p2271285410623">The message that is generated contains the template name and variables.<div class="fignone" id="en-us_topic_0044170770__fig20843289192615"><span class="figcap"><b>Figure 4 </b>Template message example</span><br><span><img id="en-us_topic_0044170770__image1174311574" src="en-us_image_0095665722.png" title="Click to enlarge" class="imgResize"></span></div>
</div> </div>
</li><li id="en-us_topic_0044170770__li1708676313355">Click <strong id="en-us_topic_0044170770__b9791115014915">OK</strong>.<p id="en-us_topic_0044170770__en-us_topic_0043961403_p1116173015454">SMN delivers your message to all subscription endpoints. For details about messages for different protocols, see <a href="smn_ug_a3000.html">A.3 Messages of Different Protocols</a>.</p> </li><li id="en-us_topic_0044170770__li1708676313355">Click <strong id="en-us_topic_0044170770__b9791115014915">OK</strong>.<p id="en-us_topic_0044170770__en-us_topic_0043961403_p1116173015454">SMN delivers your message to all subscription endpoints. For details about messages for different protocols, see <a href="smn_ug_a3000.html">Messages of Different Protocols</a>.</p>
</li></ol> </li></ol>
</div> </div>
</div> </div>

View File

@ -2,7 +2,7 @@
<h1 class="topictitle1">What Are the Advantages of SMN?</h1> <h1 class="topictitle1">What Are the Advantages of SMN?</h1>
<div id="body1471349928821"><p id="index__p8060118">SMN has the following advantages:</p> <div id="body1471349928821"><p id="index__p8060118">SMN has the following advantages:</p>
<ul id="index__ul25526952201949"><li id="index__li21944357201949">It does not require many development and maintenance resources, reducing your message notification costs.</li><li id="index__li63281489201949">It is highly reliable and scalable.</li><li id="index__li32662489201949">It can be quickly deployed and is easy-to-use.</li></ul> <ul id="index__ul25526952201949"><li id="index__li21944357201949">It does not require many development and maintenance resources, reducing your message notification costs.</li><li id="index__li63281489201949">It is highly reliable and scalable.</li><li id="index__li32662489201949">It can be quickly deployed and is easy to use.</li></ul>
</div> </div>
<div> <div>
<div class="familylinks"> <div class="familylinks">

Some files were not shown because too many files have changed in this diff Show More