forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
141 lines
10 KiB
HTML
141 lines
10 KiB
HTML
<a name="dli_02_0192"></a><a name="dli_02_0192"></a>
|
|
|
|
<h1 class="topictitle1">Unbinding a Queue</h1>
|
|
<div id="body1565767253379"><div class="section" id="dli_02_0192__section13287428103611"><h4 class="sectiontitle">Function</h4><p id="dli_02_0192__p1798441817329">This API is used to unbind a queue from an enhanced datasource connection.</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0192__section52924285361"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0192__ul1547562815364"><li id="dli_02_0192__li1847520284363">URI format<p id="dli_02_0192__p8475152813362"><a name="dli_02_0192__li1847520284363"></a><a name="li1847520284363"></a>POST /v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/disassociate-queue</p>
|
|
</li><li id="dli_02_0192__li1047502816366">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0192__table18299172853614" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="dli_02_0192__row947592853614"><th align="left" class="cellrowborder" valign="top" width="17.89178917891789%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0192__p1347513282368">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.77137713771377%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0192__p74757287366">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.85128512851285%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="dli_02_0192__p1362517419420">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.48554855485548%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0192__p1475182833610">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0192__row16475152833619"><td class="cellrowborder" valign="top" width="17.89178917891789%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0192__p1547552803615">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.77137713771377%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0192__p19475828123613">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.85128512851285%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0192__p18626941541">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.48554855485548%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0192__p1310472724012">Project ID, which is used for resource isolation. For details about how to obtain its value, see <a href="dli_02_0183.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0192__row1758412516020"><td class="cellrowborder" valign="top" width="17.89178917891789%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0192__p84192317188">connection_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.77137713771377%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0192__p1941914313180">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.85128512851285%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0192__p7626104642">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.48554855485548%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0192__p94197315183">Connection ID. Identifies the UUID of a datasource connection.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dli_02_0192__section1831452873613"><h4 class="sectiontitle">Request</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0192__table965315377819" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="dli_02_0192__row3654123717814"><th align="left" class="cellrowborder" valign="top" width="17.89178917891789%" id="mcps1.3.3.2.2.5.1.1"><p id="dli_02_0192__p1265453712813">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.77137713771377%" id="mcps1.3.3.2.2.5.1.2"><p id="dli_02_0192__p9654237585">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.49124912491249%" id="mcps1.3.3.2.2.5.1.3"><p id="dli_02_0192__p19937461398">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.84558455845584%" id="mcps1.3.3.2.2.5.1.4"><p id="dli_02_0192__p265416379818">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0192__row7654203716810"><td class="cellrowborder" valign="top" width="17.89178917891789%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0192__p15107358183">queues</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.77137713771377%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0192__p8107558589">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.49124912491249%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0192__p14937126595">Array of String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.84558455845584%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0192__p181078586810">List of queue names that are available for datasource connections.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0192__section134515287360"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0192__table8348112818368" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0192__row11478132863610"><th align="left" class="cellrowborder" valign="top" width="15.628437156284372%" id="mcps1.3.4.2.2.4.1.1"><p id="dli_02_0192__p04782028173616">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.5981401859814%" id="mcps1.3.4.2.2.4.1.2"><p id="dli_02_0192__p34781128193612">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="65.77342265773424%" id="mcps1.3.4.2.2.4.1.3"><p id="dli_02_0192__p1347917286364">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0192__row18479182813362"><td class="cellrowborder" valign="top" width="15.628437156284372%" headers="mcps1.3.4.2.2.4.1.1 "><p id="dli_02_0192__p392161273513">is_success</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.5981401859814%" headers="mcps1.3.4.2.2.4.1.2 "><p id="dli_02_0192__p18921161219357">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.77342265773424%" headers="mcps1.3.4.2.2.4.1.3 "><p id="dli_02_0192__p12921712163514">Indicates whether the request is successfully executed. Value <strong id="dli_02_0192__b10829185120225">true</strong> indicates that the request is successfully executed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0192__row14946145019340"><td class="cellrowborder" valign="top" width="15.628437156284372%" headers="mcps1.3.4.2.2.4.1.1 "><p id="dli_02_0192__p692141213515">message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.5981401859814%" headers="mcps1.3.4.2.2.4.1.2 "><p id="dli_02_0192__p6921012133518">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.77342265773424%" headers="mcps1.3.4.2.2.4.1.3 "><p id="dli_02_0192__p1921161214351">System prompt. If execution succeeds, the message may be left blank.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0192__section1217010661112"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0192__p1163612915542">Unbind queues <strong id="dli_02_0192__b1232320174163">q1</strong> and <strong id="dli_02_0192__b145445194164">q2</strong> from enhanced datasource connections.</p>
|
|
<pre class="screen" id="dli_02_0192__screen165944614370">{
|
|
"queues": [
|
|
"q1",
|
|
"q2"
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="dli_02_0192__section910624615450"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0192__screen587751511378">{
|
|
"is_success": true,
|
|
"message": "Disassociated peer connection for queues:{q1,q2}."
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="dli_02_0192__sf39cfd445ad24e9e82754fcb0027179d"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0192__a04144ca3a08e4576b386c6a98f43a2ae"><a href="#dli_02_0192__tb12870f1c5f24b27abd55ca24264af36">Table 4</a> describes the status code.</p>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0192__tb12870f1c5f24b27abd55ca24264af36"></a><a name="tb12870f1c5f24b27abd55ca24264af36"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0192__tb12870f1c5f24b27abd55ca24264af36" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Status codes</caption><thead align="left"><tr id="dli_02_0192__r8d54231f95b14c01a5e55e95f3b2e838"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0192__ab49d21f312644072a331f43e92baf853">Status Codes</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.7.3.2.3.1.2"><p id="dli_02_0192__aea1d3bd107bb4c499da79a88832d256c">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0192__r211ad4eb571d4d938e5579998723174e"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0192__a3153e07b3a9749adba92599fe6628fbf">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0192__p104431642124811">Resource unbound succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0192__row44937531727"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0192__p184941532219">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0192__p2049413539219">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0192__row65331212142411"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0192__p5537171216249">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0192__p953813124249">Internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0192__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0192__p420584425712">If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see <a href="dli_02_0056.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_02_0186.html">APIs Related to Enhanced Datasource Connections</a></div>
|
|
</div>
|
|
</div>
|
|
|