doc-exports/docs/css/api-ref/css_03_0105.html
Zheng, Xiu 99a2d77599 css api 23.5.1 20240520
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com>
Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
2024-06-07 17:47:08 +00:00

187 lines
12 KiB
HTML

<a name="css_03_0105"></a><a name="css_03_0105"></a>
<h1 class="topictitle1">Disabling Public Network Access</h1>
<div id="body0000001526555181"><div class="section" id="css_03_0105__section663418589012"><h4 class="sectiontitle">Function</h4><p id="css_03_0105__p96346582018">This API is used to disable public network access.</p>
</div>
<div class="section" id="css_03_0105__section26341581019"><h4 class="sectiontitle">Debugging</h4><p id="css_03_0105__p10635115810018">You can debug this API in . Automatic authentication is supported.</p>
</div>
<div class="section" id="css_03_0105__section1635195814019"><h4 class="sectiontitle">URI</h4><p id="css_03_0105__p6635858809">PUT /v1.0/{project_id}/clusters/{cluster_id}/public/close</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0105__table1638195820014" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="css_03_0105__row106370585011"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0105__p126381058703">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="css_03_0105__p11640258709">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="css_03_0105__p1264113585010">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="css_03_0105__p9641158803">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0105__row96371658609"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0105__p17642135812011">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0105__p1642135815016">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0105__p96439582016">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0105__p9643165816014">Project ID. For details, see <a href="css_03_0071.html">Obtaining a Project ID and Name</a>.</p>
</td>
</tr>
<tr id="css_03_0105__row1163718585018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0105__p136432058708">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0105__p064417584020">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0105__p9644145818011">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0105__p19645115814016">ID of the cluster that you want to disable public network access</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0105__section664511581020"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0105__request_unBindPublicReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameter</caption><thead align="left"><tr id="css_03_0105__row166458581808"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0105__p11647058302">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="css_03_0105__p56485582012">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="css_03_0105__p10648145810014">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="css_03_0105__p126481958808">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0105__row126461958706"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0105__p1649758303">eip</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0105__p1864916581010">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0105__p065014581909"><a href="#css_03_0105__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="css_03_0105__p76512588014">EIP information</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="css_03_0105__request_UnBindPublicReqEipReq"></a><a name="request_UnBindPublicReqEipReq"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0105__request_UnBindPublicReqEipReq" frame="border" border="1" rules="all"><caption><b>Table 3 </b>UnBindPublicReqEipReq</caption><thead align="left"><tr id="css_03_0105__row865210581015"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="css_03_0105__p1565410589015">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="css_03_0105__p1965455811016">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="css_03_0105__p3655135820010">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="css_03_0105__p176553581201">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0105__row865214581204"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="css_03_0105__p2655155816012">bandWidth</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="css_03_0105__p56565581401">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="css_03_0105__p1265775814013"><a href="#css_03_0105__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="css_03_0105__p965785812012">EIP bandwidth information</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="css_03_0105__request_BindPublicReqEipBandWidth"></a><a name="request_BindPublicReqEipBandWidth"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0105__request_BindPublicReqEipBandWidth" frame="border" border="1" rules="all"><caption><b>Table 4 </b>BindPublicReqEipBandWidth</caption><thead align="left"><tr id="css_03_0105__row1465813581202"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="css_03_0105__p16659185816013">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.2"><p id="css_03_0105__p176591758701">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.3"><p id="css_03_0105__p7659958400">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.4.2.5.1.4"><p id="css_03_0105__p206601658705">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0105__row5658105815014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="css_03_0105__p1660758707">size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="css_03_0105__p1566010582014">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="css_03_0105__p16616583012">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="css_03_0105__p966114581806">Bandwidth. Unit: Mbit/s</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0105__section86619586012"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0105__p66622584017"><strong id="css_03_0105__b1533323825113031">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0105__response_UnbindPublicResponseBody" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameter</caption><thead align="left"><tr id="css_03_0105__row866285810015"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="css_03_0105__p666418580014">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="css_03_0105__p1066415584016">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="css_03_0105__p8665145819017">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0105__row176639581019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="css_03_0105__p11665145818018">action</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="css_03_0105__p1566685813013">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="css_03_0105__p66677581802">Operation. The fixed value is <strong id="css_03_0105__b84301424202320">unbindZone</strong>, indicating that the unbinding is successful.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0105__section136681582010"><h4 class="sectiontitle">Request Example</h4><pre class="screen" id="css_03_0105__screen20668135819015">{
"eip" : {
"bandWidth" : {
"size" : 5
}
}
}</pre>
</div>
<div class="section" id="css_03_0105__section166701458007"><h4 class="sectiontitle">Response Example</h4><p id="css_03_0105__p1967019581002"><strong id="css_03_0105__b1740887311113031">Status code: 200</strong></p>
<p id="css_03_0105__p1767145819013">The request is processed successfully.</p>
<pre class="screen" id="css_03_0105__screen06716581407">{
"action" : "unbindZone"
}</pre>
</div>
<div class="section" id="css_03_0105__section0672758703"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0105__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0105__row106731458905"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0105__p1167412581304">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="css_03_0105__p1674205810013">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0105__row176736582001"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0105__p56751158104">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0105__p1867565812016">The request is processed successfully.</p>
</td>
</tr>
<tr id="css_03_0105__row166731586016"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0105__p1667511582005">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0105__p46763581401">Invalid request.</p>
<p id="css_03_0105__p1667616589018">Modify the request instead of retrying.</p>
</td>
</tr>
<tr id="css_03_0105__row1667311581506"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0105__p156761858501">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0105__p867616584010">The request cannot be processed due to a conflict.</p>
<p id="css_03_0105__p46772581107">This status code indicates that the resource that the client attempts to create already exists, or the request fails to be processed because of the update of the conflict request.</p>
</td>
</tr>
<tr id="css_03_0105__row1067419581505"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0105__p267717586016">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0105__p1367745811013">The server does not meet one of the requirements that the requester puts on the request.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_03_0103.html">Public Network Access</a></div>
</div>
</div>