forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
233 lines
21 KiB
HTML
233 lines
21 KiB
HTML
<a name="vpc_floatingiP_0003"></a><a name="vpc_floatingiP_0003"></a>
|
|
|
|
<h1 class="topictitle1">Assigning a Floating IP Address</h1>
|
|
<div id="body1495458211491"><div class="section" id="vpc_floatingiP_0003__section3174871621549"><h4 class="sectiontitle">Function</h4><p id="vpc_floatingiP_0003__p10957133210296">When assigning a floating IP address, you need to obtain the external network ID <strong id="vpc_floatingiP_0003__b0187162916198">floating_network_id</strong> of the floating IP address. </p>
|
|
<p id="vpc_floatingiP_0003__p537400185912">You can use <strong id="vpc_floatingiP_0003__b41061141105019">GET /v2.0/networks?router:external=True</strong> or run the <strong id="vpc_floatingiP_0003__b1710717413500">neutron net-external-list</strong> command to obtain the UUID of the external network required for assigning a floating IP address. </p>
|
|
<div class="note" id="vpc_floatingiP_0003__note1672091317360"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><div class="p" id="vpc_floatingiP_0003__en-us_topic_0118498850_p39817577485">Note the following when you use EIPs of the Dedicated Load Balancer (<strong id="vpc_floatingiP_0003__en-us_topic_0118498850_b1958731314398">5_gray</strong>) type:<ul id="vpc_floatingiP_0003__en-us_topic_0118498850_ul18141507494"><li id="vpc_floatingiP_0003__en-us_topic_0118498850_li86521438154">In <strong id="vpc_floatingiP_0003__en-us_topic_0118498850_b126181649151714">eu-de</strong>, EIPs of the Dedicated Load Balancer (<strong id="vpc_floatingiP_0003__en-us_topic_0118498850_b108739322183">5_gray</strong>) type cannot be assigned anymore. You can assign EIPs of the BGP (<strong id="vpc_floatingiP_0003__en-us_topic_0118498850_b1874731121812">5_bgp</strong>) type.</li><li id="vpc_floatingiP_0003__en-us_topic_0118498850_li1194114411236">Existing EIPs of the Dedicated Load Balancer (<strong id="vpc_floatingiP_0003__en-us_topic_0118498850_b113526330389">5_gray</strong>) type can be bound to dedicated or shared load balancers.<ul id="vpc_floatingiP_0003__en-us_topic_0118498850_ul2044703613155"><li id="vpc_floatingiP_0003__en-us_topic_0118498850_li1222113518159">The EIP console cannot be used to bind EIPs to or unbind them from dedicated load balancers.</li><li id="vpc_floatingiP_0003__en-us_topic_0118498850_li1688013347356">You can use APIs to bind EIPs to or unbind them from dedicated load balancers. For details, see <a href="https://docs.otc.t-systems.com/elastic-ip/api-ref/api_v3/eips/binding_an_eip.html" target="_blank" rel="noopener noreferrer">Binding an EIP</a> and <a href="https://docs.otc.t-systems.com/elastic-ip/api-ref/api_v3/eips/unbinding_an_eip.html" target="_blank" rel="noopener noreferrer">Unbinding an EIP</a>.</li><li id="vpc_floatingiP_0003__en-us_topic_0118498850_li15559236131711">EIPs of this type can be bound to or unbound from shared load balancers using the EIP console or APIs.</li><li id="vpc_floatingiP_0003__en-us_topic_0118498850_li1659819163617">You are advised to bind BGP EIPs to or unbind them from dedicated load balancers.</li></ul>
|
|
</li><li id="vpc_floatingiP_0003__en-us_topic_0118498850_li1468695512506">Do not add EIPs of the dedicated load balancer type (<strong id="vpc_floatingiP_0003__en-us_topic_0118498850_b354915453512">5_gray</strong>) and other types to the same shared bandwidth. Otherwise, the bandwidth limit policy will not take effect.</li></ul>
|
|
</div>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0003__section5936537521549"><h4 class="sectiontitle">URI</h4><p id="vpc_floatingiP_0003__p185083515127">POST /v2.0/floatingips</p>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0003__section5012846321549"><h4 class="sectiontitle">Request Message</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_floatingiP_0003__table3387369821549" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request parameter</caption><thead align="left"><tr id="vpc_floatingiP_0003__row1358409521549"><th align="left" class="cellrowborder" valign="top" width="19.59%" id="mcps1.3.3.2.2.5.1.1"><p id="vpc_floatingiP_0003__p2656991721549">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.53%" id="mcps1.3.3.2.2.5.1.2"><p id="vpc_floatingiP_0003__p467970821549">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.33%" id="mcps1.3.3.2.2.5.1.3"><p id="vpc_floatingiP_0003__p4351210021549">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="46.550000000000004%" id="mcps1.3.3.2.2.5.1.4"><p id="vpc_floatingiP_0003__p3481919621549">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_floatingiP_0003__row178260421549"><td class="cellrowborder" valign="top" width="19.59%" headers="mcps1.3.3.2.2.5.1.1 "><p id="vpc_floatingiP_0003__p1017324521549">floatingip</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.53%" headers="mcps1.3.3.2.2.5.1.2 "><p id="vpc_floatingiP_0003__p1872651821549"><a href="#vpc_floatingiP_0003__table15863423175513">floatingip</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.3.2.2.5.1.3 "><p id="vpc_floatingiP_0003__p4045302421549">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.3.2.2.5.1.4 "><p id="vpc_floatingiP_0003__p499181352148">Specifies the floating IP address list. For details, see <a href="#vpc_floatingiP_0003__table15863423175513">Table 2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_floatingiP_0003__table15863423175513"></a><a name="table15863423175513"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_floatingiP_0003__table15863423175513" frame="border" border="1" rules="all"><caption><b>Table 2 </b><strong id="vpc_floatingiP_0003__b14621132042217">floatingip</strong> objects</caption><thead align="left"><tr id="vpc_floatingiP_0003__row48631623155511"><th align="left" class="cellrowborder" valign="top" width="19.939999999999998%" id="mcps1.3.3.3.2.5.1.1"><p id="vpc_floatingiP_0003__p23806019164"><strong id="vpc_floatingiP_0003__b17125172310222">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="8.49%" id="mcps1.3.3.3.2.5.1.2"><p id="vpc_floatingiP_0003__p868823916540"><strong id="vpc_floatingiP_0003__b1799613238229">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.48%" id="mcps1.3.3.3.2.5.1.3"><p id="vpc_floatingiP_0003__p1928287519164"><strong id="vpc_floatingiP_0003__b14709142422212">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.09%" id="mcps1.3.3.3.2.5.1.4"><p id="vpc_floatingiP_0003__p4943306019164"><strong id="vpc_floatingiP_0003__b12411025162214">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_floatingiP_0003__row7864323175518"><td class="cellrowborder" valign="top" width="19.939999999999998%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_floatingiP_0003__p2022646619164">floating_ip_address</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.49%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_floatingiP_0003__p17689839165418">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_floatingiP_0003__p2773103519164">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.09%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_floatingiP_0003__p2292670119164">Specifies the floating IP address.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row1686417238557"><td class="cellrowborder" valign="top" width="19.939999999999998%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_floatingiP_0003__p345796219164">floating_network_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.49%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_floatingiP_0003__p1068933955414">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_floatingiP_0003__p1165952819164">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.09%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_floatingiP_0003__p1389784219164">Specifies the external network ID.</p>
|
|
<p id="vpc_floatingiP_0003__p186012181292">You can only use fixed external network. </p>
|
|
<p id="vpc_floatingiP_0003__p095071919913">You can use <strong id="vpc_floatingiP_0003__b14361511172314">GET /v2.0/networks?router:external=True</strong> or</p>
|
|
<p id="vpc_floatingiP_0003__p520001217911"><strong id="vpc_floatingiP_0003__b1416252572310">GET /v2.0/networks?name={floating_network}</strong> or</p>
|
|
<p id="vpc_floatingiP_0003__p5797172119164">run the <strong id="vpc_floatingiP_0003__b156372056245">neutron net-external-list mode</strong> command to obtain information about the external network. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row98641023145511"><td class="cellrowborder" valign="top" width="19.939999999999998%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_floatingiP_0003__p4886025919164">port_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.49%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_floatingiP_0003__p1868973975414">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_floatingiP_0003__p6536694419164">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.09%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_floatingiP_0003__p2628234219164">Specifies the port ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row1086519236554"><td class="cellrowborder" valign="top" width="19.939999999999998%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_floatingiP_0003__p3380179719164">fixed_ip_address</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.49%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_floatingiP_0003__p368912399543">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_floatingiP_0003__p5359099919164">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.09%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_floatingiP_0003__p1829247919164">Specifies the private IP address of the associated port.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0003__section6384765421549"><h4 class="sectiontitle">Response Message</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_floatingiP_0003__table427745721549" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameter</caption><thead align="left"><tr id="vpc_floatingiP_0003__row435809221549"><th align="left" class="cellrowborder" valign="top" width="21.349999999999998%" id="mcps1.3.4.2.2.4.1.1"><p id="vpc_floatingiP_0003__p1746120521549">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.11%" id="mcps1.3.4.2.2.4.1.2"><p id="vpc_floatingiP_0003__p507150621549">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59.540000000000006%" id="mcps1.3.4.2.2.4.1.3"><p id="vpc_floatingiP_0003__p5526791421549">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_floatingiP_0003__row4751605321549"><td class="cellrowborder" valign="top" width="21.349999999999998%" headers="mcps1.3.4.2.2.4.1.1 "><p id="vpc_floatingiP_0003__p2359506021549">floatingip</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.11%" headers="mcps1.3.4.2.2.4.1.2 "><p id="vpc_floatingiP_0003__p3215169621549"><a href="#vpc_floatingiP_0003__table8139247714">floatingip</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.540000000000006%" headers="mcps1.3.4.2.2.4.1.3 "><p id="vpc_floatingiP_0003__p2411791621549">Specifies the floating IP address list. For details, see <a href="#vpc_floatingiP_0003__table8139247714">Table 4</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_floatingiP_0003__table8139247714"></a><a name="table8139247714"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_floatingiP_0003__table8139247714" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="vpc_floatingiP_0003__b5440162616258">floatingip</strong> objects</caption><thead align="left"><tr id="vpc_floatingiP_0003__row18132240714"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.4.1.1"><p id="vpc_floatingiP_0003__p101201250870"><strong id="vpc_floatingiP_0003__b20758153582519">Attribute</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.4.1.2"><p id="vpc_floatingiP_0003__p161211850674"><strong id="vpc_floatingiP_0003__b165690362259">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.4.1.3"><p id="vpc_floatingiP_0003__p41217502719"><strong id="vpc_floatingiP_0003__b62611537152516">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_floatingiP_0003__row2014192410713"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p6028218019164">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p5101843519164">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p6000412319164">Specifies the floating IP address status. The value can be <strong id="vpc_floatingiP_0003__b1077611394252">ACTIVE</strong>, <strong id="vpc_floatingiP_0003__b18777939192511">DOWN</strong>, or <strong id="vpc_floatingiP_0003__b3777183912515">ERROR</strong>.</p>
|
|
<ul id="vpc_floatingiP_0003__ul10603143175810"><li id="vpc_floatingiP_0003__li19952124945414"><strong id="vpc_floatingiP_0003__b127219610379">DOWN</strong> indicates that the floating IP address has not been bound.</li><li id="vpc_floatingiP_0003__li13389115319543"><strong id="vpc_floatingiP_0003__b25619810374">ACTIVE</strong> indicates that the floating IP address has been bound.</li><li id="vpc_floatingiP_0003__li13907438154014"><strong id="vpc_floatingiP_0003__b148881088379">ERROR</strong> indicates that the floating IP address is abnormal. </li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row4141241070"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p5513524919164">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p212111505713">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p4121850371">Specifies the floating IP address ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row614132416712"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p1912112509713">floating_ip_address</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p11211850072">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p16122205017713">Specifies the floating IP address.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row115102414717"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p61223503712">floating_network_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p1812220507714">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p16122550274">Specifies the external network ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row19155241277"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p201223504719">router_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p1122155015714">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p812212506713">Specifies the ID of the belonged router.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row101514247714"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p412218502718">port_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p612213506716">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p141228504716">Specifies the port ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row3164249715"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p01237508720">fixed_ip_address</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p111239501770">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p1712316501972">Specifies the private IP address of the associated port.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row21662416711"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p812355018717">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p612316509712">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p10487112">Specifies the project ID.</p>
|
|
<p id="vpc_floatingiP_0003__p51231950174"></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row11176241720"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p11222111885214">dns_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p122232018115215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p18223161825216">Specifies the DNS name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0003__row17174241670"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0003__p492133065713">dns_domain</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0003__p16929300573">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0003__p3921230175711">Specifies the DNS domain.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0003__section1938112615427"><h4 class="sectiontitle">Example Request</h4><p id="vpc_floatingiP_0003__p738118684218">Create a floating IP address whose network is <strong id="vpc_floatingiP_0003__b48441553213">0a2228f2-7f8a-45f1-8e09-9039e1d09975</strong>.</p>
|
|
<pre class="screen" id="vpc_floatingiP_0003__screen15851113594812">POST https://{Endpoint}/v2.0/floatingips
|
|
|
|
{
|
|
"floatingip": {
|
|
"floating_network_id": "0a2228f2-7f8a-45f1-8e09-9039e1d09975"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0003__section53826644215"><h4 class="sectiontitle">Example Response</h4><p id="vpc_floatingiP_0003__p33828684220"><strong id="vpc_floatingiP_0003__b1464414820218">Status code: 201</strong></p>
|
|
<p id="vpc_floatingiP_0003__p1938296144214">Normal response to POST requests</p>
|
|
<pre class="screen" id="vpc_floatingiP_0003__screen71216289483">{
|
|
"floatingip": {
|
|
"id": "b997e0d4-3359-4c74-8f88-bc0af81cd5a2",
|
|
"status": "DOWN",
|
|
"router_id": null,
|
|
"tenant_id": "bbfe8c41dd034a07bebd592bf03b4b0c",
|
|
|
|
"floating_network_id": "0a2228f2-7f8a-45f1-8e09-9039e1d09975",
|
|
"fixed_ip_address": null,
|
|
"floating_ip_address": "88.88.215.205",
|
|
"port_id": null,
|
|
"dns_name": "ecs-80-158-78-239",
|
|
"dns_domain": "reverse.<em id="vpc_floatingiP_0003__i131227288483">domain-name</em>.com"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0003__section10470352390"><h4 class="sectiontitle">Status Code</h4><p id="vpc_floatingiP_0003__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0003__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_floatingiP_0003__p7233105282813">See <a href="vpc_api_0003.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_floatingiP_0000.html">Floating IP Address</a></div>
|
|
</div>
|
|
</div>
|
|
|