Files
doc-exports/docs/css/api-ref/UpdateUnbindPublic.html
zhengxiu 8f6b8d3664 css api 25.6.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: zhengxiu <zhengxiu@huawei.com>
Co-committed-by: zhengxiu <zhengxiu@huawei.com>
2025-11-25 11:21:12 +00:00

222 lines
16 KiB
HTML

<a name="UpdateUnbindPublic"></a><a name="UpdateUnbindPublic"></a>
<h1 class="topictitle1">Disabling Public Network Access</h1>
<div id="body1708331107508"><div class="section" id="UpdateUnbindPublic__section37341721102816"><h4 class="sectiontitle">Function</h4><p id="UpdateUnbindPublic__p97341821132816">This API is used to disable public network access. </p>
<div class="note" id="UpdateUnbindPublic__note127343217287"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="UpdateUnbindPublic__p13734172115286">After public network access is disabled, users can no longer access the cluster via a public IP address. If you disable public network access and then re-enable it, the public IP address of the cluster may change. Exercise caution.</p>
</div></div>
</div>
<div class="section" id="UpdateUnbindPublic__atuogenerate_1"><h4 class="sectiontitle">Calling Method</h4><p id="UpdateUnbindPublic__p773562111283">For details, see <a href="css_03_0077.html">Calling APIs</a>.</p>
</div>
<div class="section" id="UpdateUnbindPublic__atuogenerate_2"><h4 class="sectiontitle">URI</h4><p id="UpdateUnbindPublic__p37353217283">PUT /v1.0/{project_id}/clusters/{cluster_id}/public/close</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateUnbindPublic__table57351821142819" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="UpdateUnbindPublic__row47351321202818"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UpdateUnbindPublic__p9735721142818">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UpdateUnbindPublic__p16735221152817">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UpdateUnbindPublic__p673562152817">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UpdateUnbindPublic__p0736621142819">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateUnbindPublic__row13735172162811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateUnbindPublic__p13736152113284">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateUnbindPublic__p773642113288">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateUnbindPublic__p57363210284">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateUnbindPublic__p16736721172813"><strong id="UpdateUnbindPublic__b117361219288">Definition</strong>:</p>
<p id="UpdateUnbindPublic__p107364219282">Project ID. For details about how to obtain the project ID and name, see <a href="css_03_0071.html">Obtaining the Project ID and Name</a>.</p>
<p id="UpdateUnbindPublic__p147367216284"><strong id="UpdateUnbindPublic__b77364214285">Constraints</strong>:</p>
<p id="UpdateUnbindPublic__p37361221132819">N/A</p>
<p id="UpdateUnbindPublic__p18736132110286"><strong id="UpdateUnbindPublic__b1873672115281">Value range</strong>:</p>
<p id="UpdateUnbindPublic__p27361521122815">Project ID of the account.</p>
<p id="UpdateUnbindPublic__p9736521172815"><strong id="UpdateUnbindPublic__b97361821172818">Default value</strong>:</p>
<p id="UpdateUnbindPublic__p87360216281">N/A</p>
</td>
</tr>
<tr id="UpdateUnbindPublic__row07351921152811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateUnbindPublic__p1673616213281">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateUnbindPublic__p2736172112282">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateUnbindPublic__p1673617210284">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateUnbindPublic__p1773642111287"><strong id="UpdateUnbindPublic__b19736821132814">Definition</strong>:</p>
<p id="UpdateUnbindPublic__p1673642172819">ID of the cluster whose public network access you want to disable. For details about how to obtain the cluster ID, see <a href="css_03_0101.html">Obtaining the Cluster ID</a>.</p>
<p id="UpdateUnbindPublic__p11737921172818"><strong id="UpdateUnbindPublic__b4737172132810">Constraints</strong>:</p>
<p id="UpdateUnbindPublic__p187371521172814">N/A</p>
<p id="UpdateUnbindPublic__p2737112132815"><strong id="UpdateUnbindPublic__b137371216281">Value range</strong>:</p>
<p id="UpdateUnbindPublic__p073792110281">Cluster ID.</p>
<p id="UpdateUnbindPublic__p1673732152814"><strong id="UpdateUnbindPublic__b18737421102812">Default value</strong>:</p>
<p id="UpdateUnbindPublic__p19737521152810">N/A</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateUnbindPublic__section16737182152811"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateUnbindPublic__request_unBindPublicReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameters</caption><thead align="left"><tr id="UpdateUnbindPublic__row17737152112811"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="UpdateUnbindPublic__p073711219289">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="UpdateUnbindPublic__p167371921182810">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="UpdateUnbindPublic__p47374213284">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="UpdateUnbindPublic__p1773822119289">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateUnbindPublic__row1973711218287"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="UpdateUnbindPublic__p20738321132819">eip</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="UpdateUnbindPublic__p47381921162815">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="UpdateUnbindPublic__p873822116283"><a href="#UpdateUnbindPublic__request_UnBindPublicReqEipReq">UnBindPublicReqEipReq</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="UpdateUnbindPublic__p157381921102814">EIP information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="UpdateUnbindPublic__request_UnBindPublicReqEipReq"></a><a name="request_UnBindPublicReqEipReq"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateUnbindPublic__request_UnBindPublicReqEipReq" frame="border" border="1" rules="all"><caption><b>Table 3 </b>UnBindPublicReqEipReq</caption><thead align="left"><tr id="UpdateUnbindPublic__row6738202122816"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="UpdateUnbindPublic__p5738122111283">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="UpdateUnbindPublic__p1673822112285">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="UpdateUnbindPublic__p173802112282">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="UpdateUnbindPublic__p167391921132818">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateUnbindPublic__row1973882110283"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="UpdateUnbindPublic__p10739221132811">bandWidth</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="UpdateUnbindPublic__p7739102192819">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="UpdateUnbindPublic__p15739202172811"><a href="#UpdateUnbindPublic__request_BindPublicReqEipBandWidth">BindPublicReqEipBandWidth</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="UpdateUnbindPublic__p3739192120285"><strong id="UpdateUnbindPublic__b9739142119286">Definition</strong>:</p>
<p id="UpdateUnbindPublic__p17739132182818">Public network bandwidth.</p>
<p id="UpdateUnbindPublic__p10739121192819"><strong id="UpdateUnbindPublic__b1073932172818">Constraints</strong>:</p>
<p id="UpdateUnbindPublic__p9739182182811">N/A</p>
<p id="UpdateUnbindPublic__p8739192114282"><strong id="UpdateUnbindPublic__b773912211281">Value range</strong>:</p>
<p id="UpdateUnbindPublic__p1573913218282">N/A</p>
<p id="UpdateUnbindPublic__p8739321192810"><strong id="UpdateUnbindPublic__b573914210289">Default value</strong>:</p>
<p id="UpdateUnbindPublic__p177391621102816">N/A</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="UpdateUnbindPublic__request_BindPublicReqEipBandWidth"></a><a name="request_BindPublicReqEipBandWidth"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateUnbindPublic__request_BindPublicReqEipBandWidth" frame="border" border="1" rules="all"><caption><b>Table 4 </b>BindPublicReqEipBandWidth</caption><thead align="left"><tr id="UpdateUnbindPublic__row117391121202814"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="UpdateUnbindPublic__p11740192192814">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.2"><p id="UpdateUnbindPublic__p16740122172817">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.3"><p id="UpdateUnbindPublic__p7740921182811">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.4.2.5.1.4"><p id="UpdateUnbindPublic__p11740421192813">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateUnbindPublic__row9739102132816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="UpdateUnbindPublic__p4740821152817">size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="UpdateUnbindPublic__p17740102172817">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="UpdateUnbindPublic__p6740192152820">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="UpdateUnbindPublic__p074032112281"><strong id="UpdateUnbindPublic__b167401321152815">Definition</strong>:</p>
<p id="UpdateUnbindPublic__p8740132192810">Public network bandwidth, in Mbit/s.</p>
<p id="UpdateUnbindPublic__p157401421102817"><strong id="UpdateUnbindPublic__b1874022192813">Constraints</strong>:</p>
<p id="UpdateUnbindPublic__p074017211281">N/A</p>
<p id="UpdateUnbindPublic__p1574012122819"><strong id="UpdateUnbindPublic__b18740221102811">Value range</strong>:</p>
<p id="UpdateUnbindPublic__p177408212280">N/A</p>
<p id="UpdateUnbindPublic__p97401221102812"><strong id="UpdateUnbindPublic__b774152115289">Default value</strong>:</p>
<p id="UpdateUnbindPublic__p117411421202817">N/A</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateUnbindPublic__section074114218289"><h4 class="sectiontitle">Response Parameters</h4><p id="UpdateUnbindPublic__p1274172113282"><strong id="UpdateUnbindPublic__b27411521182820">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateUnbindPublic__response_UnbindPublicResponseBody" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="UpdateUnbindPublic__row17418212288"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.1"><p id="UpdateUnbindPublic__p117411121102816">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.2"><p id="UpdateUnbindPublic__p12741521182813">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.3.2.4.1.3"><p id="UpdateUnbindPublic__p57411216286">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateUnbindPublic__row774182118288"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="UpdateUnbindPublic__p574112214285">action</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="UpdateUnbindPublic__p1741921202817">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="UpdateUnbindPublic__p574172172816">Operations. The fixed value is <strong id="UpdateUnbindPublic__b1174272120287">unbindZone</strong>, indicating that the unbinding is successful.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateUnbindPublic__section3742172118286"><h4 class="sectiontitle">Example Requests</h4><p id="UpdateUnbindPublic__p197422021132813">Disable public network access.</p>
<pre class="screen" id="UpdateUnbindPublic__screen674262119284">PUT https://{Endpoint}/v1.0/{project_id}/clusters/4f3deec3-efa8-4598-bf91-560aad1377a3/public/close
{
"eip" : {
"bandWidth" : {
"size" : 5
}
}
}</pre>
</div>
<div class="section" id="UpdateUnbindPublic__section1742112132813"><h4 class="sectiontitle">Example Responses</h4><p id="UpdateUnbindPublic__p8742221172814"><strong id="UpdateUnbindPublic__b77421721132815">Status code: 200</strong></p>
<p id="UpdateUnbindPublic__p19742172114285">Request succeeded.</p>
<pre class="screen" id="UpdateUnbindPublic__screen1174222118288">{
"action" : "unbindZone"
}</pre>
</div>
<div class="section" id="UpdateUnbindPublic__section1385972110287"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateUnbindPublic__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UpdateUnbindPublic__row1750182112289"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="UpdateUnbindPublic__p085962172818">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="UpdateUnbindPublic__p1285902162811">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateUnbindPublic__row19750182122812"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="UpdateUnbindPublic__p2859172118285">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="UpdateUnbindPublic__p13859182162817">Request succeeded.</p>
</td>
</tr>
<tr id="UpdateUnbindPublic__row1175052152812"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="UpdateUnbindPublic__p1859221192816">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="UpdateUnbindPublic__p17859621102815">Invalid request.</p>
<p id="UpdateUnbindPublic__p3859152116285">Modify the request before retry.</p>
</td>
</tr>
<tr id="UpdateUnbindPublic__row1275042113282"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="UpdateUnbindPublic__p8859152152819">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="UpdateUnbindPublic__p88598215289">The request could not be completed due to a conflict with the current state of the resource.</p>
<p id="UpdateUnbindPublic__p1485952122820">The resource that the client attempts to create already exists, or the update request fails to be processed because of a conflict.</p>
</td>
</tr>
<tr id="UpdateUnbindPublic__row57501421142814"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="UpdateUnbindPublic__p19859102115285">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="UpdateUnbindPublic__p185992112817">The server did not meet one of the preconditions contained in the request.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateUnbindPublic__section1185910211285"><h4 class="sectiontitle">Error Codes</h4><p id="UpdateUnbindPublic__p08591621142816">See <a href="css_03_0076.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="public_network_access.html">Public Network Access</a></div>
</div>
</div>