doc-exports/docs/ecs/api-ref/en-us_topic_0110472767.html
Zaoxu, Li 4edaa4a4cc ECS API 20231016 version
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
2024-04-29 11:04:13 +00:00

351 lines
30 KiB
HTML

<a name="EN-US_TOPIC_0110472767"></a><a name="EN-US_TOPIC_0110472767"></a>
<h1 class="topictitle1">Querying the Target Flavors to Which an ECS Flavor Can Be Changed</h1>
<div id="body1525772708260"><div class="section" id="EN-US_TOPIC_0110472767__section57769674"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0110472767__p5421162518483">An ECS flavor cannot be changed to certain flavors. This API is used to query the target flavors to which a specified ECS flavor can be changed.</p>
</div>
<div class="section" id="EN-US_TOPIC_0110472767__section50165025"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0110472767__p2463042102520">GET /v2.1/{project_id}/resize_flavors?instance_uuid={instance_uuid}&amp;source_flavor_id={source_flavor_id}&amp;source_flavor_name={source_flavor_name}&amp;sort_key={sort_key}&amp;sort_dir={sort_dir}&amp;limit={limit}&amp;marker={marker}</p>
<div class="p" id="EN-US_TOPIC_0110472767__p3295154511562"><a href="#EN-US_TOPIC_0110472767__table46110007">Table 1</a> describes the parameters in the URI.
<div class="tablenoborder"><a name="EN-US_TOPIC_0110472767__table46110007"></a><a name="table46110007"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0110472767__table46110007" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0110472767__row14148614"><th align="left" class="cellrowborder" valign="top" width="16.61%" id="mcps1.3.2.3.2.2.4.1.1"><p id="EN-US_TOPIC_0110472767__p5187119">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.169999999999998%" id="mcps1.3.2.3.2.2.4.1.2"><p id="EN-US_TOPIC_0110472767__p17503500">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="66.22%" id="mcps1.3.2.3.2.2.4.1.3"><p id="EN-US_TOPIC_0110472767__p8497414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0110472767__row17201924"><td class="cellrowborder" valign="top" width="16.61%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p51178607">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p51826478">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="66.22%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p37593705">Specifies the project ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="note" id="EN-US_TOPIC_0110472767__note1068645414252"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0110472767__p18686454112513">One of the <strong id="EN-US_TOPIC_0110472767__b842352706142341">instance_uuid</strong>, <strong id="EN-US_TOPIC_0110472767__b842352706142347">source_flavor_id</strong>, and <strong id="EN-US_TOPIC_0110472767__b842352706142353">source_flavor_name</strong> parameters must be configured. If multiple parameters are configured, the system processes the <strong id="EN-US_TOPIC_0110472767__b282113926142913">instance_uuid</strong>, <strong id="EN-US_TOPIC_0110472767__b1480528780142913">source_flavor_id</strong>, and <strong id="EN-US_TOPIC_0110472767__b515565658142913">source_flavor_name</strong> parameters in descending order by default.</p>
</div></div>
<p id="EN-US_TOPIC_0110472767__p16654151065818"><a href="#EN-US_TOPIC_0110472767__table96861454162513">Table 2</a> describes the request parameters.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0110472767__table96861454162513"></a><a name="table96861454162513"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0110472767__table96861454162513" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0110472767__row4686754182515"><th align="left" class="cellrowborder" valign="top" width="18.408159184081594%" id="mcps1.3.5.2.5.1.1"><p id="EN-US_TOPIC_0110472767__p2686155416251">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.378262173782623%" id="mcps1.3.5.2.5.1.2"><p id="EN-US_TOPIC_0110472767__p11686854172518">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.318668133186684%" id="mcps1.3.5.2.5.1.3"><p id="EN-US_TOPIC_0110472767__p1668645412516">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50.89491050894911%" id="mcps1.3.5.2.5.1.4"><p id="EN-US_TOPIC_0110472767__p1686154162510">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0110472767__row156861454172514"><td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p19686105415251">instance_uuid</p>
</td>
<td class="cellrowborder" valign="top" width="17.378262173782623%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p176861554112516">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.318668133186684%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p176861154152518">String</p>
</td>
<td class="cellrowborder" valign="top" width="50.89491050894911%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p12686154172520">Specifies the ID, in UUID format, of the target ECS.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row7686175417253"><td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p1668610545258">source_flavor_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.378262173782623%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p1768685417258">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.318668133186684%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p1686145415256">String</p>
</td>
<td class="cellrowborder" valign="top" width="50.89491050894911%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p768685412514">Specifies the source flavor ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row168665411250"><td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p1368635492517">source_flavor_name</p>
</td>
<td class="cellrowborder" valign="top" width="17.378262173782623%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p1568675462510">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.318668133186684%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p126861554122516">String</p>
</td>
<td class="cellrowborder" valign="top" width="50.89491050894911%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p6686185411254">Specifies the source flavor name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row1668613546250"><td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p9686954172516">sort_key</p>
</td>
<td class="cellrowborder" valign="top" width="17.378262173782623%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p17686454182517">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.318668133186684%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p1068616548253">String</p>
</td>
<td class="cellrowborder" valign="top" width="50.89491050894911%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p022328104313">Indicates the field for sorting.</p>
<p id="EN-US_TOPIC_0110472767__p20288737204310">Options:</p>
<ul id="EN-US_TOPIC_0110472767__ul1373511215479"><li id="EN-US_TOPIC_0110472767__li1673552124714"><strong id="EN-US_TOPIC_0110472767__b84235270614334">flavorid</strong>: indicates the flavor ID. The default value is <strong id="EN-US_TOPIC_0110472767__b842352706201611">flavorid</strong>.</li><li id="EN-US_TOPIC_0110472767__li87350218470"><strong id="EN-US_TOPIC_0110472767__b842352706143324">name</strong>: indicates the flavor name.</li><li id="EN-US_TOPIC_0110472767__li07351121174719"><strong id="EN-US_TOPIC_0110472767__b842352706143338">memory_mb</strong>: indicates the memory size.</li><li id="EN-US_TOPIC_0110472767__li16735921134710"><strong id="EN-US_TOPIC_0110472767__b842352706143352">vcpus</strong>: indicates the number of vCPUs.</li><li id="EN-US_TOPIC_0110472767__li9735221104718"><strong id="EN-US_TOPIC_0110472767__b842352706143411">root_gb</strong>: indicates the system disk size.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row11686654102510"><td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p6686135416252">sort_dir</p>
</td>
<td class="cellrowborder" valign="top" width="17.378262173782623%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p2686135414252">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.318668133186684%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p126861854152511">String</p>
</td>
<td class="cellrowborder" valign="top" width="50.89491050894911%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p1913719444471">Specifies the ascending or descending sorting.</p>
<p id="EN-US_TOPIC_0110472767__p13472050164719">Options:</p>
<ul id="EN-US_TOPIC_0110472767__ul391512324817"><li id="EN-US_TOPIC_0110472767__li169151038486"><strong id="EN-US_TOPIC_0110472767__b84235270614353">asc</strong>: indicates the ascending order.</li><li id="EN-US_TOPIC_0110472767__li59150354818"><strong id="EN-US_TOPIC_0110472767__b842352706143516">desc</strong>: indicates the descending order.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row156862545252"><td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p8686185414256">limit</p>
</td>
<td class="cellrowborder" valign="top" width="17.378262173782623%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p17686654172514">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.318668133186684%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p16686175472510">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50.89491050894911%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p5411239124919">Specifies the maximum number of flavors that can be displayed on one page. The default value is <strong id="EN-US_TOPIC_0110472767__b842352706143626">1,000</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row16861354102515"><td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p768610546253">marker</p>
</td>
<td class="cellrowborder" valign="top" width="17.378262173782623%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p1668665492519">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.318668133186684%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p76861154122518">String</p>
</td>
<td class="cellrowborder" valign="top" width="50.89491050894911%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p262162112515">Uses the ID of the last flavor on one page as the paging marker.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="EN-US_TOPIC_0110472767__section55841319144411"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0110472767__p86861654112514">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0110472767__section36835188"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0110472767__p1158711166597"><a href="#EN-US_TOPIC_0110472767__table23477058">Table 3</a> describes the response parameters.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0110472767__table23477058"></a><a name="table23477058"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0110472767__table23477058" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0110472767__row2792905"><th align="left" class="cellrowborder" valign="top" width="22.35%" id="mcps1.3.7.3.2.4.1.1"><p id="EN-US_TOPIC_0110472767__p8834195805811">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="28.24%" id="mcps1.3.7.3.2.4.1.2"><p id="EN-US_TOPIC_0110472767__p284905812582">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.41%" id="mcps1.3.7.3.2.4.1.3"><p id="EN-US_TOPIC_0110472767__p28493585589">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0110472767__row9994955"><td class="cellrowborder" valign="top" width="22.35%" headers="mcps1.3.7.3.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p4284989">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="28.24%" headers="mcps1.3.7.3.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p62312200">Array of objects</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.7.3.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p60002101">Specifies ECS flavors.</p>
<p id="EN-US_TOPIC_0110472767__p49021850132819">For details, see <a href="#EN-US_TOPIC_0110472767__table68941918122818">Table 4</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0110472767__table68941918122818"></a><a name="table68941918122818"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0110472767__table68941918122818" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="EN-US_TOPIC_0110472767__b47464913514">flavors</strong> field description</caption><thead align="left"><tr id="EN-US_TOPIC_0110472767__row88943187284"><th align="left" class="cellrowborder" valign="top" width="22.62%" id="mcps1.3.7.4.2.4.1.1"><p id="EN-US_TOPIC_0110472767__p108926065917">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="28.57%" id="mcps1.3.7.4.2.4.1.2"><p id="EN-US_TOPIC_0110472767__p19909160135913">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48.809999999999995%" id="mcps1.3.7.4.2.4.1.3"><p id="EN-US_TOPIC_0110472767__p199092009598">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0110472767__row1389441822812"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p089461852819">id</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p1789461852816">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p19894121852814">Specifies the ECS flavor ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row1189421817287"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p1289413188280">name</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p9894151811283">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p2894191811289">Specifies the name of the ECS flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row18894161813288"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p11894191811283">vcpus</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p889481852810">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p10894181818285">Specifies the number of vCPUs in the ECS flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row1589411184288"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p188941182288">ram</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p489412187285">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p108941182280">Specifies the memory size (MB) in the ECS flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row1989491832819"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p14894131892814">disk</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p88942181287">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p138941018162812">Specifies the system disk size in the ECS flavor.</p>
<p id="EN-US_TOPIC_0110472767__p14894618102817">This parameter has not been used. Its default value is <strong id="EN-US_TOPIC_0110472767__b84235270611135">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row589416182281"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p2089421811281">swap</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p289411862819">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p1699362755013">Specifies the swap partition size required by the ECS flavor.</p>
<p id="EN-US_TOPIC_0110472767__p4563766173425">This parameter has not been used. Its default value is <strong id="EN-US_TOPIC_0110472767__b1143454861">""</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row158941218202818"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p18894918132812">OS-FLV-EXT-DATA:ephemeral</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p1894818152816">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p16591226713">Specifies the temporary disk size. This is an extended attribute.</p>
<p id="EN-US_TOPIC_0110472767__p073219456162">This parameter has not been used. Its default value is <strong id="EN-US_TOPIC_0110472767__b687696369">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row18948183284"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p88945189285">OS-FLV-DISABLED:disabled</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p208947181287">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p1689471812814">This is an extended attribute, specifying whether a flavor is available.</p>
<ul id="EN-US_TOPIC_0110472767__ul29747184223"><li id="EN-US_TOPIC_0110472767__li10974418112216"><strong id="EN-US_TOPIC_0110472767__b842352706162411">true</strong>: indicates that a flavor is available.</li><li id="EN-US_TOPIC_0110472767__li169747184228"><strong id="EN-US_TOPIC_0110472767__b842352706201847">false</strong>: indicates that a flavor is unavailable.</li></ul>
<div class="note" id="EN-US_TOPIC_0110472767__note1057718393114"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0110472767__p17577183913117">This parameter is not used.</p>
</div></div>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row9894141812811"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p989416188283">rxtx_factor</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p1289431810285">Float</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p1466112191228">This is an extended attribute.</p>
<div class="note" id="EN-US_TOPIC_0110472767__note18501922021"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0110472767__p1350117223210">This parameter is not used.</p>
</div></div>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row13357123218463"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p21606246173425">rxtx_quota</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p391327154610">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p3137170105719">Specifies the software constraints of the network bandwidth that can be used by the ECS.</p>
<p id="EN-US_TOPIC_0110472767__p16913177154619">This parameter has not been used. Its default value is <strong id="EN-US_TOPIC_0110472767__b1552514390">null</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row7639734144610"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p65053613173425">rxtx_cap</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p3914207184617">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p12914778466">Specifies the hardware constraints of the network bandwidth that can be used by the ECS.</p>
<p id="EN-US_TOPIC_0110472767__p1591467174617">This parameter has not been used. Its default value is <strong id="EN-US_TOPIC_0110472767__b1107854">null</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row158941918102811"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p18944183285">os-flavor-access:is_public</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p188942182287">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p8894218182818">Specifies whether a flavor is available to all tenants. This is an extended attribute.</p>
<ul id="EN-US_TOPIC_0110472767__ul1474014143815"><li id="EN-US_TOPIC_0110472767__li174051412817"><strong id="EN-US_TOPIC_0110472767__b84235270620200">true</strong>: indicates that a flavor is available to all tenants.</li><li id="EN-US_TOPIC_0110472767__li974011141783"><strong id="EN-US_TOPIC_0110472767__b871274437">false</strong>: indicates that a flavor is available only to certain tenants.</li></ul>
<p id="EN-US_TOPIC_0110472767__p35038271466">Default value: <strong id="EN-US_TOPIC_0110472767__b842352706202049">true</strong></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row13894418182817"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p158941018122818">links</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p1989491810284">Array of objects</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p589411814280">Specifies the shortcut link of the ECS flavor.</p>
<p id="EN-US_TOPIC_0110472767__p1020831644512">For details, see <a href="#EN-US_TOPIC_0110472767__table15913898194628">Table 5</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row1989417182289"><td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.7.4.2.4.1.1 "><p id="EN-US_TOPIC_0110472767__p14894151811285">extra_specs</p>
</td>
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.7.4.2.4.1.2 "><p id="EN-US_TOPIC_0110472767__p17894101822814">Array of objects</p>
</td>
<td class="cellrowborder" valign="top" width="48.809999999999995%" headers="mcps1.3.7.4.2.4.1.3 "><p id="EN-US_TOPIC_0110472767__p1164601842410">Specifies the extended field of the ECS specifications.</p>
<p id="EN-US_TOPIC_0110472767__p48941018132817">For details, see <a href="en-us_topic_0020212656.html#EN-US_TOPIC_0020212656__table59078165">Table 6</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0110472767__table15913898194628"></a><a name="table15913898194628"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0110472767__table15913898194628" frame="border" border="1" rules="all"><caption><b>Table 5 </b><strong id="EN-US_TOPIC_0110472767__b675814914515">links</strong> field description</caption><thead align="left"><tr id="EN-US_TOPIC_0110472767__row37608132194628"><th align="left" class="cellrowborder" valign="top" width="18.060000000000002%" id="mcps1.3.7.5.2.5.1.1"><p id="EN-US_TOPIC_0110472767__p10572055596">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.119999999999997%" id="mcps1.3.7.5.2.5.1.2"><p id="EN-US_TOPIC_0110472767__p2572145145920">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.469999999999999%" id="mcps1.3.7.5.2.5.1.3"><p id="EN-US_TOPIC_0110472767__p155721525912">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.349999999999994%" id="mcps1.3.7.5.2.5.1.4"><p id="EN-US_TOPIC_0110472767__p157216575917">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0110472767__row17692319194628"><td class="cellrowborder" valign="top" width="18.060000000000002%" headers="mcps1.3.7.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p23791739194628">rel</p>
</td>
<td class="cellrowborder" valign="top" width="17.119999999999997%" headers="mcps1.3.7.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p986727172810">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="13.469999999999999%" headers="mcps1.3.7.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p48082703194628">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.349999999999994%" headers="mcps1.3.7.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p2384900194628">Specifies the shortcut link marker name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row21464106194628"><td class="cellrowborder" valign="top" width="18.060000000000002%" headers="mcps1.3.7.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p60871059194628">href</p>
</td>
<td class="cellrowborder" valign="top" width="17.119999999999997%" headers="mcps1.3.7.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p208672782812">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="13.469999999999999%" headers="mcps1.3.7.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p31608752194628">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.349999999999994%" headers="mcps1.3.7.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p10172138194628">Specifies the shortcut link.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0110472767__row0172619474"><td class="cellrowborder" valign="top" width="18.060000000000002%" headers="mcps1.3.7.5.2.5.1.1 "><p id="EN-US_TOPIC_0110472767__p16018444171451">type</p>
</td>
<td class="cellrowborder" valign="top" width="17.119999999999997%" headers="mcps1.3.7.5.2.5.1.2 "><p id="EN-US_TOPIC_0110472767__p22425577171451">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="13.469999999999999%" headers="mcps1.3.7.5.2.5.1.3 "><p id="EN-US_TOPIC_0110472767__p838292134116">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.349999999999994%" headers="mcps1.3.7.5.2.5.1.4 "><p id="EN-US_TOPIC_0110472767__p10382152144115">Specifies the shortcut link type. This parameter has not been used. Its default value is <strong id="EN-US_TOPIC_0110472767__b84235270611582">null</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0110472767__section21941533132918"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0110472767__screen148461344125517">GET https://<em id="EN-US_TOPIC_0110472767__i5452131772714">{endpoint}</em>/v1/{project_id}/cloudservers/resize_flavors?source_flavor_id=c3.xlarge.2</pre>
</div>
<div class="section" id="EN-US_TOPIC_0110472767__section025391883814"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="EN-US_TOPIC_0110472767__screen927210181383">{
"flavors": [
{
"id": "c3.15xlarge.2",
"name": "c3.15xlarge.2",
"vcpus": "60",
"ram": 131072,
"disk": "0",
"swap": "",
"links": [
{
"rel": "self",
"href": "https://compute-ext.region.xxx.com/v1.0/743b4c0428d94531b9f2add666642e6b/flavors/c3.15xlarge.2",
"type": null
},
{
"rel": "bookmark",
"href": "https://compute-ext.region.xxx.com/743b4c0428d94531b9f2add666642e6b/flavors/c3.15xlarge.2",
"type": null
}
],
"OS-FLV-EXT-DATA:ephemeral": 0,
"rxtx_factor": 1,
"OS-FLV-DISABLED:disabled": false,
"rxtx_quota": null,
"rxtx_cap": null,
"os-flavor-access:is_public": true,
"extra_specs": {
"ecs:virtualization_env_types": "CloudCompute",
"ecs:generation": "c3",
"ecs:performancetype": "computingv3",
"resource_type": "IOoptimizedC3_2"
}
}
]
}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0110472767__en-us_topic_0092803065_en-us_topic_0020212692_section22960139"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0110472767__en-us_topic_0092803065_en-us_topic_0020212692_p23670760">See <a href="en-us_topic_0022067716.html">Returned Values for General Requests</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0110472767__en-us_topic_0092803065_en-us_topic_0067161469_en-us_topic_0057973179_section23611955"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0110472767__p20272163175210">See <a href="en-us_topic_0022067717.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0112708160.html">Flavor Management</a></div>
</div>
</div>