1
0
forked from docs/doc-exports
doc-exports/docs/css/api-ref/css_03_0104.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

188 lines
12 KiB
HTML

<a name="css_03_0104"></a><a name="css_03_0104"></a>
<h1 class="topictitle1">Enabling Public Network Access</h1>
<div id="body0000001526875033"><div class="section" id="css_03_0104__section247812581014"><h4 class="sectiontitle">Function</h4><p id="css_03_0104__p16478105815014">This API is used to enable public network access.</p>
</div>
<div class="section" id="css_03_0104__section8478125811014"><h4 class="sectiontitle">Debugging</h4><p id="css_03_0104__p54794589017">You can debug this API in . Automatic authentication is supported.</p>
</div>
<div class="section" id="css_03_0104__section247913581404"><h4 class="sectiontitle">URI</h4><p id="css_03_0104__p6480958102">POST /v1.0/{project_id}/clusters/{cluster_id}/public/open</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0104__table19483205811020" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="css_03_0104__row11481185811011"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0104__p2048416581008">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_0104__p748515585013">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_0104__p6485195813013">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_0104__p248511580020">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0104__row3481205812014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0104__p164855581705">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0104__p64868585017">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0104__p748665811016">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0104__p144861258306">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_0104__row144811458501"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0104__p17487135812017">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0104__p148715583017">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0104__p348713589017">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0104__p948710581208">ID of the cluster that you want to enable public network access</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0104__section1648819581015"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0104__request_BindPublicReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameter</caption><thead align="left"><tr id="css_03_0104__row11488195818018"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0104__p1549019588016">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_0104__p164909587015">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_0104__p19491105819014">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_0104__p104913587018">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0104__row54898588017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0104__p16491858507">eip</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0104__p1249195810018">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0104__p104921258706"><a href="#css_03_0104__request_BindPublicReqEip">BindPublicReqEip</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0104__p94924581308">EIP information</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="css_03_0104__request_BindPublicReqEip"></a><a name="request_BindPublicReqEip"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0104__request_BindPublicReqEip" frame="border" border="1" rules="all"><caption><b>Table 3 </b>BindPublicReqEip</caption><thead align="left"><tr id="css_03_0104__row049418585016"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="css_03_0104__p204951658105">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_0104__p164951758801">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_0104__p2495158701">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_0104__p1649565816016">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0104__row16494185810014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="css_03_0104__p2496958905">bandWidth</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="css_03_0104__p13496155816020">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="css_03_0104__p2049712581900"><a href="#css_03_0104__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_0104__p10497958209">EIP bandwidth information</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="css_03_0104__request_BindPublicReqEipBandWidth"></a><a name="request_BindPublicReqEipBandWidth"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0104__request_BindPublicReqEipBandWidth" frame="border" border="1" rules="all"><caption><b>Table 4 </b>BindPublicReqEipBandWidth</caption><thead align="left"><tr id="css_03_0104__row549825817011"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="css_03_0104__p65001583010">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_0104__p4500458808">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_0104__p7500658609">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_0104__p17500858800">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0104__row6498185814012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="css_03_0104__p1750115581503">size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="css_03_0104__p195011581003">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="css_03_0104__p85013581201">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="css_03_0104__p85025588011">Bandwidth. Unit: Mbit/s</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0104__section45021588018"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0104__p850375813014"><strong id="css_03_0104__b237017639113030">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0104__response_BindPublicResponseBody" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameter</caption><thead align="left"><tr id="css_03_0104__row1950345815013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="css_03_0104__p85054581205">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_0104__p950514581408">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_0104__p1150515820012">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0104__row85031458606"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="css_03_0104__p250918580012">action</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="css_03_0104__p251015582014">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="css_03_0104__p35126581807">Operation. The fixed value is <strong id="css_03_0104__b37441517122017">bindZone</strong>, indicating that the binding is successful.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0104__section11513358808"><h4 class="sectiontitle">Request Example</h4><pre class="screen" id="css_03_0104__screen175140581802">{
"eip" : {
"bandWidth" : {
"size" : 5
}
},
"isAutoPay" : 1
}</pre>
</div>
<div class="section" id="css_03_0104__section051525811010"><h4 class="sectiontitle">Response Example</h4><p id="css_03_0104__p751617587020"><strong id="css_03_0104__b1824656383113030">Status code: 200</strong></p>
<p id="css_03_0104__p1951625819013">The request is processed successfully.</p>
<pre class="screen" id="css_03_0104__screen12516145812018">{
"action" : "bindZone"
}</pre>
</div>
<div class="section" id="css_03_0104__section115171583012"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0104__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0104__row651845811010"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0104__p651816581011">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_0104__p11519115810015">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0104__row135181858102"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0104__p135191658706">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0104__p155192058803">The request is processed successfully.</p>
</td>
</tr>
<tr id="css_03_0104__row65189581500"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0104__p20520205810013">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0104__p1552011582020">Invalid request.</p>
<p id="css_03_0104__p155204583017">Modify the request instead of retrying.</p>
</td>
</tr>
<tr id="css_03_0104__row1351812581012"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0104__p175201658204">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0104__p155211058507">The request cannot be processed due to a conflict.</p>
<p id="css_03_0104__p105211858002">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_0104__row751815582006"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0104__p85211358102">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0104__p10521115810017">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>