Files
doc-exports/docs/modelarts/api-ref/ShowSwitchableFlavors.html
2025-07-28 12:24:54 +00:00

426 lines
31 KiB
HTML

<a name="EN-US_TOPIC_0000002374896589"></a><a name="EN-US_TOPIC_0000002374896589"></a>
<h1 class="topictitle1">Querying the List of Switchable Specifications Supported by Notebook Instances</h1>
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000002374896589__section9819113404814"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002374896589__p148201934114813">This API is used to query the list of flavors that can be switched during notebook instance creation.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002374896589__section118201734194819"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002374896589__p28206346482">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002374896589__section19821103474817"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002374896589__p12821113464812">GET /v1/{project_id}/notebooks/{id}/flavors</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374896589__table2082233444815" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002374896589__row1982173494810"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000002374896589__p118221534154815">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="EN-US_TOPIC_0000002374896589__p4822434144819">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="EN-US_TOPIC_0000002374896589__p16822534194819">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="EN-US_TOPIC_0000002374896589__p1823173474813">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374896589__row138211348485"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002374896589__p58231134154814">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002374896589__p10823133413485">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002374896589__p782323494819">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002374896589__p12823173416484">Notebook instance ID, which can be obtained by calling the API for querying the notebook instance list.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row9821034184815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002374896589__p18241234184814">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002374896589__p16824634124812">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1824934204811">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002374896589__p6824183416484">Project ID. For details, see <a href="modelarts_03_0147.html">Obtaining a Project ID and Name</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374896589__table148251034204814" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002374896589__row118251234164816"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="EN-US_TOPIC_0000002374896589__p208251334134815">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="EN-US_TOPIC_0000002374896589__p682617341483">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="EN-US_TOPIC_0000002374896589__p10826103419486">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="EN-US_TOPIC_0000002374896589__p178268348489">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374896589__row98251934184810"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002374896589__p19826143418487">limit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002374896589__p198261234154814">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1782623424817">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002374896589__p482743454813">Number of records on each page. (No limit by default)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row168253346480"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002374896589__p12827183415481">offset</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002374896589__p8827173417489">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002374896589__p158279344481">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002374896589__p16827234174810">Start offset of the records on each page</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002374896589__section1782893418483"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002374896589__p1182823420487">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002374896589__section118282346482"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002374896589__p1982873414487"><strong id="EN-US_TOPIC_0000002374896589__b1482814348488">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_FlavorListResponse" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002374896589__row682916344486"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0000002374896589__p783053474816">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.2"><p id="EN-US_TOPIC_0000002374896589__p1483110347480">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.3.2.4.1.3"><p id="EN-US_TOPIC_0000002374896589__p283103418485">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374896589__row1829163424812"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p10831193417487">current</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p6831173444818">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p98321334204813">Current page</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row1882920344481"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p178321334194815">data</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p9832133414816">Array of <a href="#EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_NotebookFlavor">NotebookFlavor</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p683310347487">Pagination data</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row1483015346488"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p883363414485">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p0833434124812">Array of <a href="#EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_NotebookFlavor">NotebookFlavor</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p11833113454814">List of specifications that can be switched.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row14830143416483"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p13833133454815">pages</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1834834154815">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1683411344483">Total number of pages</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row2083013419489"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p1834934144819">size</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p683463416487">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p88341334164811">Number of records on each page</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row12830183416484"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p5834234144817">total</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p2083512345483">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p108356346481">Total number of records</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_NotebookFlavor"></a><a name="en-us_topic_0000002055322410_response_NotebookFlavor"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_NotebookFlavor" frame="border" border="1" rules="all"><caption><b>Table 4 </b>NotebookFlavor</caption><thead align="left"><tr id="EN-US_TOPIC_0000002374896589__row48366343482"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.4.2.4.1.1"><p id="EN-US_TOPIC_0000002374896589__p12838534114818">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.4.2.4.1.2"><p id="EN-US_TOPIC_0000002374896589__p683803454815">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.4.2.4.1.3"><p id="EN-US_TOPIC_0000002374896589__p1683873416487">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374896589__row48361534184817"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p1283853494814">arch</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p17838133444820">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p17839634194814">Architecture type.</p>
<ul id="EN-US_TOPIC_0000002374896589__ul1683919349480"><li id="EN-US_TOPIC_0000002374896589__li183993416485"><p id="EN-US_TOPIC_0000002374896589__p7839183417481"><a name="EN-US_TOPIC_0000002374896589__li183993416485"></a><a name="li183993416485"></a><strong id="EN-US_TOPIC_0000002374896589__b08391334184814">X86_64</strong></p>
</li><li id="EN-US_TOPIC_0000002374896589__li16839103434819"><p id="EN-US_TOPIC_0000002374896589__p14839534194817"><a name="EN-US_TOPIC_0000002374896589__li16839103434819"></a><a name="li16839103434819"></a><strong id="EN-US_TOPIC_0000002374896589__b18394341482">AARCH64</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row16836234104817"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p11840534194820">billing</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p15840133444811"><a href="#EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_BillingInfo">BillingInfo</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p138401534104816">CDR information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row3836143411482"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p2841334104814">category</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p6841034104819">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1084163413488">Processor type. Options:</p>
<ul id="EN-US_TOPIC_0000002374896589__ul1484103413483"><li id="EN-US_TOPIC_0000002374896589__li1884123418485"><p id="EN-US_TOPIC_0000002374896589__p984173418486"><a name="EN-US_TOPIC_0000002374896589__li1884123418485"></a><a name="li1884123418485"></a><strong id="EN-US_TOPIC_0000002374896589__b1584123434810">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002374896589__li148411034134811"><p id="EN-US_TOPIC_0000002374896589__p1384193419485"><a name="EN-US_TOPIC_0000002374896589__li148411034134811"></a><a name="li148411034134811"></a><strong id="EN-US_TOPIC_0000002374896589__b188421734154810">GPU</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row9836934124814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p3842133413484">description</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1784213494810">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1384263494816">Specification description</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row15836234204812"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p1784233424815">feature</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1184213344486">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1384393412487">Specification type. The options are as follows:</p>
<ul id="EN-US_TOPIC_0000002374896589__ul7843434144817"><li id="EN-US_TOPIC_0000002374896589__li9843183415480"><p id="EN-US_TOPIC_0000002374896589__p2084353484810"><a name="EN-US_TOPIC_0000002374896589__li9843183415480"></a><a name="li9843183415480"></a>DEFAULT: CodeLab specification.</p>
</li><li id="EN-US_TOPIC_0000002374896589__li168431342485"><p id="EN-US_TOPIC_0000002374896589__p108431634114810"><a name="EN-US_TOPIC_0000002374896589__li168431342485"></a><a name="li168431342485"></a>NOTEBOOK: Notebook specifications.</p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row1836113414816"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p98439349482">free</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1084316347484">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1684403416481">Specifies whether the flavor is free of charge.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row6836734144814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p1784473420486">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1844934134813"><a href="#EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_GPUInfo">GPUInfo</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p3845113412489">GPU information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row19836193454815"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p5845133415480">id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p884520348481">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p13846193415483">Flavor ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row283618346484"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p18463348482">memory</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1846173454814">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p3846834134814">Memory size</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row78375347489"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p28461834134813">name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p6847143404811">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p2084793464812">Flavor name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row7837234174814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p5847133410481">sold_out</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1884712346486">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1884723417486">Whether resources are sufficient.</p>
<ul id="EN-US_TOPIC_0000002374896589__ul7848103424819"><li id="EN-US_TOPIC_0000002374896589__li19848934184815"><p id="EN-US_TOPIC_0000002374896589__p198481434114812"><a name="EN-US_TOPIC_0000002374896589__li19848934184815"></a><a name="li19848934184815"></a><strong id="EN-US_TOPIC_0000002374896589__b384813474811">true</strong>: Resources are insufficient.</p>
</li><li id="EN-US_TOPIC_0000002374896589__li1584873415485"><p id="EN-US_TOPIC_0000002374896589__p684843494814"><a name="EN-US_TOPIC_0000002374896589__li1584873415485"></a><a name="li1584873415485"></a><strong id="EN-US_TOPIC_0000002374896589__b1849173464818">false</strong>: Resources are sufficient.</p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row1383718347487"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p11849234184814">storages</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p384903411485">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p88500340488">Storage type. Options:</p>
<ul id="EN-US_TOPIC_0000002374896589__ul885012347480"><li id="EN-US_TOPIC_0000002374896589__li885053444810"><p id="EN-US_TOPIC_0000002374896589__p1850234124816"><a name="EN-US_TOPIC_0000002374896589__li885053444810"></a><a name="li885053444810"></a><strong id="EN-US_TOPIC_0000002374896589__b28501734154814">EFS</strong></p>
</li><li id="EN-US_TOPIC_0000002374896589__li285012348487"><p id="EN-US_TOPIC_0000002374896589__p17850183494811"><a name="EN-US_TOPIC_0000002374896589__li285012348487"></a><a name="li285012348487"></a><strong id="EN-US_TOPIC_0000002374896589__b138501934124812">EVS</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row10837103414483"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p17851103464819">vcpus</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1885193415488">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1085193415489">Number of vCPUs</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_BillingInfo"></a><a name="en-us_topic_0000002055322410_response_BillingInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_BillingInfo" frame="border" border="1" rules="all"><caption><b>Table 5 </b>BillingInfo</caption><thead align="left"><tr id="EN-US_TOPIC_0000002374896589__row9856193416488"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.5.2.4.1.1"><p id="EN-US_TOPIC_0000002374896589__p19857193484814">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.5.2.4.1.2"><p id="EN-US_TOPIC_0000002374896589__p5857734184817">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.5.2.4.1.3"><p id="EN-US_TOPIC_0000002374896589__p1085773419486">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374896589__row68561345486"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p168575345488">code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p5857134174811">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p17858434184810">Billing code.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row28560344489"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p8858143410488">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p185823420484">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p1785815346482">Billing unit.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_GPUInfo"></a><a name="en-us_topic_0000002055322410_response_GPUInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_response_GPUInfo" frame="border" border="1" rules="all"><caption><b>Table 6 </b>GPUInfo</caption><thead align="left"><tr id="EN-US_TOPIC_0000002374896589__row18859834144816"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.6.2.4.1.1"><p id="EN-US_TOPIC_0000002374896589__p1586073474815">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.6.2.4.1.2"><p id="EN-US_TOPIC_0000002374896589__p108603346481">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.6.2.4.1.3"><p id="EN-US_TOPIC_0000002374896589__p3861113418481">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374896589__row1859834184820"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p6861123410486">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p58611343487">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p48621634174817">Number of GPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row1185933418487"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p3862934144818">gpu_memory</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p8862153444810">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p4862173434814">GPU memory.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row15859173412489"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002374896589__p686313414486">type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002374896589__p14863113413486">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002374896589__p586373412486">GPU type.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002374896589__section2864734144816"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="EN-US_TOPIC_0000002374896589__screen5864534114817">GET https://{endpoint}/v1/{project_id}/notebooks/{id}/flavors</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002374896589__section0864173417488"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002374896589__p1864834194810"><strong id="EN-US_TOPIC_0000002374896589__b086416341483">Status code: 200</strong></p>
<p id="EN-US_TOPIC_0000002374896589__p28641534194812">OK</p>
<pre class="screen" id="EN-US_TOPIC_0000002374896589__screen13868034154817">{
"current" : 1,
"data" : [ {
"arch" : "aarch64",
"billing" : {
"code" : "modelarts.kat1.xlarge",
"unit_num" : 2
},
"category" : "CPU",
"description" : "The specification is suitable for deep learning code running and debugging",
"feature" : "NOTEBOOK",
"free" : false,
"id" : "modelarts.bm.snt9.xlarge.2",
"memory" : 201326592,
"name" : "CPU: 48vCPUs 192GB",
"sold_out" : false,
"storages" : [ "EFS" ],
"vcpus" : 48
}, {
"arch" : "aarch64",
"billing" : {
"code" : "modelarts.kat1.8xlarge",
"unit_num" : 1
},
"category" : "CPU",
"description" : "The specification is suitable for deep learning code running and debugging",
"feature" : "NOTEBOOK",
"free" : false,
"id" : "modelarts.bm.snt9.xlarge.8",
"memory" : 805306368,
"name" : "CPU: 192vCPUs 768GB",
"sold_out" : false,
"storages" : [ "EFS" ],
"vcpus" : 192
} ],
"flavors" : [ {
"arch" : "aarch64",
"billing" : {
"code" : "modelarts.kat1.xlarge",
"unit_num" : 2
},
"category" : "CPU",
"description" : "The specification is suitable for deep learning code running and debugging",
"feature" : "NOTEBOOK",
"free" : false,
"id" : "modelarts.bm.snt9.xlarge.2",
"memory" : 201326592,
"name" : "CPU: 48vCPUs 192GB",
"sold_out" : false,
"storages" : [ "EFS" ],
"vcpus" : 48
}, {
"arch" : "aarch64",
"billing" : {
"code" : "modelarts.kat1.8xlarge",
"unit_num" : 1
},
"category" : "CPU",
"description" : "The specification is suitable for deep learning code running and debugging",
"feature" : "NOTEBOOK",
"free" : false,
"id" : "modelarts.bm.snt9.xlarge.8",
"memory" : 805306368,
"name" : "CPU: 192vCPUs 768GB",
"sold_out" : false,
"storages" : [ "EFS" ],
"vcpus" : 192
} ],
"pages" : 1,
"size" : 2,
"total" : 2
}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002374896589__section1311173534811"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002374896589__en-us_topic_0000002055322410_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002374896589__row15878143415484"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="EN-US_TOPIC_0000002374896589__p1011163514485">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="EN-US_TOPIC_0000002374896589__p412835124817">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002374896589__row6878183416483"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002374896589__p1612163534810">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002374896589__p171220356486">OK</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row387816346485"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002374896589__p1912173510480">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1612235144813">Unauthorized</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row487812347488"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002374896589__p20121358488">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002374896589__p1312133513484">Forbidden</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002374896589__row1787843410489"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002374896589__p121233524817">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002374896589__p912035154815">Not Found</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002374896589__section191253519480"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002374896589__p151223517483">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">Development Environment Management</a></div>
</div>
</div>