forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
84 lines
6.3 KiB
HTML
84 lines
6.3 KiB
HTML
<a name="smn_api_51003"></a><a name="smn_api_51003"></a>
|
|
|
|
<h1 class="topictitle1">Deleting a Topic</h1>
|
|
<div id="body49755431"><div class="section" id="smn_api_51003__en-us_topic_0025373766"><h4 class="sectiontitle">Description</h4><ul id="smn_api_51003__ul33304380203733"><li id="smn_api_51003__li51147505203733">API name<p id="smn_api_51003__p38624841203741">DeleteTopic</p>
|
|
</li></ul>
|
|
<ul id="smn_api_51003__ul20998054203745"><li id="smn_api_51003__li46884910203750">Function<p id="smn_api_51003__p6137736194410">Delete a topic and its subscribers. If a topic is deleted, a pending message will fail to deliver to the topic subscribers.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="smn_api_51003__section6556909"><h4 class="sectiontitle">URI</h4><ul id="smn_api_51003__ul27869743"><li id="smn_api_51003__li49501095">URI format<p id="smn_api_51003__p42856673">DELETE /v2/{project_id}/notifications/topics/{topic_urn}</p>
|
|
</li></ul>
|
|
<ul id="smn_api_51003__ul50165743"><li id="smn_api_51003__li48838504">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_51003__table36893359" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_51003__row46277382"><th align="left" class="cellrowborder" valign="top" width="21.862186218621858%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="smn_api_51003__p57480441"><strong id="smn_api_51003__b842352706191030">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.122212221222124%" id="mcps1.3.2.3.1.1.1.5.1.2"><p id="smn_api_51003__p25404116"><strong id="smn_api_51003__b593421527191713">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.122212221222124%" id="mcps1.3.2.3.1.1.1.5.1.3"><p id="smn_api_51003__p44467520"><strong id="smn_api_51003__b84235270619112">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.89338933893389%" id="mcps1.3.2.3.1.1.1.5.1.4"><p id="smn_api_51003__p45099364"><strong id="smn_api_51003__b84235270619115">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="smn_api_51003__row13951479"><td class="cellrowborder" valign="top" width="21.862186218621858%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_51003__p56327989">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.122212221222124%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_51003__p66273227">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.122212221222124%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_51003__p66531170">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.89338933893389%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_51003__p12084664154931">Project ID</p>
|
|
<p id="smn_api_51003__p20315681">See <a href="smn_api_66000.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="smn_api_51003__row46181951"><td class="cellrowborder" valign="top" width="21.862186218621858%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_51003__p49750539">topic_urn</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.122212221222124%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_51003__p3261819">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.122212221222124%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_51003__p62880759">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.89338933893389%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_51003__p60176744">Unique resource ID of a topic. You can obtain it according to <a href="smn_api_51004.html">Querying Topics</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="smn_api_51003__section59012183"><h4 class="sectiontitle">Request</h4><div class="p" id="smn_api_51003__p1264481211561">Request example<pre class="screen" id="smn_api_51003__screen65205470104442">DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2</pre>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="smn_api_51003__section61347601"><h4 class="sectiontitle">Response</h4><ul id="smn_api_51003__ul123050"><li id="smn_api_51003__li1107452">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_51003__table9967070" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_51003__row65063572"><th align="left" class="cellrowborder" valign="top" width="31.443144314431443%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="smn_api_51003__p35658012"><strong id="smn_api_51003__b1954561229">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.443144314431443%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="smn_api_51003__p2617844"><strong id="smn_api_51003__b996406409">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="37.11371137113711%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="smn_api_51003__p10718788"><strong id="smn_api_51003__b1242165385">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="smn_api_51003__row62991470"><td class="cellrowborder" valign="top" width="31.443144314431443%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="smn_api_51003__p2035480">request_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.443144314431443%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="smn_api_51003__p30656219">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.11371137113711%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="smn_api_51003__p125790">Request ID, which is unique</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="smn_api_51003__li24592149">Response example<pre class="screen" id="smn_api_51003__screen1458107919144">{
|
|
"request_id": " 5fcba32bd2814ea39431829c22bda94b",
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="smn_api_51003__section15257500"><h4 class="sectiontitle">Returned Value</h4><p id="smn_api_51003__p40040492">See section <a href="smn_api_63002.html">Returned Value</a>.</p>
|
|
</div>
|
|
<div class="section" id="smn_api_51003__section73211020122511"><h4 class="sectiontitle">Error Code</h4><p id="smn_api_51003__p9759142919265">See section <a href="smn_api_64000.html">Error Code</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="smn_api_51000.html">Topic Operations</a></div>
|
|
</div>
|
|
</div>
|
|
|