doc-exports/docs/modelarts/api-ref/modelarts_03_0072.html
Wuwan, Qi f81ead2467 ModelArts API 24.3.0 20241128 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
2024-11-29 09:04:54 +00:00

268 lines
20 KiB
HTML

<a name="EN-US_TOPIC_0000001909907424"></a><a name="EN-US_TOPIC_0000001909907424"></a>
<h1 class="topictitle1">Querying Job Resource Specifications</h1>
<div id="body1536923527739"><div class="section" id="EN-US_TOPIC_0000001909907424__section34424648"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001909907424__p11626845133420">This API is used to obtain the resource specifications of a specified job.</p>
<p id="EN-US_TOPIC_0000001909907424__p53495536">You must specify the resource specifications when creating a training job or an inference job.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001909907424__section41386382"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000001909907424__p1823155471512">GET /v1/{project_id}/job/resource-specs</p>
<div class="p" id="EN-US_TOPIC_0000001909907424__p20611155111341"><a href="#EN-US_TOPIC_0000001909907424__table5822680595335">Table 1</a> describes the required parameters.
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909907424__table5822680595335"></a><a name="table5822680595335"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909907424__table5822680595335" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909907424__row897995095335"><th align="left" class="cellrowborder" valign="top" width="15.831583158315832%" id="mcps1.3.2.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001909907424__p1836696595350">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.031503150315032%" id="mcps1.3.2.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001909907424__p1132916395350">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.97099709970997%" id="mcps1.3.2.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001909907424__p4524701095350">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59.16591659165916%" id="mcps1.3.2.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001909907424__p23681614151847">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909907424__row3219318495335"><td class="cellrowborder" valign="top" width="15.831583158315832%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001909907424__p384588295350">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="15.031503150315032%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001909907424__p4308099595350">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="9.97099709970997%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001909907424__p6700853295350">String</p>
</td>
<td class="cellrowborder" valign="top" width="59.16591659165916%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001909907424__p5898200695350">Project ID. For details about how to obtain a project ID, 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_0000001909907424__table2918868102420" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909907424__row46282814102420"><th align="left" class="cellrowborder" valign="top" width="15.75%" id="mcps1.3.2.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000001909907424__p58767362102449">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.129999999999999%" id="mcps1.3.2.3.3.2.5.1.2"><p id="EN-US_TOPIC_0000001909907424__p62535864102449">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.98%" id="mcps1.3.2.3.3.2.5.1.3"><p id="EN-US_TOPIC_0000001909907424__p32240260102449">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59.14%" id="mcps1.3.2.3.3.2.5.1.4"><p id="EN-US_TOPIC_0000001909907424__p05741440402">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909907424__row55399715102420"><td class="cellrowborder" valign="top" width="15.75%" headers="mcps1.3.2.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001909907424__p533920010715">job_type</p>
</td>
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.2.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001909907424__p1414513610711">No</p>
</td>
<td class="cellrowborder" valign="top" width="9.98%" headers="mcps1.3.2.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001909907424__p40637799102449">String</p>
</td>
<td class="cellrowborder" valign="top" width="59.14%" headers="mcps1.3.2.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001909907424__p3327413102449">Job type. The value can be <span class="parmvalue" id="EN-US_TOPIC_0000001909907424__parmvalue794651316511"><b>train</b></span> or <span class="parmvalue" id="EN-US_TOPIC_0000001909907424__parmvalue19518131255"><b>inference</b></span>. </p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row1614381011414"><td class="cellrowborder" valign="top" width="15.75%" headers="mcps1.3.2.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001909907424__p1114521081410">engine_id</p>
</td>
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.2.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001909907424__p2113111021612">No</p>
</td>
<td class="cellrowborder" valign="top" width="9.98%" headers="mcps1.3.2.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001909907424__p814621061417">Long</p>
</td>
<td class="cellrowborder" valign="top" width="59.14%" headers="mcps1.3.2.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001909907424__p1146210131415">Engine ID of a job. Default value: <span class="parmvalue" id="EN-US_TOPIC_0000001909907424__parmvalue9414230171315"><b>0</b></span> </p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row73168211233"><td class="cellrowborder" valign="top" width="15.75%" headers="mcps1.3.2.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001909907424__p63189272315">project_type</p>
</td>
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.2.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001909907424__p163181219237">No</p>
</td>
<td class="cellrowborder" valign="top" width="9.98%" headers="mcps1.3.2.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001909907424__p031822142319">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.14%" headers="mcps1.3.2.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001909907424__p11523162261614">Project type. Default value: <span class="parmvalue" id="EN-US_TOPIC_0000001909907424__parmvalue68544011131"><b>0</b></span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001909907424__section63962679"><h4 class="sectiontitle">Request Body</h4><p id="EN-US_TOPIC_0000001909907424__p19282124718373">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001909907424__section38793204"><h4 class="sectiontitle">Response Body</h4><div class="p" id="EN-US_TOPIC_0000001909907424__p1576551314393"><a href="#EN-US_TOPIC_0000001909907424__table1817887315129">Table 3</a> describes the response parameters.
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909907424__table1817887315129"></a><a name="table1817887315129"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909907424__table1817887315129" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909907424__row5217905515129"><th align="left" class="cellrowborder" valign="top" width="18.84%" id="mcps1.3.4.2.2.2.4.1.1"><p id="EN-US_TOPIC_0000001909907424__p65954056151223">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.12%" id="mcps1.3.4.2.2.2.4.1.2"><p id="EN-US_TOPIC_0000001909907424__p6611585151223">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="67.04%" id="mcps1.3.4.2.2.2.4.1.3"><p id="EN-US_TOPIC_0000001909907424__p39211947114013">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909907424__row1842568384"><td class="cellrowborder" valign="top" width="18.84%" headers="mcps1.3.4.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p2530905217407">is_success</p>
</td>
<td class="cellrowborder" valign="top" width="14.12%" headers="mcps1.3.4.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p2536505617407">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="67.04%" headers="mcps1.3.4.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p4130369517407">Whether the request is successful</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row1160975318137"><td class="cellrowborder" valign="top" width="18.84%" headers="mcps1.3.4.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p9611135361312">error_message</p>
</td>
<td class="cellrowborder" valign="top" width="14.12%" headers="mcps1.3.4.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p2611155341317">String</p>
</td>
<td class="cellrowborder" valign="top" width="67.04%" headers="mcps1.3.4.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p870773161410">Error message of a failed API call.</p>
<p id="EN-US_TOPIC_0000001909907424__p6710113111413">This parameter is not included when the API call succeeds.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row3401923515129"><td class="cellrowborder" valign="top" width="18.84%" headers="mcps1.3.4.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p36319657151223">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="14.12%" headers="mcps1.3.4.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p56806285151223">String</p>
</td>
<td class="cellrowborder" valign="top" width="67.04%" headers="mcps1.3.4.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p16691131714118">Error code of a failed API call. For details, see <a href="modelarts_03_0095.html">Error Codes</a>.</p>
<p id="EN-US_TOPIC_0000001909907424__p37906366151223">This parameter is not included when the API call succeeds.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row50513215129"><td class="cellrowborder" valign="top" width="18.84%" headers="mcps1.3.4.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p27825429151223">spec_total_count</p>
</td>
<td class="cellrowborder" valign="top" width="14.12%" headers="mcps1.3.4.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p26535650151223">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="67.04%" headers="mcps1.3.4.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p1904021151223">Total number of job resource specifications</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row774797715129"><td class="cellrowborder" valign="top" width="18.84%" headers="mcps1.3.4.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p45854132151223">specs</p>
</td>
<td class="cellrowborder" valign="top" width="14.12%" headers="mcps1.3.4.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p67037767151223"><strong id="EN-US_TOPIC_0000001909907424__b741095072419">specs</strong> array</p>
</td>
<td class="cellrowborder" valign="top" width="67.04%" headers="mcps1.3.4.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p61350067151223">List of resource specifications attributes. For details, see <a href="#EN-US_TOPIC_0000001909907424__table20408880151239">Table 4</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909907424__table20408880151239"></a><a name="table20408880151239"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909907424__table20408880151239" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="EN-US_TOPIC_0000001909907424__b1535671341519">specs</strong> parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909907424__row34638099151239"><th align="left" class="cellrowborder" valign="top" width="18.73%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000001909907424__p5292524615136">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.91%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0000001909907424__p5908657015136">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="67.36%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0000001909907424__p117085012401">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909907424__row50569044151239"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p5023512615136">spec_id</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p4251341115136">Long</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p2103428515136">ID of the resource specifications</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row26145567151239"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p3317304715136">core</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p266231115136">String</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p1432065615136">Number of cores of the resource specifications</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row30806096151239"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p3788438515136">cpu</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p4873631715136">String</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p5532763015136">CPU memory of the resource specifications</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row46564525151239"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p141571315136">gpu_num</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p4756394115136">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p2747397615136">Number of GPUs of the resource specifications</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row10645573151239"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p3008772815136">gpu_type</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p2118688415136">String</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p3841603715136">GPU type of the resource specifications</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row5353263151239"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p2089473115136">spec_code</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p1475169015136">String</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p5403627415136">Type of the resource specifications</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row44946762151239"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p6664965915136">max_num</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p2991332715136">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p706042315136">Maximum number of nodes that can be selected</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row17895142932714"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p1889515294275">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p889512914277">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p1889522917279">Number of pricing units</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row114950418149"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p1349711411147">storage</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p194979410146">String</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p191701723143315">SSD size of a resource flavor</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row146412412146"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p1164114417141">interface_type</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p064164171413">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p3641184114149">Interface type</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909907424__row77817418142"><td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909907424__p18781124117148">no_resource</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909907424__p14781104118141">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="67.36%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909907424__p1278194151412">Whether the resources of the selected specifications are sufficient. True indicates that no resource is available.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001909907424__section136871714386"><h4 class="sectiontitle">Sample Request</h4><p id="EN-US_TOPIC_0000001909907424__p172337271555">The following shows how to obtain the resource specifications of a training job.</p>
<pre class="screen" id="EN-US_TOPIC_0000001909907424__screen73784281671">GET https://endpoint/v1/{project_id}/job/resource-specs?job_type=train</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000001909907424__section810243711711"><h4 class="sectiontitle">Sample Response</h4><ul id="EN-US_TOPIC_0000001909907424__ul5848145011719"><li id="EN-US_TOPIC_0000001909907424__li198480501771">Successful response<pre class="screen" id="EN-US_TOPIC_0000001909907424__screen14848175011711">{
"specs": [
{
"spec_id": 2,
"core": "2",
"cpu": "8",
"gpu_num": 0,
"gpu_type": "",
"spec_code": "modelarts.vm.cpu.2u",
"unit_num": 1,
"max_num": 2,
"storage": "",
"interface_type": 1,
"no_resource": false
},
{
"spec_id": 4,
"core": "8",
"cpu": "64",
"gpu_num": 1,
"gpu_type": "v100",
"spec_code":"modelarts.vm.gpu.v100",
"unit_num": 1,
"max_num": 4,
"storage": "",
"interface_type": 1,
"no_resource": false
}
],
"is_success": true,
"spec_total_count": 2
}</pre>
</li><li id="EN-US_TOPIC_0000001909907424__li118498501274">Failed response<pre class="screen" id="EN-US_TOPIC_0000001909907424__screen138491450973">{
"is_success": false,
"error_message": "Error string",
"error_code": "ModelArts.0105"
}</pre>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001909907424__section16342114917109"><h4 class="sectiontitle">Status Code</h4><p id="EN-US_TOPIC_0000001909907424__p1731954913014">For details about the status code, see <a href="modelarts_03_0094.html#EN-US_TOPIC_0000001909907492__table1450010510213">Table 1</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="modelarts_03_0071.html">Resource and Engine Specifications</a></div>
</div>
</div>