doc-exports/docs/bms/api-ref/en-us_topic_0053158684.html
guoyanyan c311ecafe3 bms_api_0510
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2023-10-11 08:28:11 +00:00

290 lines
26 KiB
HTML

<a name="EN-US_TOPIC_0053158684"></a><a name="EN-US_TOPIC_0053158684"></a>
<h1 class="topictitle1">Querying <span id="text68606276113">BMS</span><span id="text1947382572"></span> Flavors (Native OpenStack API)</h1>
<div id="body16655470"><div class="section" id="EN-US_TOPIC_0053158684__section57769674"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0053158684__p6915811">This API is used to query <span id="EN-US_TOPIC_0053158684__text1310274425711">BMS</span><span id="EN-US_TOPIC_0053158684__text12102184410575"></span><span id="EN-US_TOPIC_0053158684__text844715419398"></span> flavors.</p>
</div>
<div class="section" id="EN-US_TOPIC_0053158684__section60580832213029"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0053158684__p91137314513">The flavors you obtained using this API are all the flavors in the system. The flavors whose names starting with <strong id="EN-US_TOPIC_0053158684__b774618481833">physical</strong> are <span id="EN-US_TOPIC_0053158684__text2011614481575">BMS</span><span id="EN-US_TOPIC_0053158684__text9116154865713"></span><span id="EN-US_TOPIC_0053158684__text163229599390"></span> flavors and can be used to create <span id="EN-US_TOPIC_0053158684__text8552165010578">BMS</span><span id="EN-US_TOPIC_0053158684__text35525504572"></span><span id="EN-US_TOPIC_0053158684__text1862149408"></span>s.</p>
</div>
<div class="section" id="EN-US_TOPIC_0053158684__section50165025"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0053158684__p5087382716152">GET /v2.1/{project_id}/flavors/detail{?minDisk={minDisk}&amp;minRam={minRam}&amp;sort_key={sort_key}&amp;sort_dir={sort_dir}}</p>
<p id="EN-US_TOPIC_0053158684__p14978335184120"><a href="#EN-US_TOPIC_0053158684__table1687344817416">Table 1</a> lists the parameters.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0053158684__table1687344817416"></a><a name="table1687344817416"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0053158684__table1687344817416" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0053158684__row138741548164116"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.1"><p id="EN-US_TOPIC_0053158684__p5187119">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.2"><p id="EN-US_TOPIC_0053158684__p17503500">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.3"><p id="EN-US_TOPIC_0053158684__p8497414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0053158684__row28741048144119"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p51178607">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p51826478">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p37195178">Specifies the project ID.</p>
<p id="EN-US_TOPIC_0053158684__p9141450142010">For how to obtain the project ID, see <a href="https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328009.html" target="_blank" rel="noopener noreferrer">Obtaining Required Information</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0053158684__p134687241858"><a href="#EN-US_TOPIC_0053158684__table1719300427">Table 2</a> lists the optional parameters that can be used to query <span id="EN-US_TOPIC_0053158684__text977310588577">BMS</span><span id="EN-US_TOPIC_0053158684__text1877335835717"></span> flavors.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0053158684__table1719300427"></a><a name="table1719300427"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0053158684__table1719300427" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Optional parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0053158684__row57253084215"><th align="left" class="cellrowborder" valign="top" width="20.830000000000002%" id="mcps1.3.3.6.2.5.1.1"><p id="EN-US_TOPIC_0053158684__p59978491115233">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.39%" id="mcps1.3.3.6.2.5.1.2"><p id="EN-US_TOPIC_0053158684__p15431544654">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.07%" id="mcps1.3.3.6.2.5.1.3"><p id="EN-US_TOPIC_0053158684__p26419641115233">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="38.71%" id="mcps1.3.3.6.2.5.1.4"><p id="EN-US_TOPIC_0053158684__p64181866115233">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0053158684__row107363044215"><td class="cellrowborder" valign="top" width="20.830000000000002%" headers="mcps1.3.3.6.2.5.1.1 "><p id="EN-US_TOPIC_0053158684__p7618124412423">minDisk</p>
</td>
<td class="cellrowborder" valign="top" width="20.39%" headers="mcps1.3.3.6.2.5.1.2 "><p id="EN-US_TOPIC_0053158684__p14421144857">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.07%" headers="mcps1.3.3.6.2.5.1.3 "><p id="EN-US_TOPIC_0053158684__p26202446424">String</p>
</td>
<td class="cellrowborder" valign="top" width="38.71%" headers="mcps1.3.3.6.2.5.1.4 "><p id="EN-US_TOPIC_0053158684__p116242044134216">Specifies the minimum disk size in GB. Only the BMSs with a disk size greater than or equal to the minimum size can be queried.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row17730303422"><td class="cellrowborder" valign="top" width="20.830000000000002%" headers="mcps1.3.3.6.2.5.1.1 "><p id="EN-US_TOPIC_0053158684__p1562994419427">minRam</p>
</td>
<td class="cellrowborder" valign="top" width="20.39%" headers="mcps1.3.3.6.2.5.1.2 "><p id="EN-US_TOPIC_0053158684__p104224419515">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.07%" headers="mcps1.3.3.6.2.5.1.3 "><p id="EN-US_TOPIC_0053158684__p146323449428">String</p>
</td>
<td class="cellrowborder" valign="top" width="38.71%" headers="mcps1.3.3.6.2.5.1.4 "><p id="EN-US_TOPIC_0053158684__p863714412422">Specifies the minimum memory size in MB. Only the BMSs with the memory size greater than or equal to the minimum size can be queried.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row1673103013428"><td class="cellrowborder" valign="top" width="20.830000000000002%" headers="mcps1.3.3.6.2.5.1.1 "><p id="EN-US_TOPIC_0053158684__p12651144417421">sort_key</p>
</td>
<td class="cellrowborder" valign="top" width="20.39%" headers="mcps1.3.3.6.2.5.1.2 "><p id="EN-US_TOPIC_0053158684__p1040164413513">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.07%" headers="mcps1.3.3.6.2.5.1.3 "><p id="EN-US_TOPIC_0053158684__p196558447427">String</p>
</td>
<td class="cellrowborder" valign="top" width="38.71%" headers="mcps1.3.3.6.2.5.1.4 "><p id="EN-US_TOPIC_0053158684__p366084404210">Specifies the sorting field. The default value is <strong id="EN-US_TOPIC_0053158684__b842352706101459">flavorid</strong>. The value of this parameter can also be <strong id="EN-US_TOPIC_0053158684__b842352706101549">name</strong>, <strong id="EN-US_TOPIC_0053158684__b842352706101555">memory_mb</strong>, <strong id="EN-US_TOPIC_0053158684__b842352706101622">vcpus</strong>, <strong id="EN-US_TOPIC_0053158684__b842352706101625">root_gb</strong>, or <strong id="EN-US_TOPIC_0053158684__b84235270610301">flavorid</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row87303017423"><td class="cellrowborder" valign="top" width="20.830000000000002%" headers="mcps1.3.3.6.2.5.1.1 "><p id="EN-US_TOPIC_0053158684__p16663174412421">sort_dir</p>
</td>
<td class="cellrowborder" valign="top" width="20.39%" headers="mcps1.3.3.6.2.5.1.2 "><p id="EN-US_TOPIC_0053158684__p104012441155">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.07%" headers="mcps1.3.3.6.2.5.1.3 "><p id="EN-US_TOPIC_0053158684__p466510447425">String</p>
</td>
<td class="cellrowborder" valign="top" width="38.71%" headers="mcps1.3.3.6.2.5.1.4 "><p id="EN-US_TOPIC_0053158684__p381417538211">Specifies the sorting of BMS flavors.</p>
<p id="EN-US_TOPIC_0053158684__p19672104424217">The value can be <strong id="EN-US_TOPIC_0053158684__b114969111578">asc</strong> or <strong id="EN-US_TOPIC_0053158684__b6657414475">desc</strong>, and is <strong id="EN-US_TOPIC_0053158684__b1815251272">asc</strong> by default.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0053158684__section48832041"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0053158684__ul17399264224"><li id="EN-US_TOPIC_0053158684__li7174184561">Request parameters<p id="EN-US_TOPIC_0053158684__p166931581964"><a name="EN-US_TOPIC_0053158684__li7174184561"></a><a name="li7174184561"></a>None</p>
</li><li id="EN-US_TOPIC_0053158684__li173919263229">Example request<ul id="EN-US_TOPIC_0053158684__ul0896172616537"><li id="EN-US_TOPIC_0053158684__li389682695311">With no optional parameter<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0053158684__screen18132111314570"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">GET</span><span class="w"> </span><span class="n">https</span><span class="p">:</span><span class="c1">//{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/flavors/detail</span>
</pre></div></td></tr></table></div>
</div>
</li><li id="EN-US_TOPIC_0053158684__li9758634155617">With an optional parameter<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0053158684__screen216453912571"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">GET</span><span class="w"> </span><span class="n">https</span><span class="p">:</span><span class="c1">//{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/flavors/detail?minDisk=3725</span>
</pre></div></td></tr></table></div>
</div>
</li><li id="EN-US_TOPIC_0053158684__li827916459568">With multiple optional parameters<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0053158684__screen616014248583"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">GET</span><span class="w"> </span><span class="n">https</span><span class="p">:</span><span class="c1">//{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/flavors/detail?minDisk=3725&amp;is_public=true</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0053158684__section36835188"><h4 class="sectiontitle">Response</h4><ul id="EN-US_TOPIC_0053158684__ul66273709"><li id="EN-US_TOPIC_0053158684__li62260885">Response parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0053158684__table23477058" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0053158684__row2792905"><th align="left" class="cellrowborder" valign="top" width="23.94%" id="mcps1.3.5.2.1.1.1.4.1.1"><p id="EN-US_TOPIC_0053158684__p151621239131213">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.09%" id="mcps1.3.5.2.1.1.1.4.1.2"><p id="EN-US_TOPIC_0053158684__p17165183912124">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50.970000000000006%" id="mcps1.3.5.2.1.1.1.4.1.3"><p id="EN-US_TOPIC_0053158684__p716920393129">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0053158684__row9994955"><td class="cellrowborder" valign="top" width="23.94%" headers="mcps1.3.5.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0053158684__p4284989">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="25.09%" headers="mcps1.3.5.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0053158684__p62312200">Array of objects</p>
</td>
<td class="cellrowborder" valign="top" width="50.970000000000006%" headers="mcps1.3.5.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0053158684__p60002101">Specifies <span id="EN-US_TOPIC_0053158684__text18472201045814">BMS</span><span id="EN-US_TOPIC_0053158684__text547221045820"></span><span id="EN-US_TOPIC_0053158684__text20310171404010"></span> flavors. For details, see <a href="#EN-US_TOPIC_0053158684__table13194498">Table 3</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0053158684__table13194498"></a><a name="table13194498"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0053158684__table13194498" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="EN-US_TOPIC_0053158684__b10829193015501">flavors</strong> field data structure description</caption><thead align="left"><tr id="EN-US_TOPIC_0053158684__row35873632"><th align="left" class="cellrowborder" valign="top" width="24.22%" id="mcps1.3.5.2.1.2.2.4.1.1"><p id="EN-US_TOPIC_0053158684__p1934639181313">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.46%" id="mcps1.3.5.2.1.2.2.4.1.2"><p id="EN-US_TOPIC_0053158684__p1134716921317">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.32%" id="mcps1.3.5.2.1.2.2.4.1.3"><p id="EN-US_TOPIC_0053158684__p535259131314">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0053158684__row15349251"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p35329809">id</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p24536113173145">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p56261663">Specifies the <span id="EN-US_TOPIC_0053158684__text14927171275818">BMS</span><span id="EN-US_TOPIC_0053158684__text1927171245813"></span><span id="EN-US_TOPIC_0053158684__text575171904019"></span> flavor ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row36592919"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p11236435">name</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p54383891173145">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p61525259">Specifies the <span id="EN-US_TOPIC_0053158684__text913422265820">BMS</span><span id="EN-US_TOPIC_0053158684__text12134172216588"></span><span id="EN-US_TOPIC_0053158684__text14446239403"></span> flavor name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row16856419"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p23192694">vcpus</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p61992247173145">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p60827539">Specifies the number of CPU cores in the <span id="EN-US_TOPIC_0053158684__text771542415817">BMS</span><span id="EN-US_TOPIC_0053158684__text77151424115815"></span><span id="EN-US_TOPIC_0053158684__text532272734015"></span> flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row3097644510336"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p3929432310349">ram</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p51423198173145">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p154673810349">Specifies the memory size (MB) in the <span id="EN-US_TOPIC_0053158684__text193481527175811">BMS</span><span id="EN-US_TOPIC_0053158684__text23482272589"></span><span id="EN-US_TOPIC_0053158684__text327143224011"></span> flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row10576944"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p51426113">disk</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p31344710173145">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p19756352">Specifies the disk size (GB) in the <span id="EN-US_TOPIC_0053158684__text495612955816">BMS</span><span id="EN-US_TOPIC_0053158684__text1495610298587"></span><span id="EN-US_TOPIC_0053158684__text19805173874010"></span> flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row56760689"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p34213098">swap</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p31087024173145">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p3906895110328">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row56925253"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p47542785">OS-FLV-EXT-DATA:ephemeral</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p18132829173145">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p2710719510328">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row44806966"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p5485596">OS-FLV-DISABLED:disabled</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p52585611173145">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p3113915110328">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row42184651"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p61513540">rxtx_factor</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p7527547173145">Float</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p1764564010328">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row51313205"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p62728917">os-flavor-access:is_public</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p43117912173145">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p3503996211722">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row2047803919452"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p6509154919455">links</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p3792414219455">Array of objects</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p6495712119455">Specifies shortcut links of the BMS flavor. For details, see <a href="#EN-US_TOPIC_0053158684__table15913898194628">Table 4</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0053158684__table15913898194628"></a><a name="table15913898194628"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0053158684__table15913898194628" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="EN-US_TOPIC_0053158684__b1442541105016">links</strong> field data structure description</caption><thead align="left"><tr id="EN-US_TOPIC_0053158684__row37608132194628"><th align="left" class="cellrowborder" valign="top" width="23.1%" id="mcps1.3.5.2.1.3.2.4.1.1"><p id="EN-US_TOPIC_0053158684__p1387423241319">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.790000000000003%" id="mcps1.3.5.2.1.3.2.4.1.2"><p id="EN-US_TOPIC_0053158684__p1487693221320">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.11%" id="mcps1.3.5.2.1.3.2.4.1.3"><p id="EN-US_TOPIC_0053158684__p187911326136">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0053158684__row17692319194628"><td class="cellrowborder" valign="top" width="23.1%" headers="mcps1.3.5.2.1.3.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p23791739194628">rel</p>
</td>
<td class="cellrowborder" valign="top" width="25.790000000000003%" headers="mcps1.3.5.2.1.3.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p48082703194628">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.11%" headers="mcps1.3.5.2.1.3.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p2384900194628">Specifies the shortcut link marker name.</p>
<ul id="EN-US_TOPIC_0053158684__ul207311644172510"><li id="EN-US_TOPIC_0053158684__en-us_topic_0131326852_li1013032685313"><strong id="EN-US_TOPIC_0053158684__en-us_topic_0131326852_b320113110516">self</strong>: resource link that contains the version number. It is used when immediate tracing is required.</li><li id="EN-US_TOPIC_0053158684__en-us_topic_0131326852_li14448163219533"><strong id="EN-US_TOPIC_0053158684__en-us_topic_0131326852_b84171947711">bookmark</strong>: resource link that can be stored for a long time.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0053158684__row21464106194628"><td class="cellrowborder" valign="top" width="23.1%" headers="mcps1.3.5.2.1.3.2.4.1.1 "><p id="EN-US_TOPIC_0053158684__p60871059194628">href</p>
</td>
<td class="cellrowborder" valign="top" width="25.790000000000003%" headers="mcps1.3.5.2.1.3.2.4.1.2 "><p id="EN-US_TOPIC_0053158684__p31608752194628">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.11%" headers="mcps1.3.5.2.1.3.2.4.1.3 "><p id="EN-US_TOPIC_0053158684__p10172138194628">Specifies the corresponding shortcut link.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="EN-US_TOPIC_0053158684__ul46855021"><li id="EN-US_TOPIC_0053158684__li5159931810347">Example response<pre class="screen" id="EN-US_TOPIC_0053158684__screen5586569202517">{
"flavors": [
{
"name": "physical.o2.medium",
"links": [
{
"href": "https://openstack.example.com/v2/c685484a8cc2416b97260938705deb65/flavors/physical.o2.medium",
"rel": "self"
},
{
"href": "https://openstack.example.com/c685484a8cc2416b97260938705deb65/flavors/physical.o2.medium",
"rel": "bookmark"
}
],
"ram": 321725,
"OS-FLV-DISABLED:disabled": false,
"vcpus": 56,
"swap": "",
"os-flavor-access:is_public": true,
"rxtx_factor": 1,
"OS-FLV-EXT-DATA:ephemeral": 0,
"disk": 3725,
"id": "physical.o2.medium"
}
]
}</pre>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0053158684__section7610951"><h4 class="sectiontitle">Returned Values</h4><div class="p" id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_p193201622141412">Normal values
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_table753804619176" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_row10735134615172"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.6.2.1.1.3.1.1"><p id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_p19735204616177">Returned Values</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.6.2.1.1.3.1.2"><p id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_p207355465176">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_row1473514621713"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.6.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_p13735144611178">200</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.6.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_p207351246161711">The request has been successfully processed.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_p47633965">For details about other returned values, see <a href="en-us_topic_0053158690.html">Status Codes</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0053158684__section14752650154917"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0053158684__en-us_topic_0106040941_p10243161417491">See <a href="en-us_topic_0107541808.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0053158668.html">BMS Flavor Query</a></div>
</div>
</div>