doc-exports/docs/modelarts/api-ref/ShowSwitchableFlavors.html
Lai, Weijian 2f0818cf3d ModelArts API 22.3.0 version-20240311
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-04-05 09:35:42 +00:00

333 lines
24 KiB
HTML

<a name="ShowSwitchableFlavors"></a><a name="ShowSwitchableFlavors"></a>
<h1 class="topictitle1">Querying Flavors Available for a Notebook Instance</h1>
<div id="body0000001321498257"><div class="section" id="ShowSwitchableFlavors__section056115019464"><h4 class="sectiontitle">Function</h4><p id="ShowSwitchableFlavors__p17603501466">This API is used to query the flavors available for a notebook instance.</p>
</div>
<div class="section" id="ShowSwitchableFlavors__section1164750104618"><h4 class="sectiontitle">Constraints</h4><p id="ShowSwitchableFlavors__p126810509460">None</p>
</div>
<div class="section" id="ShowSwitchableFlavors__section48125074613"><h4 class="sectiontitle">URI</h4><p id="ShowSwitchableFlavors__p18855504465">GET /v1/{project_id}/notebooks/{id}/flavors</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowSwitchableFlavors__table0935509468" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="ShowSwitchableFlavors__row178895094615"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="ShowSwitchableFlavors__p1296185019465">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="ShowSwitchableFlavors__p21001150204616">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="ShowSwitchableFlavors__p2010425012464">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="ShowSwitchableFlavors__p171077506467">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowSwitchableFlavors__row178945011463"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="ShowSwitchableFlavors__p71116501466">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="ShowSwitchableFlavors__p511514502467">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="ShowSwitchableFlavors__p171197507461">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="ShowSwitchableFlavors__p6123135015467">Notebook instance ID.</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row389165015467"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="ShowSwitchableFlavors__p4127185024610">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="ShowSwitchableFlavors__p13130150124619">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="ShowSwitchableFlavors__p313295014610">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="ShowSwitchableFlavors__p41371750164615">Project ID. For details, see <a href="modelarts_03_0147.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowSwitchableFlavors__section1141150134618"><h4 class="sectiontitle">Request Parameters</h4><p id="ShowSwitchableFlavors__p8144115019463">None</p>
</div>
<div class="section" id="ShowSwitchableFlavors__section7149135044618"><h4 class="sectiontitle">Response Parameters</h4><p id="ShowSwitchableFlavors__p4156205084617"><strong id="ShowSwitchableFlavors__b3158205024619">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowSwitchableFlavors__response_FlavorsResp" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response body parameters</caption><thead align="left"><tr id="ShowSwitchableFlavors__row13159350164611"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="ShowSwitchableFlavors__p14163250124617">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="ShowSwitchableFlavors__p1116795064617">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="ShowSwitchableFlavors__p1217025044619">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowSwitchableFlavors__row115985016469"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="ShowSwitchableFlavors__p6173650184620">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="ShowSwitchableFlavors__p12177450194620">Array of <a href="#ShowSwitchableFlavors__response_NotebookFlavor">NotebookFlavor</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="ShowSwitchableFlavors__p11181135024610">Flavor list</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ShowSwitchableFlavors__response_NotebookFlavor"></a><a name="response_NotebookFlavor"></a><table cellpadding="4" cellspacing="0" summary="" id="ShowSwitchableFlavors__response_NotebookFlavor" frame="border" border="1" rules="all"><caption><b>Table 3 </b>NotebookFlavor</caption><thead align="left"><tr id="ShowSwitchableFlavors__row11843506465"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.1"><p id="ShowSwitchableFlavors__p191901950124614">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.2"><p id="ShowSwitchableFlavors__p10193850164610">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.4.2.4.1.3"><p id="ShowSwitchableFlavors__p319520509462">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowSwitchableFlavors__row17184105011461"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p019817505467">arch</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p9201115004620">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p1206450104618">Architecture type. Options: - <strong id="ShowSwitchableFlavors__b15207185012469">X86_64</strong> - <strong id="ShowSwitchableFlavors__b1207165074611">AARCH64</strong></p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row918410508464"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p182091750184615">ascend</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p14212950184620"><a href="#ShowSwitchableFlavors__response_AscendInfo">AscendInfo</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p7216150174614">NPU information</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row2184195034616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p12191250114614">billing</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p62235503462"><a href="#ShowSwitchableFlavors__response_BillingInfo">BillingInfo</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p102261750134618">Billing information</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row111841550144618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p1423045017460">category</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p19233165074616">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p15238150174610">Processor type. Options: - <strong id="ShowSwitchableFlavors__b14239115044618">CPU</strong> - <strong id="ShowSwitchableFlavors__b1523915502461">GPU</strong> - <strong id="ShowSwitchableFlavors__b17239850184610">ASCEND</strong></p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row171841503466"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p3241155064617">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p15245550154616">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p5247185019463">Instance flavor description</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row618416507461"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p225116509465">feature</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p2025545044616">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p725910503460">Flavor category. Options: - <strong id="ShowSwitchableFlavors__b18260950134610">DEFAULT</strong>: CodeLab - <strong id="ShowSwitchableFlavors__b17260145074612">NOTEBOOK</strong>: Notebook</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row018412502468"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p20263195024614">free</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p1426795044611">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p20270950154618">Free flavor or not</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row3184450104617"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p11274185064614">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p16277350154615"><a href="#ShowSwitchableFlavors__response_GPUInfo">GPUInfo</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p18281125064619">GPU information</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row201842501461"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p112856502469">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p14288650134618">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p17291250154620">Flavor ID</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row121841506461"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p5294450114611">memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p5298155084612">Long</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p2030110509469">Memory size</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row6185115084617"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p4304750134616">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p23071950184618">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p1531155019464">Flavor name</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row1218575010469"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p2315125064613">sold_out</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p3318650124616">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p1595446105612">Whether the resources are sufficient. Options:</p>
<ul id="ShowSwitchableFlavors__ul114334918566"><li id="ShowSwitchableFlavors__li15726185345711"><strong id="ShowSwitchableFlavors__b8458091591">true</strong> indicates that the resources are insufficient.</li><li id="ShowSwitchableFlavors__li9143114955617"><strong id="ShowSwitchableFlavors__b638717253595">false</strong> indicates that the resources are sufficient.</li></ul>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row101851650154612"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p15326150174612">storages</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p333045014610">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p363455135515">Storage type supported by the flavor. Options:</p>
<ul id="ShowSwitchableFlavors__ul1411095810551"><li id="ShowSwitchableFlavors__li1650861115616"><strong id="ShowSwitchableFlavors__b250831135619">EVS</strong></li><li id="ShowSwitchableFlavors__li10110175805512"><strong id="ShowSwitchableFlavors__b43351507464">EFS</strong></li></ul>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row10185125019461"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ShowSwitchableFlavors__p15337165044616">vcpus</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ShowSwitchableFlavors__p13341650154615">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ShowSwitchableFlavors__p2345195019466">Number of vCPUs</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ShowSwitchableFlavors__response_AscendInfo"></a><a name="response_AscendInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="ShowSwitchableFlavors__response_AscendInfo" frame="border" border="1" rules="all"><caption><b>Table 4 </b>AscendInfo</caption><thead align="left"><tr id="ShowSwitchableFlavors__row434795084617"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="ShowSwitchableFlavors__p33534505464">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.2"><p id="ShowSwitchableFlavors__p16357145014460">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.5.2.4.1.3"><p id="ShowSwitchableFlavors__p63611450134614">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowSwitchableFlavors__row7347145034619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="ShowSwitchableFlavors__p6364450124618">npu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="ShowSwitchableFlavors__p1367105024611">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="ShowSwitchableFlavors__p17369115014467">Number of NPUs</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row4347105024620"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="ShowSwitchableFlavors__p1337325004611">npu_memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="ShowSwitchableFlavors__p537825064613">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="ShowSwitchableFlavors__p53810509468">NPU memory</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row334755084618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="ShowSwitchableFlavors__p838519506461">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="ShowSwitchableFlavors__p18388135018467">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="ShowSwitchableFlavors__p18391115014612">NPU type</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ShowSwitchableFlavors__response_BillingInfo"></a><a name="response_BillingInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="ShowSwitchableFlavors__response_BillingInfo" frame="border" border="1" rules="all"><caption><b>Table 5 </b>BillingInfo</caption><thead align="left"><tr id="ShowSwitchableFlavors__row7394115024611"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.1"><p id="ShowSwitchableFlavors__p339965017462">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.2"><p id="ShowSwitchableFlavors__p194029506464">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.6.2.4.1.3"><p id="ShowSwitchableFlavors__p34066501462">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowSwitchableFlavors__row1539435054616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="ShowSwitchableFlavors__p341095094619">code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="ShowSwitchableFlavors__p144134507465">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="ShowSwitchableFlavors__p11416250114618">Billing code</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row3394135094620"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="ShowSwitchableFlavors__p7419155010467">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="ShowSwitchableFlavors__p12422250154618">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="ShowSwitchableFlavors__p1042595074617">Billing unit</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ShowSwitchableFlavors__response_GPUInfo"></a><a name="response_GPUInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="ShowSwitchableFlavors__response_GPUInfo" frame="border" border="1" rules="all"><caption><b>Table 6 </b>GPUInfo</caption><thead align="left"><tr id="ShowSwitchableFlavors__row5428105020461"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.1"><p id="ShowSwitchableFlavors__p14434195094618">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.2"><p id="ShowSwitchableFlavors__p243975019461">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.7.2.4.1.3"><p id="ShowSwitchableFlavors__p184421250194617">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowSwitchableFlavors__row84288502468"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="ShowSwitchableFlavors__p544605034614">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="ShowSwitchableFlavors__p204498504461">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="ShowSwitchableFlavors__p1453185010466">Number of GPUs</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row7428115034616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="ShowSwitchableFlavors__p54571850154618">gpu_memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="ShowSwitchableFlavors__p3460450164612">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="ShowSwitchableFlavors__p104641350164619">GPU memory</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row204281950134616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="ShowSwitchableFlavors__p3468155004616">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="ShowSwitchableFlavors__p547110506464">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="ShowSwitchableFlavors__p9475155012464">GPU type</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowSwitchableFlavors__section747825017469"><h4 class="sectiontitle">Example Requests</h4><p id="ShowSwitchableFlavors__p848218507463">None</p>
</div>
<div class="section" id="ShowSwitchableFlavors__section1348617508463"><h4 class="sectiontitle">Example Responses</h4><p id="ShowSwitchableFlavors__p1491750104616"><strong id="ShowSwitchableFlavors__b749265084619">Status code: 200</strong></p>
<p id="ShowSwitchableFlavors__p349345020468">OK</p>
<pre class="screen" id="ShowSwitchableFlavors__screen11503145094613">{
"flavors" : [ {
"arch" : "X86_64",
"feature" : "NOTEBOOK",
"free" : false,
"storages" : [ "EFS" ],
"id" : "modelarts.vm.cpu.8u",
"category" : "CPU",
"vcpus" : 1,
"memory" : 1048576,
"name" : "CPU: 8<span style="color:#252B3A;">vCPUs</span> 32GB",
"description" : "General computing-plus Intel CPU specifications, ideal for compute-intensive applications.",
"billing" : {
"code" : "modelarts.vm.cpu.2u",
"unitNum" : 4
},
"sold_out" : false
} ]
}</pre>
</div>
<div class="section" id="ShowSwitchableFlavors__section955465011467"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowSwitchableFlavors__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="ShowSwitchableFlavors__row556055019467"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="ShowSwitchableFlavors__p1556305011464">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="ShowSwitchableFlavors__p956665015466">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowSwitchableFlavors__row16560850104617"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="ShowSwitchableFlavors__p3569165015462">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="ShowSwitchableFlavors__p145722506468">OK</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row20560650154618"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="ShowSwitchableFlavors__p5575125054618">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="ShowSwitchableFlavors__p17579185020462">Unauthorized</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row18560135015462"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="ShowSwitchableFlavors__p6582135011462">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="ShowSwitchableFlavors__p165857501467">Forbidden</p>
</td>
</tr>
<tr id="ShowSwitchableFlavors__row14560125015462"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="ShowSwitchableFlavors__p958815010466">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="ShowSwitchableFlavors__p2591250124614">Not Found</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowSwitchableFlavors__section5595195064610"><h4 class="sectiontitle">Error Codes</h4><p id="ShowSwitchableFlavors__p159935004618">See <a href="modelarts_03_0095.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="notebook.html">DevEnviron Instance Management</a></div>
</div>
</div>