forked from docs/doc-exports
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>
300 lines
28 KiB
HTML
300 lines
28 KiB
HTML
<a name="EN-US_TOPIC_0000002268726181"></a><a name="EN-US_TOPIC_0000002268726181"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining Details of an Image</h1>
|
|
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000002268726181__section0563628164311"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002268726181__p165651228144320">Obtain the details of an image.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726181__section125656285438"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002268726181__p7566828144320">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726181__section95681628194318"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002268726181__p16569132824312">GET /v1/{project_id}/images/{id}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726181__table1557132874313" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726181__row756912854317"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000002268726181__p1357114284436">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_0000002268726181__p16572172894312">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_0000002268726181__p155721528154311">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_0000002268726181__p3573132817431">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726181__row857012818435"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726181__p1057332874318">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726181__p8574162818439">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726181__p6574528164312">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726181__p175759280438">Image ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row1570202854314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726181__p1576428134316">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_0000002268726181__p757632819436">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726181__p16577128204316">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726181__p85777282432">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>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726181__section1957832874314"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002268726181__p15579112811431">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726181__section557982817434"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002268726181__p1858022884310"><strong id="EN-US_TOPIC_0000002268726181__b1580728174317">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726181__en-us_topic_0000002055322422_response_Image" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726181__row17581152864314"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0000002268726181__p75851828204315">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_0000002268726181__p1958682844319">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_0000002268726181__p35871728194314">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726181__row758152811432"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p058852854318">arch</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p1058912283432">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p558911287435">Processor architecture supported by the image. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726181__ul859012884317"><li id="EN-US_TOPIC_0000002268726181__li6590528194311"><p id="EN-US_TOPIC_0000002268726181__p11590152820437"><a name="EN-US_TOPIC_0000002268726181__li6590528194311"></a><a name="li6590528194311"></a><strong id="EN-US_TOPIC_0000002268726181__b859192814435">X86_64</strong>: x86 architecture</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li20591112884319"><p id="EN-US_TOPIC_0000002268726181__p1359119284431"><a name="EN-US_TOPIC_0000002268726181__li20591112884319"></a><a name="li20591112884319"></a><strong id="EN-US_TOPIC_0000002268726181__b1959114288436">AARCH64</strong>: Arm architecture</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row758182884310"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p105922028194310">create_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p14592172874311">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p859314289434">Specifies the time (UTC ms) when the image is created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row105821285437"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p155931286432">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p115943287430">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p35945283432">Image description with a maximum of 512 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row1758212289436"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p3595628174315">dev_services</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p2059642834319">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p1059662817438">Services supported by the image. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726181__ul17597028144318"><li id="EN-US_TOPIC_0000002268726181__li17598112814432"><p id="EN-US_TOPIC_0000002268726181__p7598112812433"><a name="EN-US_TOPIC_0000002268726181__li17598112814432"></a><a name="li17598112814432"></a><strong id="EN-US_TOPIC_0000002268726181__b15985286436">NOTEBOOK</strong>: You can access a notebook instance using HTTPS.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li959910289431"><p id="EN-US_TOPIC_0000002268726181__p13599142834315"><a name="EN-US_TOPIC_0000002268726181__li959910289431"></a><a name="li959910289431"></a><strong id="EN-US_TOPIC_0000002268726181__b15599172820431">SSH</strong>: You can remotely access a notebook instance from a local IDE through SSH.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row35827282430"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p860022814436">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p86001228184313">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p0601128174317">Specifies the image ID of the notebook instance to be created. The image ID is in the Universally Unique Identifier (UUID) format. For details about how to obtain the ID of a preset image, see ListImage.xml.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row558242824312"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p19601182874319">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p7602182815436">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p11602132810438">Image name, which contains a maximum of 512 characters, including lowercase letters, digits, hyphens (-), underscores (_), and periods (.)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row3582128114315"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p3603152874311">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p7603162864314">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p5604132819430">Organization to which the image belongs. You can create and view the organization on the <strong id="EN-US_TOPIC_0000002268726181__b1460452864314">Organization Management</strong> page of the SWR console.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row165821728204316"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p26052281431">origin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p1860552894314">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p660622854316">Image source, which defaults to <strong id="EN-US_TOPIC_0000002268726181__b16066286439">CUSTOMIZE</strong>. This parameter is optional. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726181__ul1060632816433"><li id="EN-US_TOPIC_0000002268726181__li1160718282437"><p id="EN-US_TOPIC_0000002268726181__p17607728194313"><a name="EN-US_TOPIC_0000002268726181__li1160718282437"></a><a name="li1160718282437"></a><strong id="EN-US_TOPIC_0000002268726181__b660713289433">CUSTOMIZE</strong>: custom image</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li1060782810432"><p id="EN-US_TOPIC_0000002268726181__p19607128174312"><a name="EN-US_TOPIC_0000002268726181__li1060782810432"></a><a name="li1060782810432"></a><strong id="EN-US_TOPIC_0000002268726181__b17608112894317">IMAGE_SAVE</strong>: image saved by a notebook instance</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row1058282874318"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p86083285439">resource_categories</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p66091428104311">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p6609102811432">Flavors supported by the image. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726181__ul1961015286435"><li id="EN-US_TOPIC_0000002268726181__li12610112818434"><p id="EN-US_TOPIC_0000002268726181__p19610428204312"><a name="EN-US_TOPIC_0000002268726181__li12610112818434"></a><a name="li12610112818434"></a><strong id="EN-US_TOPIC_0000002268726181__b6610172819431">CPU</strong></p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li8610228144310"><p id="EN-US_TOPIC_0000002268726181__p2611162814318"><a name="EN-US_TOPIC_0000002268726181__li8610228144310"></a><a name="li8610228144310"></a><strong id="EN-US_TOPIC_0000002268726181__b17611428124319">GPU</strong></p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row16582182814318"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p166111528114318">service_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p26121028144311">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p156121828194314">Supported image types. Options:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726181__ul1761310284439"><li id="EN-US_TOPIC_0000002268726181__li10613112804319"><p id="EN-US_TOPIC_0000002268726181__p561314289439"><a name="EN-US_TOPIC_0000002268726181__li10613112804319"></a><a name="li10613112804319"></a><strong id="EN-US_TOPIC_0000002268726181__b96131028204319">COMMON</strong>: common image</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li17614528104312"><p id="EN-US_TOPIC_0000002268726181__p1061482815435"><a name="EN-US_TOPIC_0000002268726181__li17614528104312"></a><a name="li17614528104312"></a><strong id="EN-US_TOPIC_0000002268726181__b15614152818435">INFERENCE</strong>: image used for inference</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li1861512894318"><p id="EN-US_TOPIC_0000002268726181__p1061520282435"><a name="EN-US_TOPIC_0000002268726181__li1861512894318"></a><a name="li1861512894318"></a>TRAIN: image used for training</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li13616102819433"><p id="EN-US_TOPIC_0000002268726181__p1561642811434"><a name="EN-US_TOPIC_0000002268726181__li13616102819433"></a><a name="li13616102819433"></a>DEV: image used for development and debugging</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li561615287430"><p id="EN-US_TOPIC_0000002268726181__p6617132816439"><a name="EN-US_TOPIC_0000002268726181__li561615287430"></a><a name="li561615287430"></a>UNKNOWN: image whose supported services are not specified</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row7582122844312"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p11617122812434">size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p661832812438">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p16618142824319">Specifies the image size, in KB.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row1858272834312"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p176191628184315">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p1461913282439">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p116201628174319">Image status. Options:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726181__ul106211128134319"><li id="EN-US_TOPIC_0000002268726181__li16621828164310"><p id="EN-US_TOPIC_0000002268726181__p186211528164317"><a name="EN-US_TOPIC_0000002268726181__li16621828164310"></a><a name="li16621828164310"></a><strong id="EN-US_TOPIC_0000002268726181__b12621152811439">INIT</strong>: The image is being initialized.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li1262119286434"><p id="EN-US_TOPIC_0000002268726181__p26221282437"><a name="EN-US_TOPIC_0000002268726181__li1262119286434"></a><a name="li1262119286434"></a><strong id="EN-US_TOPIC_0000002268726181__b20622152815435">CREATING</strong>: The image is being saved. In this case, the notebook instance is unavailable.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li5622112844315"><p id="EN-US_TOPIC_0000002268726181__p1562210287436"><a name="EN-US_TOPIC_0000002268726181__li5622112844315"></a><a name="li5622112844315"></a><strong id="EN-US_TOPIC_0000002268726181__b662319285431">CREATE_FAILED</strong>: Saving the image failed.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li196231286439"><p id="EN-US_TOPIC_0000002268726181__p1623142817433"><a name="EN-US_TOPIC_0000002268726181__li196231286439"></a><a name="li196231286439"></a><strong id="EN-US_TOPIC_0000002268726181__b4623128204310">ERROR</strong>: An error occurs.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li106231028144319"><p id="EN-US_TOPIC_0000002268726181__p6624172814434"><a name="EN-US_TOPIC_0000002268726181__li106231028144319"></a><a name="li106231028144319"></a><strong id="EN-US_TOPIC_0000002268726181__b1262492817435">DELETED</strong>: The image has been deleted.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li1562442817431"><p id="EN-US_TOPIC_0000002268726181__p362420289438"><a name="EN-US_TOPIC_0000002268726181__li1562442817431"></a><a name="li1562442817431"></a><strong id="EN-US_TOPIC_0000002268726181__b1362402854319">ACTIVE</strong>: The image has been saved, which you can view on the SWR console and use to create notebook instances.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row4582192816436"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p36251628134318">status_message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p26251028144312">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p662652819438">Build information during image saving</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row5583192824316"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p3626122815435">support_res_categories</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p1362782884317">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p116281328104311">Flavors supported by the image. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726181__ul10628182824314"><li id="EN-US_TOPIC_0000002268726181__li20628192810432"><p id="EN-US_TOPIC_0000002268726181__p962819286434"><a name="EN-US_TOPIC_0000002268726181__li20628192810432"></a><a name="li20628192810432"></a><strong id="EN-US_TOPIC_0000002268726181__b126291428134315">CPU</strong></p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li662910282434"><p id="EN-US_TOPIC_0000002268726181__p206299283431"><a name="EN-US_TOPIC_0000002268726181__li662910282434"></a><a name="li662910282434"></a><strong id="EN-US_TOPIC_0000002268726181__b10629528174318">GPU</strong></p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row165831287438"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p2063072824311">swr_path</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p10630192874318">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p6631728144319">SWR image address</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row458362819437"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p14632112812436">tag</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p12632828104315">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p18633192811435">Image tag</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row10583102820433"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p10634182864315">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p96341028194320">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p8635132834320">Image type. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726181__ul9635028134316"><li id="EN-US_TOPIC_0000002268726181__li763552884310"><p id="EN-US_TOPIC_0000002268726181__p17636162824318"><a name="EN-US_TOPIC_0000002268726181__li763552884310"></a><a name="li763552884310"></a><strong id="EN-US_TOPIC_0000002268726181__b5636428154317">BUILD_IN</strong>: built-in system image</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li16360287438"><p id="EN-US_TOPIC_0000002268726181__p1263642810439"><a name="EN-US_TOPIC_0000002268726181__li16360287438"></a><a name="li16360287438"></a><strong id="EN-US_TOPIC_0000002268726181__b263614289434">DEDICATED</strong>: image you have saved</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row958372834318"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p156377281435">update_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p8637182834313">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p363822844310">Specifies the time (UTC ms) when the image was last updated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row1558342844318"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p8638528154313">visibility</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p86391828144315">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p1963912283435">Image visibility. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726181__ul156406288432"><li id="EN-US_TOPIC_0000002268726181__li4640728164317"><p id="EN-US_TOPIC_0000002268726181__p156403283433"><a name="EN-US_TOPIC_0000002268726181__li4640728164317"></a><a name="li4640728164317"></a><strong id="EN-US_TOPIC_0000002268726181__b86411228124311">PRIVATE</strong>: private image</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726181__li13641728184315"><p id="EN-US_TOPIC_0000002268726181__p2641128134318"><a name="EN-US_TOPIC_0000002268726181__li13641728184315"></a><a name="li13641728184315"></a><strong id="EN-US_TOPIC_0000002268726181__b164114287438">PUBLIC</strong>: All users can perform read-only operations based on the image ID.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row185834289436"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p176421628114318">workspace_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p9642152810437">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p364319288434">Workspace ID. If no workspaces are available, the default value is <strong id="EN-US_TOPIC_0000002268726181__b3643152810437">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row25839286433"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726181__p964311285434">flavor_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726181__p166441628124318">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726181__p5645172844316">Image resource type.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726181__section126487285431"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="EN-US_TOPIC_0000002268726181__screen164992834314">GET https://{endpoint}/v1/{project_id}/images/{id}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726181__section136504283437"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002268726181__p10650528124312"><strong id="EN-US_TOPIC_0000002268726181__b2650132812432">Status code: 200</strong></p>
|
|
<p id="EN-US_TOPIC_0000002268726181__p1651122816435">OK</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000002268726181__screen1065252864320">{
|
|
"arch" : "x86_64",
|
|
"create_at" : 1638234504492,
|
|
"description" : "CPU and GPU general algorithm development and training, preconfigured with AI engine PyTorch1.8",
|
|
"dev_services" : [ "NOTEBOOK", "SSH" ],
|
|
"id" : "278e88d1-5b71-4766-8502-b3ba72e824d9",
|
|
"name" : "pytorch1.8-cuda10.2-cudnn7-ubuntu18.04",
|
|
"resource_categories" : [ "GPU", "CPU" ],
|
|
"service_type" : "COMMON",
|
|
"status" : "ACTIVE",
|
|
"swr_path" : "swr.xxx.com/atelier/pytorch_1_8:pytorch_1.8.0-cuda_10.2-py_3.7-ubuntu_18.04-x86_64-20220926104358-041ba2e",
|
|
"tag" : "pytorch_1.8.0-cuda_10.2-py_3.7-ubuntu_18.04-x86_64-20220926104358-041ba2e",
|
|
"type" : "BUILD_IN",
|
|
"update_at" : 1638234504492,
|
|
"workspace_id" : "0"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726181__section765852816436"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726181__en-us_topic_0000002055322422_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002268726181__row1565872819437"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="EN-US_TOPIC_0000002268726181__p11659112816436">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_0000002268726181__p26609286434">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726181__row1865916282431"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268726181__p966115284430">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268726181__p36621828174320">OK</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row186596283435"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268726181__p14662172812434">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268726181__p56631328104320">Unauthorized</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row116591028154317"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268726181__p766352812433">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268726181__p366482815432">Forbidden</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726181__row13659928174316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268726181__p17665328154313">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268726181__p166672834312">Not Found</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726181__section156661828164310"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002268726181__p2667172819433">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>
|
|
|