Files
doc-exports/docs/bms/api-ref/en-us_topic_0000002374101029.html
wanghuijuan738 221780bfeb BMS API 20251123 VERSION. Modified descriptions in some topics.
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com>
Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
2025-12-17 13:44:21 +00:00

282 lines
30 KiB
HTML

<a name="EN-US_TOPIC_0000002374101029"></a><a name="EN-US_TOPIC_0000002374101029"></a>
<h1 class="topictitle1">Querying <span id="en-us_topic_0053158684_text68606276113">BMS</span><span id="en-us_topic_0053158684_text1947382572"></span> Flavors</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_section57769674"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p6915811">This API is used to query <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text1310274425711">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text12102184410575"></span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text844715419398"></span> flavors.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_section60580832213029"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002374101029__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_0000002374101029__en-us_topic_0053158684_b774618481833">physical</strong> are <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text2011614481575">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text9116154865713"></span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text163229599390"></span> flavors and can be used to create <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text8552165010578">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text35525504572"></span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text1862149408"></span>s.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_section50165025"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002374101029__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_0000002374101029__en-us_topic_0053158684_p14978335184120"><a href="#EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table1687344817416">Table 1</a> lists the parameters.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table1687344817416"></a><a name="en-us_topic_0053158684_table1687344817416"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374101029__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_0000002374101029__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_0000002374101029__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_0000002374101029__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_0000002374101029__en-us_topic_0053158684_p8497414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374101029__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_0000002374101029__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_0000002374101029__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_0000002374101029__en-us_topic_0053158684_p37195178">Specifies the project ID.</p>
<p id="EN-US_TOPIC_0000002374101029__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>
</div>
<div class="section" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_section48832041"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p134687241858"><a href="#EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table1719300427">Table 2</a> lists the optional parameters that can be used to query <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text977310588577">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text1877335835717"></span> flavors.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table1719300427"></a><a name="en-us_topic_0053158684_table1719300427"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374101029__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_0000002374101029__en-us_topic_0053158684_row57253084215"><th align="left" class="cellrowborder" valign="top" width="20.830000000000002%" id="mcps1.3.4.3.2.5.1.1"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p59978491115233">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.39%" id="mcps1.3.4.3.2.5.1.2"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p15431544654">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.07%" id="mcps1.3.4.3.2.5.1.3"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p26419641115233">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="38.71%" id="mcps1.3.4.3.2.5.1.4"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p64181866115233">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row107363044215"><td class="cellrowborder" valign="top" width="20.830000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p7618124412423">minDisk</p>
</td>
<td class="cellrowborder" valign="top" width="20.39%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p14421144857">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.07%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p26202446424">String</p>
</td>
<td class="cellrowborder" valign="top" width="38.71%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002374101029__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_0000002374101029__en-us_topic_0053158684_row17730303422"><td class="cellrowborder" valign="top" width="20.830000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p1562994419427">minRam</p>
</td>
<td class="cellrowborder" valign="top" width="20.39%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p104224419515">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.07%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p146323449428">String</p>
</td>
<td class="cellrowborder" valign="top" width="38.71%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002374101029__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_0000002374101029__en-us_topic_0053158684_row1673103013428"><td class="cellrowborder" valign="top" width="20.830000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p12651144417421">sort_key</p>
</td>
<td class="cellrowborder" valign="top" width="20.39%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p1040164413513">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.07%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p196558447427">String</p>
</td>
<td class="cellrowborder" valign="top" width="38.71%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p366084404210">Specifies the sorting field. The default value is <strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b842352706101459">flavorid</strong>. The value of this parameter can also be <strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b842352706101549">name</strong>, <strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b842352706101555">memory_mb</strong>, <strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b842352706101622">vcpus</strong>, <strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b842352706101625">root_gb</strong>, or <strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b84235270610301">flavorid</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row87303017423"><td class="cellrowborder" valign="top" width="20.830000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p16663174412421">sort_dir</p>
</td>
<td class="cellrowborder" valign="top" width="20.39%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p104012441155">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.07%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p466510447425">String</p>
</td>
<td class="cellrowborder" valign="top" width="38.71%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p381417538211">Specifies the sorting of BMS flavors.</p>
<p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p19672104424217">The value can be <strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b114969111578">asc</strong> or <strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b6657414475">desc</strong>, and is <strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b1815251272">asc</strong> by default.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_section17499131393810"><h4 class="sectiontitle">Example Request</h4><ul id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_ul0896172616537"><li id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_li389682695311">Querying BMS flavors<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0000002374101029__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_0000002374101029__en-us_topic_0053158684_li9758634155617">Querying BMS flavors with the minimum disk of 3,725 GB<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0000002374101029__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></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_section36835188"><h4 class="sectiontitle">Response Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table23477058" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row2792905"><th align="left" class="cellrowborder" valign="top" width="23.94%" id="mcps1.3.6.2.1.4.1.1"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p151621239131213">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.09%" id="mcps1.3.6.2.1.4.1.2"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p17165183912124">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50.970000000000006%" id="mcps1.3.6.2.1.4.1.3"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p716920393129">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row9994955"><td class="cellrowborder" valign="top" width="23.94%" headers="mcps1.3.6.2.1.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p4284989">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="25.09%" headers="mcps1.3.6.2.1.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p62312200">Array of objects</p>
</td>
<td class="cellrowborder" valign="top" width="50.970000000000006%" headers="mcps1.3.6.2.1.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p60002101">Specifies <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text18472201045814">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text547221045820"></span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text20310171404010"></span> flavors. For details, see <a href="#EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table13194498">Table 3</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table13194498"></a><a name="en-us_topic_0053158684_table13194498"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table13194498" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b7889511854">flavors</strong> data structure</caption><thead align="left"><tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row35873632"><th align="left" class="cellrowborder" valign="top" width="24.22%" id="mcps1.3.6.3.2.4.1.1"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p1934639181313">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.46%" id="mcps1.3.6.3.2.4.1.2"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p1134716921317">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.32%" id="mcps1.3.6.3.2.4.1.3"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p535259131314">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row15349251"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p35329809">id</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p24536113173145">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p56261663">Specifies the <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text14927171275818">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text1927171245813"></span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text575171904019"></span> flavor ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row36592919"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p11236435">name</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p54383891173145">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p61525259">Specifies the <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text913422265820">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text12134172216588"></span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text14446239403"></span> flavor name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row16856419"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p23192694">vcpus</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p61992247173145">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p60827539">Specifies the number of CPU cores in the <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text771542415817">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text77151424115815"></span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text532272734015"></span> flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row3097644510336"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p3929432310349">ram</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p51423198173145">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p154673810349">Specifies the memory size (MB) in the <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text193481527175811">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text23482272589"></span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text327143224011"></span> flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row10576944"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p51426113">disk</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p31344710173145">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p19756352">Specifies the disk size (GB) in the <span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text495612955816">BMS</span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text1495610298587"></span><span id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_text19805173874010"></span> flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row56760689"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p34213098">swap</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p31087024173145">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p3906895110328">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row56925253"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p47542785">OS-FLV-EXT-DATA:ephemeral</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p18132829173145">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p2710719510328">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row44806966"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p5485596">OS-FLV-DISABLED:disabled</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p52585611173145">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p3113915110328">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row42184651"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p61513540">rxtx_factor</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p7527547173145">Float</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p1764564010328">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row51313205"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p62728917">os-flavor-access:is_public</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p43117912173145">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p3503996211722">This is a reserved attribute.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row2047803919452"><td class="cellrowborder" valign="top" width="24.22%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p6509154919455">links</p>
</td>
<td class="cellrowborder" valign="top" width="24.46%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p3792414219455">Array of objects</p>
</td>
<td class="cellrowborder" valign="top" width="51.32%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p6495712119455">Specifies shortcut links of the BMS flavor. For details, see <a href="#EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table15913898194628">Table 4</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table15913898194628"></a><a name="en-us_topic_0053158684_table15913898194628"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_table15913898194628" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_b4704240520">links</strong> data structure</caption><thead align="left"><tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row37608132194628"><th align="left" class="cellrowborder" valign="top" width="23.1%" id="mcps1.3.6.4.2.4.1.1"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p1387423241319">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.790000000000003%" id="mcps1.3.6.4.2.4.1.2"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p1487693221320">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.11%" id="mcps1.3.6.4.2.4.1.3"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p187911326136">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_row17692319194628"><td class="cellrowborder" valign="top" width="23.1%" headers="mcps1.3.6.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p23791739194628">rel</p>
</td>
<td class="cellrowborder" valign="top" width="25.790000000000003%" headers="mcps1.3.6.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p48082703194628">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.11%" headers="mcps1.3.6.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p2384900194628">Specifies the shortcut link marker name.</p>
<ul id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_ul207311644172510"><li id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_en-us_topic_0131326852_li1013032685313"><strong id="EN-US_TOPIC_0000002374101029__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_0000002374101029__en-us_topic_0053158684_en-us_topic_0131326852_li14448163219533"><strong id="EN-US_TOPIC_0000002374101029__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_0000002374101029__en-us_topic_0053158684_row21464106194628"><td class="cellrowborder" valign="top" width="23.1%" headers="mcps1.3.6.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p60871059194628">href</p>
</td>
<td class="cellrowborder" valign="top" width="25.790000000000003%" headers="mcps1.3.6.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p31608752194628">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.11%" headers="mcps1.3.6.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_p10172138194628">Specifies the corresponding shortcut link.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_section6807153353814"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="EN-US_TOPIC_0000002374101029__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>
</div>
<div class="section" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_section7610951"><h4 class="sectiontitle">Returned Values</h4><div class="p" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_en-us_topic_0106040941_p193201622141412">Normal values
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_en-us_topic_0106040941_table753804619176" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_en-us_topic_0106040941_row10735134615172"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.8.2.1.1.3.1.1"><p id="EN-US_TOPIC_0000002374101029__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.8.2.1.1.3.1.2"><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_en-us_topic_0106040941_p207355465176">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_en-us_topic_0106040941_row1473514621713"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.8.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0000002374101029__en-us_topic_0053158684_en-us_topic_0106040941_p13735144611178">200</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.8.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0000002374101029__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_0000002374101029__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_0000002374101029__en-us_topic_0053158684_section14752650154917"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002374101029__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_0000002340063032.html">BMS Flavor Query (OpenStack Nova APIs)</a></div>
</div>
</div>