forked from laiweijian4/doc-exports
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com> Co-authored-by: gtema <artem.goncharov@gmail.com> Co-committed-by: gtema <artem.goncharov@gmail.com>
174 lines
14 KiB
HTML
174 lines
14 KiB
HTML
<a name="vpc_floatingiP_0002"></a><a name="vpc_floatingiP_0002"></a>
|
|
|
|
<h1 class="topictitle1">Querying a Floating IP Address</h1>
|
|
<div id="body1495458211491"><div class="section" id="vpc_floatingiP_0002__section433032482159"><h4 class="sectiontitle">Function</h4><p id="vpc_floatingiP_0002__p179021902159">This API is used to query details about a specified floating IP address, including the floating IP address status, ID of the router to which the floating IP address belongs, and external network ID of the floating IP address.</p>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0002__section269019862159"><h4 class="sectiontitle">URI</h4><p id="vpc_floatingiP_0002__p1858521971112">GET /v2.0/floatingips/{floatingip_id}</p>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0002__section513321362159"><h4 class="sectiontitle">Request Message</h4><p id="vpc_floatingiP_0002__p642623582159">None</p>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0002__section414903182159"><h4 class="sectiontitle">Response Message</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_floatingiP_0002__table52726292159" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response parameter</caption><thead align="left"><tr id="vpc_floatingiP_0002__row483206142159"><th align="left" class="cellrowborder" valign="top" width="21.349999999999998%" id="mcps1.3.4.2.2.4.1.1"><p id="vpc_floatingiP_0002__p216556632159">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="8.99%" id="mcps1.3.4.2.2.4.1.2"><p id="vpc_floatingiP_0002__p92783132159">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.66%" id="mcps1.3.4.2.2.4.1.3"><p id="vpc_floatingiP_0002__p72773912159">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_floatingiP_0002__row525977702159"><td class="cellrowborder" valign="top" width="21.349999999999998%" headers="mcps1.3.4.2.2.4.1.1 "><p id="vpc_floatingiP_0002__p325609822159">floatingip</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.99%" headers="mcps1.3.4.2.2.4.1.2 "><p id="vpc_floatingiP_0002__p201938822159"><a href="#vpc_floatingiP_0002__table8139247714">floatingip</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.66%" headers="mcps1.3.4.2.2.4.1.3 "><p id="vpc_floatingiP_0002__p191679172159">Specifies the floating IP address list. For details, see <a href="#vpc_floatingiP_0002__table8139247714">Table 2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_floatingiP_0002__table8139247714"></a><a name="table8139247714"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_floatingiP_0002__table8139247714" frame="border" border="1" rules="all"><caption><b>Table 2 </b><strong id="vpc_floatingiP_0002__b18714181195">floatingip</strong> objects</caption><thead align="left"><tr id="vpc_floatingiP_0002__row18132240714"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.4.1.1"><p id="vpc_floatingiP_0002__p101201250870"><strong id="vpc_floatingiP_0002__b883917243138">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_0002__p161211850674"><strong id="vpc_floatingiP_0002__b116546278139">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_0002__p41217502719"><strong id="vpc_floatingiP_0002__b1350518288137">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_floatingiP_0002__row2014192410713"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p6000412319164">Specifies the floating IP address status. The value can be <strong id="vpc_floatingiP_0002__b5686832141314">ACTIVE</strong>, <strong id="vpc_floatingiP_0002__b668614321137">DOWN</strong>, or <strong id="vpc_floatingiP_0002__b668723211135">ERROR</strong>.</p>
|
|
<ul id="vpc_floatingiP_0002__ul10603143175810"><li id="vpc_floatingiP_0002__li19952124945414"><strong id="vpc_floatingiP_0002__b69115394136">DOWN</strong> indicates that the floating IP address has not been bound.</li><li id="vpc_floatingiP_0002__li13389115319543"><strong id="vpc_floatingiP_0002__b248155261312">ACTIVE</strong> indicates that the floating IP address has been bound.</li><li id="vpc_floatingiP_0002__li13907438154014"><strong id="vpc_floatingiP_0002__b1564525313138">ERROR</strong> indicates that the floating IP address is abnormal. </li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row4141241070"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p4121850371">Specifies the floating IP address ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row29903910157"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__p1276893520133">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0002__p147682350136">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0002__p876820352133">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row614132416712"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p16122205017713">Specifies the floating IP address.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row115102414717"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p16122550274">Specifies the external network ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row19155241277"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p812212506713">Specifies the ID of the belonged router.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row101514247714"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p141228504716">Specifies the port ID.</p>
|
|
<div class="note" id="vpc_floatingiP_0002__note01531830171810"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="vpc_floatingiP_0002__p515453014185">The value of <strong id="vpc_floatingiP_0002__b119455131612">port_id</strong> is null if the EIP is bound to a dedicated load balancer.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row3164249715"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p1712316501972">Specifies the private IP address of the associated port.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row21662416711"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p10487112">Specifies the project ID.</p>
|
|
<p id="vpc_floatingiP_0002__p51231950174"></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row11176241720"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p18223161825216">Specifies the DNS name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row17174241670"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__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_0002__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_0002__p3921230175711">Specifies the DNS domain.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row1418142410714"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__p1953114119914">created_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0002__p595318416919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0002__p1395374115919">Specifies the time when the floating IP address was created.</p>
|
|
<p id="vpc_floatingiP_0002__p1232884613478">UTC time is used.</p>
|
|
<p id="vpc_floatingiP_0002__p2070141994713">Format: <em id="vpc_floatingiP_0002__i542193342011">yyyy-MM-ddTHH:mm:ss</em></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_floatingiP_0002__row1188246714"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_floatingiP_0002__p139719548912">updated_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_floatingiP_0002__p53971154594">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_floatingiP_0002__p1339713549918">Specifies the time when the floating IP address was updated.</p>
|
|
<p id="vpc_floatingiP_0002__p876511114816">UTC time is used.</p>
|
|
<p id="vpc_floatingiP_0002__p137222218476">Format: <em id="vpc_floatingiP_0002__i149104882218">yyyy-MM-ddTHH:mm:ss</em></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0002__section382935262159"><h4 class="sectiontitle">Example:</h4><p id="vpc_floatingiP_0002__p2146116191219">Example request</p>
|
|
<pre class="screen" id="vpc_floatingiP_0002__screen768240122811">GET https://{Endpoint}/v2.0/floatingips/1a3a2818-d9b4-4a9c-8a19-5252c499d1cd</pre>
|
|
</div>
|
|
<p id="vpc_floatingiP_0002__p4414121815124">Example response</p>
|
|
<pre class="screen" id="vpc_floatingiP_0002__screen1993062211298">{
|
|
"floatingip": {
|
|
"id": "1a3a2818-d9b4-4a9c-8a19-5252c499d1cd",
|
|
"status": "DOWN",
|
|
"router_id": null,
|
|
"tenant_id": "bbfe8c41dd034a07bebd592bf03b4b0c",
|
|
"project_id": "bbfe8c41dd034a07bebd592bf03b4b0c",
|
|
"floating_network_id": "0a2228f2-7f8a-45f1-8e09-9039e1d09975",
|
|
"fixed_ip_address": null,
|
|
"floating_ip_address": "99.99.99.84",
|
|
"port_id": null,
|
|
"dns_name": "ecs-80-158-78-239",
|
|
"dns_domain": "reverse.<em id="vpc_floatingiP_0002__i9378122925913">domain-name</em>.com",
|
|
"created_at": "2017-10-19T12:21:28",
|
|
"updated_at": "2018-07-30T12:52:13"
|
|
}
|
|
}</pre>
|
|
<p id="vpc_floatingiP_0002__p541518032159"></p>
|
|
<div class="section" id="vpc_floatingiP_0002__section10470352390"><h4 class="sectiontitle">Status Code</h4><p id="vpc_floatingiP_0002__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="vpc_floatingiP_0002__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_floatingiP_0002__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>
|
|
|