forked from docs/doc-exports
Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
153 lines
12 KiB
HTML
153 lines
12 KiB
HTML
<a name="dns_api_63004"></a><a name="dns_api_63004"></a>
|
|
|
|
<h1 class="topictitle1">Disassociating a VPC from a Private Zone</h1>
|
|
<div id="body1492855142505"><div class="section" id="dns_api_63004__section3569153217343"><h4 class="sectiontitle">Function</h4><p id="dns_api_63004__p1294193116426">Disassociate a VPC from a private zone.</p>
|
|
<p id="dns_api_63004__p2420228517348">When a private zone is associated with only one VPC, you cannot disassociate it.</p>
|
|
</div>
|
|
<div class="section" id="dns_api_63004__section6163262617350"><h4 class="sectiontitle">URI</h4><p id="dns_api_63004__p5527305017659">POST /v2/zones/{zone_id}/disassociaterouter</p>
|
|
<div class="p" id="dns_api_63004__p41349371799">For details, see <a href="#dns_api_63004__table14024165">Table 1</a>.
|
|
<div class="tablenoborder"><a name="dns_api_63004__table14024165"></a><a name="table14024165"></a><table cellpadding="4" cellspacing="0" summary="" id="dns_api_63004__table14024165" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter in the URI</caption><thead align="left"><tr id="dns_api_63004__row26592044"><th align="left" class="cellrowborder" valign="top" width="19.971997199719972%" id="mcps1.3.2.3.2.2.5.1.1"><p id="dns_api_63004__p6471942"><strong id="dns_api_63004__b162774213314533_1">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.971997199719972%" id="mcps1.3.2.3.2.2.5.1.2"><p id="dns_api_63004__p54465313"><strong id="dns_api_63004__b593421527191713_1">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.331433143314332%" id="mcps1.3.2.3.2.2.5.1.3"><p id="dns_api_63004__p49614245"><strong id="dns_api_63004__b84235270619112_1">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.72457245724572%" id="mcps1.3.2.3.2.2.5.1.4"><p id="dns_api_63004__p59330872"><strong id="dns_api_63004__b842352706112423_1">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dns_api_63004__row41071365"><td class="cellrowborder" valign="top" width="19.971997199719972%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_63004__p38446258">zone_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.971997199719972%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_63004__p27139175">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.331433143314332%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_63004__p50789581">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.72457245724572%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_63004__p20315403">Zone ID</p>
|
|
<p id="dns_api_63004__p1669018482183">You can obtain the value by calling the API in <a href="dns_api_63006.html">Querying Private Zones</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dns_api_63004__section4207148117353"><h4 class="sectiontitle">Request</h4><ul id="dns_api_63004__ul5122522817716"><li id="dns_api_63004__li5604781117716">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dns_api_63004__table72706611815" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter in the request</caption><thead align="left"><tr id="dns_api_63004__row255897031815"><th align="left" class="cellrowborder" valign="top" width="18.85%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="dns_api_63004__p595000771815"><strong id="dns_api_63004__b162774213314533_3">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.16%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="dns_api_63004__p547769391815"><strong id="dns_api_63004__b593421527191713_3">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.219999999999999%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="dns_api_63004__p77471141815"><strong id="dns_api_63004__b84235270619112_3">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.77%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="dns_api_63004__p235365301815"><strong id="dns_api_63004__b842352706112423_3">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dns_api_63004__row274107621815"><td class="cellrowborder" valign="top" width="18.85%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="dns_api_63004__p56792261815">router</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.16%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="dns_api_63004__p573641711815">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.219999999999999%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="dns_api_63004__p159862761815">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.77%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="dns_api_63004__p48582827111646">Router information (VPC associated with the zone)</p>
|
|
<p id="dns_api_63004__p198200141815">For details, see <a href="#dns_api_63004__table4448008117179">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="dns_api_63004__table4448008117179"></a><a name="table4448008117179"></a><table cellpadding="4" cellspacing="0" summary="" id="dns_api_63004__table4448008117179" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Description of the <strong id="dns_api_63004__b439192942118">router</strong> field</caption><thead align="left"><tr id="dns_api_63004__row6132935617179"><th align="left" class="cellrowborder" valign="top" width="16.27%" id="mcps1.3.3.2.1.2.2.5.1.1"><p id="dns_api_63004__p36588677171719"><strong id="dns_api_63004__b930343032110">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.95%" id="mcps1.3.3.2.1.2.2.5.1.2"><p id="dns_api_63004__p06011644121012"><strong id="dns_api_63004__b1645864325">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.380000000000003%" id="mcps1.3.3.2.1.2.2.5.1.3"><p id="dns_api_63004__p9906869171719"><strong id="dns_api_63004__b27788321">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.4%" id="mcps1.3.3.2.1.2.2.5.1.4"><p id="dns_api_63004__p64258954171719"><strong id="dns_api_63004__b842352706112423_7">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dns_api_63004__row266872817179"><td class="cellrowborder" valign="top" width="16.27%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="dns_api_63004__p25118582171719">router_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.95%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="dns_api_63004__p11602144151017">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.380000000000003%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="dns_api_63004__p50755907171719">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.4%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="dns_api_63004__p17587794171719">ID of the associated VPC</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dns_api_63004__row6657832817179"><td class="cellrowborder" valign="top" width="16.27%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="dns_api_63004__p3709384171719">router_region</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.95%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="dns_api_63004__p8602134413102">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.380000000000003%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="dns_api_63004__p43861924171719">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.4%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="dns_api_63004__p63154928171719">Region of the VPC</p>
|
|
<p id="dns_api_63004__p38645142171939">If it is left blank, the region of the project in the token takes effect by default.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="dns_api_63004__li3969179817718">Example request<div class="p" id="dns_api_63004__p86236429274"><a name="dns_api_63004__li3969179817718"></a><a name="li3969179817718"></a>Disassociate a VPC from the zone whose ID is ff8080825b8fc86c015b94bc6f8712c3:<pre class="codeblock" id="dns_api_63004__codeblock83531440162717">POST https://{DNS_Endpoint}/v2/zones/ff8080825b8fc86c015b94bc6f8712c3/disassociaterouter</pre>
|
|
<pre class="screen" id="dns_api_63004__screen6353194042710">{
|
|
"router": {
|
|
"router_id": "f0791650-db8c-4a20-8a44-a06c6e24b15b",
|
|
"router_region": "xx"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dns_api_63004__section2142173017358"><h4 class="sectiontitle">Response</h4><ul id="dns_api_63004__ul24043226171010"><li id="dns_api_63004__li61921720171010">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dns_api_63004__table3895302218844" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Parameters in the response</caption><thead align="left"><tr id="dns_api_63004__row4896688518844"><th align="left" class="cellrowborder" valign="top" width="21.63%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="dns_api_63004__p689472918844"><strong id="dns_api_63004__b162774213314533_7">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.02%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="dns_api_63004__p2160217018844"><strong id="dns_api_63004__b84235270619112_7">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.35%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="dns_api_63004__p494531118844"><strong id="dns_api_63004__b1294284656">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dns_api_63004__row6502588818844"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="dns_api_63004__p3260560718844">router_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.02%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="dns_api_63004__p2380847318844">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="dns_api_63004__p4943817618844">Router ID (VPC ID)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dns_api_63004__row4229040718844"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="dns_api_63004__p297095218844">router_region</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.02%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="dns_api_63004__p3932056118844">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="dns_api_63004__p3084890718844">Region of the router (VPC)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dns_api_63004__row920471418844"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="dns_api_63004__p738436818844">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.02%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="dns_api_63004__p6126290618844">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="dns_api_63004__p940787516628">Resource status</p>
|
|
<p id="dns_api_63004__p998065791017">For details, see <a href="dns_api_80005.html#dns_api_80005__section33673592114748">Resource Status</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="dns_api_63004__li7863653171013">Example response<pre class="screen" id="dns_api_63004__screen6413204020223">{
|
|
"status": "PENDING_DELETE",
|
|
"router_id": "f0791650-db8c-4a20-8a44-a06c6e24b15b",
|
|
"router_region": "xx"
|
|
}
|
|
</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dns_api_63004__section9249181042119"><h4 class="sectiontitle">Returned Value</h4><p id="dns_api_63004__dns_api_61001_p711102924515">If a 2xx status code is returned, for example, 200, 202, or 204, the request is successful.</p>
|
|
<p id="dns_api_63004__dns_api_61001_p18506102624518">For details, see <a href="dns_api_80002.html">Status Code</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_63000.html">Private Zone Management</a></div>
|
|
</div>
|
|
</div>
|
|
|