doc-exports/docs/smn/api-ref/smn_api_51008.html
Zaoxu, Li 152a7d9381 SMN API DOC
Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
2024-06-20 15:01:38 +00:00

94 lines
7.1 KiB
HTML

<a name="smn_api_51008"></a><a name="smn_api_51008"></a>
<h1 class="topictitle1">Deleting a Specified Topic Policy</h1>
<div id="body1474599764599"><div class="section" id="smn_api_51008__section64935954"><h4 class="sectiontitle">Description</h4><ul id="smn_api_51008__ul33304380203733"><li id="smn_api_51008__li51147505203733">API name<p id="smn_api_51008__p38624841203741"><a name="smn_api_51008__li51147505203733"></a><a name="li51147505203733"></a>DeleteTopicAttributeByName</p>
</li></ul>
<ul id="smn_api_51008__ul20998054203745"><li id="smn_api_51008__li46884910203750">Function<p id="smn_api_51008__p4186593495020"><a name="smn_api_51008__li46884910203750"></a><a name="li46884910203750"></a>Delete a specified topic policy.</p>
</li></ul>
</div>
<div class="section" id="smn_api_51008__section47552675"><h4 class="sectiontitle">URI</h4><ul id="smn_api_51008__ul30639779"><li id="smn_api_51008__li7322556">URI format<p id="smn_api_51008__p65903005"><a name="smn_api_51008__li7322556"></a><a name="li7322556"></a>DELETE /v2/{project_id}/notifications/topics/{topic_urn}/attributes/{name}</p>
</li></ul>
<ul id="smn_api_51008__ul56256135"><li id="smn_api_51008__li36543171">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_51008__table60453091" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_51008__row31471768"><th align="left" class="cellrowborder" valign="top" width="21.46%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="smn_api_51008__p66185246"><strong id="smn_api_51008__b842352706191030">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="22.7%" id="mcps1.3.2.3.1.1.1.5.1.2"><p id="smn_api_51008__p59404709"><strong id="smn_api_51008__b593421527191713">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.310000000000002%" id="mcps1.3.2.3.1.1.1.5.1.3"><p id="smn_api_51008__p47052116"><strong id="smn_api_51008__b84235270619112">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="31.53%" id="mcps1.3.2.3.1.1.1.5.1.4"><p id="smn_api_51008__p53125076"><strong id="smn_api_51008__b84235270619115">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="smn_api_51008__row57297510"><td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_51008__p10586695">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="22.7%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_51008__p52215961">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="24.310000000000002%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_51008__p1634435">String</p>
</td>
<td class="cellrowborder" valign="top" width="31.53%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_51008__p35765041155042">Project ID</p>
<p id="smn_api_51008__p65280430">See <a href="smn_api_66000.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="smn_api_51008__row9249362"><td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_51008__p11000853">topic_urn</p>
</td>
<td class="cellrowborder" valign="top" width="22.7%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_51008__p18653909">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="24.310000000000002%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_51008__p34571641">String</p>
</td>
<td class="cellrowborder" valign="top" width="31.53%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_51008__p48839530">Unique resource ID of a topic. You can obtain it by referring to <a href="en-us_topic_0036016755.html">Querying Topics</a>.</p>
</td>
</tr>
<tr id="smn_api_51008__row5965394515386"><td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_51008__p14783623153811">name</p>
</td>
<td class="cellrowborder" valign="top" width="22.7%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_51008__p56622849153811">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="24.310000000000002%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_51008__p23048084153811">String</p>
</td>
<td class="cellrowborder" valign="top" width="31.53%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_51008__p54955495153811">Attribute name</p>
<p id="smn_api_51008__p2749131513324">Only specified attribute names are supported. For details, see <a href="smn_api_a1000.html">Topic Attribute List</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="smn_api_51008__section25320898"><h4 class="sectiontitle">Request</h4><div class="p" id="smn_api_51008__p4773384111587">Example request<pre class="screen" id="smn_api_51008__screen4488935310472">DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/{topic_urn}/attributes/access_policy</pre>
</div>
</div>
<div class="section" id="smn_api_51008__section26561495"><h4 class="sectiontitle">Response</h4><ul id="smn_api_51008__ul42729680"><li id="smn_api_51008__li49022807">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_51008__table38552084" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_51008__row10058158"><th align="left" class="cellrowborder" valign="top" width="32.12678732126787%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="smn_api_51008__p9404449"><strong id="smn_api_51008__b123128339">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="32.12678732126787%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="smn_api_51008__p23562876"><strong id="smn_api_51008__b744418714">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="35.746425357464254%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="smn_api_51008__p29544808"><strong id="smn_api_51008__b1122928753">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="smn_api_51008__row33089041"><td class="cellrowborder" valign="top" width="32.12678732126787%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="smn_api_51008__p62966687">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="32.12678732126787%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="smn_api_51008__p27997">String</p>
</td>
<td class="cellrowborder" valign="top" width="35.746425357464254%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="smn_api_51008__p2267763">Request ID, which is unique</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="smn_api_51008__li32325424">Example response<pre class="screen" id="smn_api_51008__screen4172555319825">{
"request_id": "6837531fd3f54550927b930180a706bf"
}</pre>
</li></ul>
</div>
<div class="section" id="smn_api_51008__section37726867"><h4 class="sectiontitle">Returned Value</h4><p id="smn_api_51008__p64140254">See <a href="smn_api_63002.html">Returned Value</a>.</p>
</div>
<div class="section" id="smn_api_51008__section73211020122511"><h4 class="sectiontitle">Error Codes</h4><p id="smn_api_51008__p9759142919265">See <a href="smn_api_64000.html">Error Codes</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>