Files
doc-exports/docs/modelarts/api-ref/ShowSwitchableFlavors.html
2025-05-09 10:22:58 +00:00

426 lines
31 KiB
HTML

<a name="EN-US_TOPIC_0000002233726934"></a><a name="EN-US_TOPIC_0000002233726934"></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_0000002233726934__section18467669380"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002233726934__p1146718615387">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_0000002233726934__section1346717610384"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002233726934__p64681665388">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726934__section9468196183819"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002233726934__p8468196143818">GET /v1/{project_id}/notebooks/{id}/flavors</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726934__table1346996193815" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002233726934__row19468661382"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000002233726934__p54697673811">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_0000002233726934__p94699643816">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_0000002233726934__p20469146153816">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_0000002233726934__p64694623815">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726934__row1546812613815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726934__p0469146133812">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726934__p204701168381">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726934__p174703653811">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726934__p164701365389">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_0000002233726934__row12469136113817"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726934__p747010610388">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_0000002233726934__p17470106203816">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726934__p947019614384">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726934__p204701665382">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_0000002233726934__table1047110615382" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002233726934__row4471106123815"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="EN-US_TOPIC_0000002233726934__p1847156153811">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_0000002233726934__p154714614384">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_0000002233726934__p2047110611385">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_0000002233726934__p1547211615382">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726934__row2471763385"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726934__p54721611387">limit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726934__p154722633819">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726934__p34721166381">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726934__p1747219613820">Number of records on each page. (No limit by default)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row24711061387"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726934__p84721467381">offset</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726934__p1547256183812">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726934__p6472106163811">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726934__p7472136183817">Start offset of the records on each page</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726934__section154721666384"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002233726934__p24724623813">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726934__section1347314612386"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002233726934__p114734603810"><strong id="EN-US_TOPIC_0000002233726934__b247306193818">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726934__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_0000002233726934__row447317623816"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0000002233726934__p10474106123819">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_0000002233726934__p8474364381">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_0000002233726934__p24741769386">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726934__row184731461385"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p1547412633818">current</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p104748683818">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p13474136143819">Current page</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row10473196183816"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p94743618387">data</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p34741467381">Array of <a href="#EN-US_TOPIC_0000002233726934__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_0000002233726934__p54743613382">Pagination data</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row1647310623819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p1847556183812">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p164752610387">Array of <a href="#EN-US_TOPIC_0000002233726934__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_0000002233726934__p14756673813">List of specifications that can be switched.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row104739693818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p94751168385">pages</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p134751673814">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p5475196193817">Total number of pages</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row14734673817"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p247515653817">size</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p17475156103814">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p1347517643814">Number of records on each page</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row5473360389"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p44752693820">total</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p3475106123811">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p347610616381">Total number of records</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002233726934__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_0000002233726934__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_0000002233726934__row124760613815"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.4.2.4.1.1"><p id="EN-US_TOPIC_0000002233726934__p44771060382">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_0000002233726934__p1947736113810">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_0000002233726934__p144771466389">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726934__row2476146113819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p34771569382">arch</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p164781673819">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p84786610385">Architecture type.</p>
<ul id="EN-US_TOPIC_0000002233726934__ul3478106143810"><li id="EN-US_TOPIC_0000002233726934__li64785633816"><p id="EN-US_TOPIC_0000002233726934__p1647856103813"><a name="EN-US_TOPIC_0000002233726934__li64785633816"></a><a name="li64785633816"></a><strong id="EN-US_TOPIC_0000002233726934__b1147816663814">X86_64</strong></p>
</li><li id="EN-US_TOPIC_0000002233726934__li204783683817"><p id="EN-US_TOPIC_0000002233726934__p134782623814"><a name="EN-US_TOPIC_0000002233726934__li204783683817"></a><a name="li204783683817"></a><strong id="EN-US_TOPIC_0000002233726934__b84783611387">AARCH64</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row147611619383"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p13478167382">billing</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p847976123812"><a href="#EN-US_TOPIC_0000002233726934__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_0000002233726934__p164790616389">CDR information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row74761965386"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p114791461385">category</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p8479176153819">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p1479568382">Processor type. Options:</p>
<ul id="EN-US_TOPIC_0000002233726934__ul11479968387"><li id="EN-US_TOPIC_0000002233726934__li447915614385"><p id="EN-US_TOPIC_0000002233726934__p94798617388"><a name="EN-US_TOPIC_0000002233726934__li447915614385"></a><a name="li447915614385"></a><strong id="EN-US_TOPIC_0000002233726934__b1647912615389">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002233726934__li247917663815"><p id="EN-US_TOPIC_0000002233726934__p1747910683819"><a name="EN-US_TOPIC_0000002233726934__li247917663815"></a><a name="li247917663815"></a><strong id="EN-US_TOPIC_0000002233726934__b1647956193818">GPU</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row13476765381"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p104795663817">description</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p13479568386">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p1547915693811">Specification description</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row1847614610382"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p54801962381">feature</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p1748016173816">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p1848019610384">Specification type. The options are as follows:</p>
<ul id="EN-US_TOPIC_0000002233726934__ul948014683815"><li id="EN-US_TOPIC_0000002233726934__li548015633818"><p id="EN-US_TOPIC_0000002233726934__p04801761382"><a name="EN-US_TOPIC_0000002233726934__li548015633818"></a><a name="li548015633818"></a>DEFAULT: CodeLab specification.</p>
</li><li id="EN-US_TOPIC_0000002233726934__li448006143817"><p id="EN-US_TOPIC_0000002233726934__p204801668387"><a name="EN-US_TOPIC_0000002233726934__li448006143817"></a><a name="li448006143817"></a>NOTEBOOK: Notebook specifications.</p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row3476146183811"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p1948015683816">free</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p15480116153815">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p648016614388">Specifies whether the flavor is free of charge.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row15477196163817"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p174806616387">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p44801561381"><a href="#EN-US_TOPIC_0000002233726934__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_0000002233726934__p184819613813">GPU information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row34778633819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p2481126173817">id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p1748136153814">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p194811965382">Flavor ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row1547726123815"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p648112683810">memory</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p17481186133813">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p548116193814">Memory size</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row1347713673813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p1248110618382">name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p9481264385">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p248215610381">Flavor name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row347746193820"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p1348219613382">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_0000002233726934__p124825615388">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p9482961383">Whether resources are sufficient.</p>
<ul id="EN-US_TOPIC_0000002233726934__ul7482186183815"><li id="EN-US_TOPIC_0000002233726934__li44821565382"><p id="EN-US_TOPIC_0000002233726934__p134821760386"><a name="EN-US_TOPIC_0000002233726934__li44821565382"></a><a name="li44821565382"></a><strong id="EN-US_TOPIC_0000002233726934__b948212623810">true</strong>: Resources are insufficient.</p>
</li><li id="EN-US_TOPIC_0000002233726934__li1548218619385"><p id="EN-US_TOPIC_0000002233726934__p148213615385"><a name="EN-US_TOPIC_0000002233726934__li1548218619385"></a><a name="li1548218619385"></a><strong id="EN-US_TOPIC_0000002233726934__b14482196153817">false</strong>: Resources are sufficient.</p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row1947736143816"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p1148212693817">storages</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p14482361389">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_0000002233726934__p8483760388">Storage type. Options:</p>
<ul id="EN-US_TOPIC_0000002233726934__ul20483196183815"><li id="EN-US_TOPIC_0000002233726934__li44838619386"><p id="EN-US_TOPIC_0000002233726934__p14836617388"><a name="EN-US_TOPIC_0000002233726934__li44838619386"></a><a name="li44838619386"></a><strong id="EN-US_TOPIC_0000002233726934__b154833683817">EFS</strong></p>
</li><li id="EN-US_TOPIC_0000002233726934__li448346143813"><p id="EN-US_TOPIC_0000002233726934__p04839617381"><a name="EN-US_TOPIC_0000002233726934__li448346143813"></a><a name="li448346143813"></a><strong id="EN-US_TOPIC_0000002233726934__b04831693817">EVS</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row447719611385"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p2483367384">vcpus</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p154832610388">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p18483468387">Number of vCPUs</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002233726934__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_0000002233726934__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_0000002233726934__row748513612381"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.5.2.4.1.1"><p id="EN-US_TOPIC_0000002233726934__p194869614381">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_0000002233726934__p1048666193811">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_0000002233726934__p348610615387">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726934__row14851164382"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p1148626153819">code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p0486166193812">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p194861966383">Billing code.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row104851673819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p64871667389">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_0000002233726934__p19487106123816">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p154877693817">Billing unit.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002233726934__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_0000002233726934__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_0000002233726934__row114876653818"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.6.2.4.1.1"><p id="EN-US_TOPIC_0000002233726934__p14883615384">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_0000002233726934__p04887616385">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_0000002233726934__p1248811615380">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726934__row10487196173815"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p748856143810">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p8488186183819">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p748876173817">Number of GPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row20487663381"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p148811620381">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_0000002233726934__p13488136153815">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p548986173810">GPU memory.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row948717633819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726934__p144891869386">type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726934__p1448916143818">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726934__p16489116153813">GPU type.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726934__section104891964389"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="EN-US_TOPIC_0000002233726934__screen8489136163816">GET https://{endpoint}/v1/{project_id}/notebooks/{id}/flavors</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726934__section15489163386"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002233726934__p1248918603812"><strong id="EN-US_TOPIC_0000002233726934__b1348916619387">Status code: 200</strong></p>
<p id="EN-US_TOPIC_0000002233726934__p1348912673812">OK</p>
<pre class="screen" id="EN-US_TOPIC_0000002233726934__screen2491176153812">{
"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" : "GPU",
"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" : "GPU",
"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_0000002233726934__section561414693813"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726934__en-us_topic_0000002055322410_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002233726934__row154981366389"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="EN-US_TOPIC_0000002233726934__p861426133812">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_0000002233726934__p1161416183817">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726934__row54981619384"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002233726934__p36143620384">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002233726934__p361410610386">OK</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row749896123816"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002233726934__p206141062388">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002233726934__p86141661387">Unauthorized</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row1249819615384"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002233726934__p11614169383">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002233726934__p861410612382">Forbidden</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726934__row1498669381"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002233726934__p16614365383">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002233726934__p861406143813">Not Found</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726934__section106148693813"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002233726934__p186145610383">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>