Files
doc-exports/docs/bms/dev/en-us_topic_0113607323.html
guoyanyan 8cfe12f587 BMS DEV 20220928 v1
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2022-10-06 06:36:03 +00:00

30 lines
2.3 KiB
HTML

<a name="EN-US_TOPIC_0113607323"></a><a name="EN-US_TOPIC_0113607323"></a>
<h1 class="topictitle1">Querying IP Addresses of BMSs</h1>
<div id="body1526990824340"><div class="section" id="EN-US_TOPIC_0113607323__section123491451123012"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0113607323__p171255416309">Call the required API to query the IP address of the BMS you have created.</p>
</div>
<div class="section" id="EN-US_TOPIC_0113607323__section165294572481"><h4 class="sectiontitle">Restrictions and Limitations</h4><p id="EN-US_TOPIC_0113607323__p1312804855020">Pagination query is not supported.</p>
</div>
<div class="section" id="EN-US_TOPIC_0113607323__section1485352319380"><h4 class="sectiontitle">Involved APIs</h4><p id="EN-US_TOPIC_0113607323__p1937772516389">The following APIs are required:</p>
<p id="EN-US_TOPIC_0113607323__p1886116522511">Querying IP addresses of BMSs</p>
</div>
<div class="section" id="EN-US_TOPIC_0113607323__section6667526174811"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0113607323__ol1523711304507"><li id="EN-US_TOPIC_0113607323__li117825814505">Query IP addresses of BMSs.<ul id="EN-US_TOPIC_0113607323__ul153616554411"><li id="EN-US_TOPIC_0113607323__li1253615551044">API information<p id="EN-US_TOPIC_0113607323__p1486815473016"><a name="EN-US_TOPIC_0113607323__li1253615551044"></a><a name="li1253615551044"></a>URI format: GET /v2/{project_id}/servers/{server_id}/ips</p>
<p id="EN-US_TOPIC_0113607323__p220844119118">For details, see section "Querying IP Addresses of BMSs (Native OpenStack API)" in the <em id="EN-US_TOPIC_0113607323__i48904319199">Bare Metal Server API Reference</em>.</p>
</li><li id="EN-US_TOPIC_0113607323__li847518211518">Example request<p id="EN-US_TOPIC_0113607323__p177691030185414"><a name="EN-US_TOPIC_0113607323__li847518211518"></a><a name="li847518211518"></a>GET https://{ECS Endpoint}/v2/000efdc5f9064584b718b181df137bd7/servers/5850a7e7-88dd-4d99-8439-347de8cc0dd7/ips</p>
</li><li id="EN-US_TOPIC_0113607323__li1882455111812">Example response<pre class="screen" id="EN-US_TOPIC_0113607323__screen208621336194">{
"addresses": {
"ddd56db4-e084-42d1-b0ff-fba1ed82abd0": [
{
"version": 4,
"addr": "192.168.215.62"
}
]
}
}</pre>
</li></ul>
</li></ol>
</div>
</div>
<div></div>