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

456 lines
34 KiB
HTML

<a name="EN-US_TOPIC_0000002341058438"></a><a name="EN-US_TOPIC_0000002341058438"></a>
<h1 class="topictitle1">Obtaining the General Specifications Supported by a Training Job</h1>
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000002341058438__section493955517104"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002341058438__p7939655131019">This API is used to obtain the public flavors supported by a training job.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002341058438__section1393913552103"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002341058438__p15939145561012">GET /v2/{project_id}/training-job-flavors</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__table8940165511104" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row16939105561019"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0000002341058438__p1994012552106">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="EN-US_TOPIC_0000002341058438__p5940165510103">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="EN-US_TOPIC_0000002341058438__p6940145521020">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="EN-US_TOPIC_0000002341058438__p1994025561010">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row119408556101"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002341058438__p5940195518104">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002341058438__p1294055511020">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002341058438__p9940355141012">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002341058438__p159411555191013">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_0000002341058438__table39411554101" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row10941355101013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="EN-US_TOPIC_0000002341058438__p20941055141013">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="EN-US_TOPIC_0000002341058438__p3941135521019">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="EN-US_TOPIC_0000002341058438__p139411355131012">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="EN-US_TOPIC_0000002341058438__p59410554108">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row1694145531012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002341058438__p14941115519107">flavor_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002341058438__p1694245513104">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002341058438__p1794245518100">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002341058438__p7942255111014">This API is used to obtain training job flavors. If this parameter is not specified, all flavors will be obtained. Options:</p>
<ul id="EN-US_TOPIC_0000002341058438__ul394212552106"><li id="EN-US_TOPIC_0000002341058438__li1594213553102"><p id="EN-US_TOPIC_0000002341058438__p59421055191017"><a name="EN-US_TOPIC_0000002341058438__li1594213553102"></a><a name="li1594213553102"></a><strong id="EN-US_TOPIC_0000002341058438__b89421555201016">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002341058438__li694275518105"><p id="EN-US_TOPIC_0000002341058438__p394218553102"><a name="EN-US_TOPIC_0000002341058438__li694275518105"></a><a name="li694275518105"></a><strong id="EN-US_TOPIC_0000002341058438__b11942155161016">GPU</strong></p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002341058438__section12942195501014"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002341058438__p494215552107">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002341058438__section1394219555108"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002341058438__p129422551104"><strong id="EN-US_TOPIC_0000002341058438__b14942855111017">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_ListFlavors" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row12943195541010"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000002341058438__p1394310559104">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0000002341058438__p159439558108">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0000002341058438__p7943755181013">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row1394317559104"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p8943205515100">total_count</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p194325518106">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p19943055131013">Total number of resource flavors of a training job.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row12943165531018"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p149431556103">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p1494411559108">Array of <a href="#EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_FlavorResponse">FlavorResponse</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p19944125515106">List of resource flavors of a training job.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_FlavorResponse"></a><a name="en-us_topic_0000002091282833_response_FlavorResponse"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_FlavorResponse" frame="border" border="1" rules="all"><caption><b>Table 4 </b>FlavorResponse</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row1094465510104"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p id="EN-US_TOPIC_0000002341058438__p119451055131015">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p id="EN-US_TOPIC_0000002341058438__p39451655111012">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p id="EN-US_TOPIC_0000002341058438__p149454553107">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row1394445515108"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p16945185521010">flavor_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p1894514555105">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p994519554109">ID of the resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row29441655111010"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p139451355111014">flavor_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p1094595519101">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p179451055141017">Name of the resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row494485516105"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p18946155513106">max_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p694605518102">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p20946135531012">Maximum number of nodes in a resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row594413557104"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p2094620551107">flavor_type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p99461055181019">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p179461055201012">Resource flavor type. Options:</p>
<ul id="EN-US_TOPIC_0000002341058438__ul1494695531019"><li id="EN-US_TOPIC_0000002341058438__li8946185515102"><p id="EN-US_TOPIC_0000002341058438__p1894655581020"><a name="EN-US_TOPIC_0000002341058438__li8946185515102"></a><a name="li8946185515102"></a><strong id="EN-US_TOPIC_0000002341058438__b15946175514105">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002341058438__li1594615554102"><p id="EN-US_TOPIC_0000002341058438__p1394615531011"><a name="EN-US_TOPIC_0000002341058438__li1594615554102"></a><a name="li1594615554102"></a><strong id="EN-US_TOPIC_0000002341058438__b11947155161015">GPU</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row1094465531019"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p194725581019">billing</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p894717558107"><a href="#EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_BillingInfo">BillingInfo</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p1794745541010">Billing information of a resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row169441355141014"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p12947115510104">flavor_info</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p1994755551010"><a href="#EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_FlavorInfoResponse">FlavorInfoResponse</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p1294755518109">Resource flavor details.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row1894435510101"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p11948255111013">attributes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p1394865551017">Map&lt;String,String&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p7948175561011">Other specification attributes.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_BillingInfo"></a><a name="en-us_topic_0000002091282833_response_BillingInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_BillingInfo" frame="border" border="1" rules="all"><caption><b>Table 5 </b>BillingInfo</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row13948355141017"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="EN-US_TOPIC_0000002341058438__p12949125561013">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="EN-US_TOPIC_0000002341058438__p094945510106">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="EN-US_TOPIC_0000002341058438__p894919558106">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row694919554104"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p99501155101011">code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p169501555131010">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p1995019558105">Billing code.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row1494917555105"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p5950655201012">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p29500558103">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p19950255171019">Billing unit.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_FlavorInfoResponse"></a><a name="en-us_topic_0000002091282833_response_FlavorInfoResponse"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_FlavorInfoResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>FlavorInfoResponse</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row5951355121012"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.1"><p id="EN-US_TOPIC_0000002341058438__p19516559109">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.2"><p id="EN-US_TOPIC_0000002341058438__p1951185511104">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.6.2.4.1.3"><p id="EN-US_TOPIC_0000002341058438__p15951155531012">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row1095145515107"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p109522553109">max_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p895225581011">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p1395255517103">Maximum number of nodes that can be selected. The value <strong id="EN-US_TOPIC_0000002341058438__b1795218550107">1</strong> indicates that the distributed mode is not supported.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row1795111559108"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p39521755121017">cpu</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p7952855181018"><a href="#EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Cpu">Cpu</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p2952115531013">CPU specifications.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row9951145521017"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p69531755161010">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p189539556108"><a href="#EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Gpu">Gpu</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p1395385517104">GPU specifications.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row13951195581015"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p4953155581011">npu</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p19536557109"><a href="#EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Npu">Npu</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p495305517100">NPU specifications.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row18951855141020"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p3953115514101">memory</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p495316558100"><a href="#EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Memory">Memory</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p189531550105">Memory information.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row10951195541012"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p7954455181015">disk</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p13954105561010"><a href="#EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_DiskResponse">DiskResponse</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p7954455161010">Disk information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Cpu"></a><a name="en-us_topic_0000002091282833_response_Cpu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Cpu" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Cpu</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row15954185516103"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="EN-US_TOPIC_0000002341058438__p19955855121017">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="EN-US_TOPIC_0000002341058438__p1295518552103">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="EN-US_TOPIC_0000002341058438__p0955155519103">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row2954115511012"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p109551455201017">arch</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p15955255141017">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p18955855201014">CPU architecture.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row395465510105"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p19559555106">core_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p39561055111011">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p2956555131012">Number of cores.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Gpu"></a><a name="en-us_topic_0000002091282833_response_Gpu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Gpu" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Gpu</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row109562559104"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.1"><p id="EN-US_TOPIC_0000002341058438__p29571755171013">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.2"><p id="EN-US_TOPIC_0000002341058438__p99571655191015">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.8.2.4.1.3"><p id="EN-US_TOPIC_0000002341058438__p20957155561010">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row1295625518101"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p2095775551019">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p14957755151016">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p139571155201014">Number of GPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row11956355191017"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p1995755510109">product_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p9957155571018">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p1395795521018">Product name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row1795612552104"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p1195719556102">memory</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p0958205561019">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p159581055131012">Memory.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Npu"></a><a name="en-us_topic_0000002091282833_response_Npu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Npu" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Npu</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row11958175518109"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="EN-US_TOPIC_0000002341058438__p1195818556109">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="EN-US_TOPIC_0000002341058438__p109585556101">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="EN-US_TOPIC_0000002341058438__p5959145512106">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row5958145511016"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p79591755111016">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p10959135513109">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p199591055101020">Number of NPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row595845561013"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p1795935517105">product_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p99590555107">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p2959205511109">Product name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row179581555171012"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p209592055121017">memory</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p2959135571013">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p14959755131015">Memory.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Memory"></a><a name="en-us_topic_0000002091282833_response_Memory"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_Memory" frame="border" border="1" rules="all"><caption><b>Table 10 </b>Memory</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row19959255121012"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.1"><p id="EN-US_TOPIC_0000002341058438__p39602055121010">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.2"><p id="EN-US_TOPIC_0000002341058438__p12960165515105">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.10.2.4.1.3"><p id="EN-US_TOPIC_0000002341058438__p1896085521018">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row1696035511109"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p199607552104">size</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p139601555111018">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p1696055518105">Memory size.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row17960155541019"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p79605558106">unit</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p3962125515105">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p199628552102">Number of memory units.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_DiskResponse"></a><a name="en-us_topic_0000002091282833_response_DiskResponse"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_response_DiskResponse" frame="border" border="1" rules="all"><caption><b>Table 11 </b>DiskResponse</caption><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row896255512109"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.1"><p id="EN-US_TOPIC_0000002341058438__p19621155191010">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.2"><p id="EN-US_TOPIC_0000002341058438__p1996220559109">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.11.2.4.1.3"><p id="EN-US_TOPIC_0000002341058438__p3963855111015">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row19621855191012"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p209631255191010">size</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p1396395510103">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p16963655181012">Disk size.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002341058438__row149621855131013"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="EN-US_TOPIC_0000002341058438__p696305581019">unit</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="EN-US_TOPIC_0000002341058438__p5963185561010">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="EN-US_TOPIC_0000002341058438__p12963655171018">Unit of the disk size.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002341058438__section169641055191015"><h4 class="sectiontitle">Example Requests</h4><p id="EN-US_TOPIC_0000002341058438__p1396495571020">The following shows how to query the public CPU resource flavors of training jobs.</p>
<pre class="screen" id="EN-US_TOPIC_0000002341058438__screen696455501017">GET https://endpoint/v2/{project_id}/training-job-flavors?flavor_type=CPU</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002341058438__section14964105561019"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002341058438__p49644558104"><strong id="EN-US_TOPIC_0000002341058438__b169641555131012">Status code: 200</strong></p>
<p id="EN-US_TOPIC_0000002341058438__p159641553104">ok</p>
<pre class="screen" id="EN-US_TOPIC_0000002341058438__screen596525521016">{
"total_count" : 2,
"flavors" : [ {
"flavor_id" : "modelarts.vm.cpu.2u",
"flavor_name" : "Computing CPU(2U) instance",
"flavor_type" : "CPU",
"billing" : {
"code" : "modelarts.vm.cpu.2u",
"unit_num" : 1
},
"flavor_info" : {
"max_num" : 1,
"cpu" : {
"arch" : "x86",
"core_num" : 2
},
"memory" : {
"size" : 8,
"unit" : "GB"
},
"disk" : {
"size" : 50,
"unit" : "GB"
}
}
}, {
"flavor_id" : "modelarts.vm.cpu.8u",
"flavor_name" : "Computing CPU(8U) instance",
"flavor_type" : "CPU",
"billing" : {
"code" : "modelarts.vm.cpu.8u",
"unit_num" : 1
},
"flavor_info" : {
"max_num" : 16,
"cpu" : {
"arch" : "x86",
"core_num" : 8
},
"memory" : {
"size" : 32,
"unit" : "GB"
},
"disk" : {
"size" : 50,
"unit" : "GB"
}
}
} ]
}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002341058438__section152246560106"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058438__en-us_topic_0000002091282833_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002341058438__row196925521017"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="EN-US_TOPIC_0000002341058438__p17224856111019">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="EN-US_TOPIC_0000002341058438__p1122415610106">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002341058438__row5969145514106"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002341058438__p142241956161016">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002341058438__p16224656161012">ok</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002341058438__section19224195612108"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002341058438__p1522555631014">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="algorithms.html">Training Management</a></div>
</div>
</div>