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

327 lines
30 KiB
HTML

<a name="EN-US_TOPIC_0000002268806157"></a><a name="EN-US_TOPIC_0000002268806157"></a>
<h1 class="topictitle1">Deleting an Image</h1>
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000002268806157__section208541927154319"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002268806157__p8855527104311">Delete an image object. For a private image, you can also delete the image content from SWR using parameters.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002268806157__section485515279435"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002268806157__p188561527194318">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002268806157__section98571527204315"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002268806157__p5858182754311">DELETE /v1/{project_id}/images/{id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268806157__table2860182710436" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268806157__row15859122711436"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000002268806157__p1486002764313">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_0000002268806157__p188611274437">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_0000002268806157__p386262744316">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_0000002268806157__p15862122716436">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268806157__row1185910279439"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268806157__p178631227104319">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268806157__p108631527204310">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268806157__p15864132712431">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268806157__p786416274430">Image ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row985922774314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268806157__p15865327184314">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_0000002268806157__p28651027134319">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268806157__p586619275438">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268806157__p17866142720439">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_0000002268806157__table108681527194319" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268806157__row58671527104317"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="EN-US_TOPIC_0000002268806157__p128696272434">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_0000002268806157__p1287022710436">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_0000002268806157__p48719274437">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_0000002268806157__p17872102718432">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268806157__row118671827114311"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002268806157__p18872162719433">force</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002268806157__p9873527144317">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002268806157__p13873182713436">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002268806157__p9874427174316">Image content to be deleted from SWR. This parameter is valid only for private images.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002268806157__section8874192724314"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002268806157__p287552784317">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002268806157__section187632774311"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002268806157__p11877202719430"><strong id="EN-US_TOPIC_0000002268806157__b2877162734315">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268806157__en-us_topic_0000002055164074_response_Image" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268806157__row1187992704319"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0000002268806157__p6883182784319">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_0000002268806157__p188841727174311">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_0000002268806157__p78841227114319">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268806157__row68794279434"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p158851127184319">arch</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p1788510271432">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p1088652774311">Processor architecture supported by the image. Enums:</p>
<ul id="EN-US_TOPIC_0000002268806157__ul10886192714314"><li id="EN-US_TOPIC_0000002268806157__li1488662714434"><p id="EN-US_TOPIC_0000002268806157__p3887727154314"><a name="EN-US_TOPIC_0000002268806157__li1488662714434"></a><a name="li1488662714434"></a><strong id="EN-US_TOPIC_0000002268806157__b588762754319">X86_64</strong>: x86 architecture</p>
</li><li id="EN-US_TOPIC_0000002268806157__li688719274439"><p id="EN-US_TOPIC_0000002268806157__p17887132794320"><a name="EN-US_TOPIC_0000002268806157__li688719274439"></a><a name="li688719274439"></a><strong id="EN-US_TOPIC_0000002268806157__b1988722744312">AARCH64</strong>: Arm architecture</p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row88801227194319"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p178881527164319">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_0000002268806157__p4888182711433">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p1388852704315">Specifies the time (UTC ms) when the image is created.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row2880102711436"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p2088915272434">description</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p13889827164320">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p14890162715436">Image description with a maximum of 512 characters</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row158801274436"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p789018273439">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_0000002268806157__p1891162754313">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_0000002268806157__p389172717433">Services supported by the image. Enums:</p>
<ul id="EN-US_TOPIC_0000002268806157__ul18928273437"><li id="EN-US_TOPIC_0000002268806157__li289214273434"><p id="EN-US_TOPIC_0000002268806157__p98921027204316"><a name="EN-US_TOPIC_0000002268806157__li289214273434"></a><a name="li289214273434"></a><strong id="EN-US_TOPIC_0000002268806157__b19892327174317">NOTEBOOK</strong>: You can access a notebook instance using HTTPS.</p>
</li><li id="EN-US_TOPIC_0000002268806157__li589232774311"><p id="EN-US_TOPIC_0000002268806157__p7893727124310"><a name="EN-US_TOPIC_0000002268806157__li589232774311"></a><a name="li589232774311"></a><strong id="EN-US_TOPIC_0000002268806157__b1489332724319">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_0000002268806157__row188802027194316"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p178938270436">id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p1089432710438">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p5894102714310">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_0000002268806157__row9880132710439"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p289422716435">name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p1189510274432">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p3895202744312">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_0000002268806157__row148802276434"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p1089632774315">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p58966274433">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p8897027174313">Organization to which the image belongs. You can create and view the organization on the <strong id="EN-US_TOPIC_0000002268806157__b14897102711438">Organization Management</strong> page of the SWR console.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row16880202716436"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p48981027134315">origin</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p1089932764317">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p19899192712434">Image source, which defaults to <strong id="EN-US_TOPIC_0000002268806157__b990015275439">CUSTOMIZE</strong>. This parameter is optional. Enums:</p>
<ul id="EN-US_TOPIC_0000002268806157__ul17900627194313"><li id="EN-US_TOPIC_0000002268806157__li169001527154310"><p id="EN-US_TOPIC_0000002268806157__p390042715438"><a name="EN-US_TOPIC_0000002268806157__li169001527154310"></a><a name="li169001527154310"></a><strong id="EN-US_TOPIC_0000002268806157__b5901132718437">CUSTOMIZE</strong>: custom image</p>
</li><li id="EN-US_TOPIC_0000002268806157__li1490115274439"><p id="EN-US_TOPIC_0000002268806157__p590110275436"><a name="EN-US_TOPIC_0000002268806157__li1490115274439"></a><a name="li1490115274439"></a><strong id="EN-US_TOPIC_0000002268806157__b490192704320">IMAGE_SAVE</strong>: image saved by a notebook instance</p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row2880172719438"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p12902142713433">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_0000002268806157__p109021027204319">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_0000002268806157__p20903162713431">Flavors supported by the image. Enums:</p>
<ul id="EN-US_TOPIC_0000002268806157__ul1190312710438"><li id="EN-US_TOPIC_0000002268806157__li1190317279437"><p id="EN-US_TOPIC_0000002268806157__p11903162713437"><a name="EN-US_TOPIC_0000002268806157__li1190317279437"></a><a name="li1190317279437"></a><strong id="EN-US_TOPIC_0000002268806157__b7903182724316">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002268806157__li9903827134319"><p id="EN-US_TOPIC_0000002268806157__p10904152764313"><a name="EN-US_TOPIC_0000002268806157__li9903827134319"></a><a name="li9903827134319"></a><strong id="EN-US_TOPIC_0000002268806157__b8904127114315">GPU</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row68811727184318"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p12904142744311">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_0000002268806157__p1090532711438">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p190542717434">Supported image types. Options:</p>
<ul id="EN-US_TOPIC_0000002268806157__ul7906427164312"><li id="EN-US_TOPIC_0000002268806157__li8906172764316"><p id="EN-US_TOPIC_0000002268806157__p17906172711434"><a name="EN-US_TOPIC_0000002268806157__li8906172764316"></a><a name="li8906172764316"></a><strong id="EN-US_TOPIC_0000002268806157__b109061227144319">COMMON</strong>: common image</p>
</li><li id="EN-US_TOPIC_0000002268806157__li490611278438"><p id="EN-US_TOPIC_0000002268806157__p1190752720439"><a name="EN-US_TOPIC_0000002268806157__li490611278438"></a><a name="li490611278438"></a><strong id="EN-US_TOPIC_0000002268806157__b18907142724318">INFERENCE</strong>: image used for inference</p>
</li><li id="EN-US_TOPIC_0000002268806157__li79079272432"><p id="EN-US_TOPIC_0000002268806157__p1390719278431"><a name="EN-US_TOPIC_0000002268806157__li79079272432"></a><a name="li79079272432"></a>TRAIN: image used for training</p>
</li><li id="EN-US_TOPIC_0000002268806157__li1890792720436"><p id="EN-US_TOPIC_0000002268806157__p29089271436"><a name="EN-US_TOPIC_0000002268806157__li1890792720436"></a><a name="li1890792720436"></a>DEV: image used for development and debugging</p>
</li><li id="EN-US_TOPIC_0000002268806157__li990822716438"><p id="EN-US_TOPIC_0000002268806157__p20908112794315"><a name="EN-US_TOPIC_0000002268806157__li990822716438"></a><a name="li990822716438"></a>UNKNOWN: image whose supported services are not specified</p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row5881162794311"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p19081927154313">size</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p7909182764311">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p129090279435">Specifies the image size, in KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row9881102724312"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p1191092717431">status</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p1191019275436">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p12911227154310">Image status. Options:</p>
<ul id="EN-US_TOPIC_0000002268806157__ul091182718434"><li id="EN-US_TOPIC_0000002268806157__li1491212717433"><p id="EN-US_TOPIC_0000002268806157__p18912102714436"><a name="EN-US_TOPIC_0000002268806157__li1491212717433"></a><a name="li1491212717433"></a><strong id="EN-US_TOPIC_0000002268806157__b79127276430">INIT</strong>: The image is being initialized.</p>
</li><li id="EN-US_TOPIC_0000002268806157__li8912127124318"><p id="EN-US_TOPIC_0000002268806157__p19913327164319"><a name="EN-US_TOPIC_0000002268806157__li8912127124318"></a><a name="li8912127124318"></a><strong id="EN-US_TOPIC_0000002268806157__b139136279435">CREATING</strong>: The image is being saved. In this case, the notebook instance is unavailable.</p>
</li><li id="EN-US_TOPIC_0000002268806157__li14913152704318"><p id="EN-US_TOPIC_0000002268806157__p14914427104317"><a name="EN-US_TOPIC_0000002268806157__li14913152704318"></a><a name="li14913152704318"></a><strong id="EN-US_TOPIC_0000002268806157__b1914132720431">CREATE_FAILED</strong>: Saving the image failed.</p>
</li><li id="EN-US_TOPIC_0000002268806157__li14915172794317"><p id="EN-US_TOPIC_0000002268806157__p1915162794317"><a name="EN-US_TOPIC_0000002268806157__li14915172794317"></a><a name="li14915172794317"></a><strong id="EN-US_TOPIC_0000002268806157__b1391511277439">ERROR</strong>: An error occurs.</p>
</li><li id="EN-US_TOPIC_0000002268806157__li391515270438"><p id="EN-US_TOPIC_0000002268806157__p19916827114315"><a name="EN-US_TOPIC_0000002268806157__li391515270438"></a><a name="li391515270438"></a><strong id="EN-US_TOPIC_0000002268806157__b159167279437">DELETED</strong>: The image has been deleted.</p>
</li><li id="EN-US_TOPIC_0000002268806157__li691682711431"><p id="EN-US_TOPIC_0000002268806157__p9916202720434"><a name="EN-US_TOPIC_0000002268806157__li691682711431"></a><a name="li691682711431"></a><strong id="EN-US_TOPIC_0000002268806157__b1291619271432">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_0000002268806157__row1881182717434"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p991792713436">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_0000002268806157__p891772764310">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p12918202754315">Build information during image saving</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row1288152794318"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p391802716439">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_0000002268806157__p191911275439">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_0000002268806157__p19919142717432">Flavors supported by the image. Enums:</p>
<ul id="EN-US_TOPIC_0000002268806157__ul5920132754319"><li id="EN-US_TOPIC_0000002268806157__li5920227134317"><p id="EN-US_TOPIC_0000002268806157__p7920927134318"><a name="EN-US_TOPIC_0000002268806157__li5920227134317"></a><a name="li5920227134317"></a><strong id="EN-US_TOPIC_0000002268806157__b1692002711435">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002268806157__li492132713431"><p id="EN-US_TOPIC_0000002268806157__p1092112279430"><a name="EN-US_TOPIC_0000002268806157__li492132713431"></a><a name="li492132713431"></a><strong id="EN-US_TOPIC_0000002268806157__b12921112714434">GPU</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row58811427204319"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p19921192714431">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_0000002268806157__p1392212711439">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p2922122713433">SWR image address</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row1388111279434"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p792315274439">tag</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p292312275430">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p792442754312">Image tag</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row8881127114320"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p99246276437">type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p18925227184316">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p189251527204317">Image type. Enums:</p>
<ul id="EN-US_TOPIC_0000002268806157__ul179261127144310"><li id="EN-US_TOPIC_0000002268806157__li1092618278433"><p id="EN-US_TOPIC_0000002268806157__p5926727144313"><a name="EN-US_TOPIC_0000002268806157__li1092618278433"></a><a name="li1092618278433"></a><strong id="EN-US_TOPIC_0000002268806157__b9926132714312">BUILD_IN</strong>: built-in system image</p>
</li><li id="EN-US_TOPIC_0000002268806157__li692632712431"><p id="EN-US_TOPIC_0000002268806157__p7926102713434"><a name="EN-US_TOPIC_0000002268806157__li692632712431"></a><a name="li692632712431"></a><strong id="EN-US_TOPIC_0000002268806157__b19927132734310">DEDICATED</strong>: image you have saved</p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row13881132720437"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p1592732711433">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_0000002268806157__p11927192718431">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p29286271436">Specifies the time (UTC ms) when the image was last updated.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row1588116276439"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p129281127114319">visibility</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268806157__p29291727154315">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p109301427144317">Image visibility. Enums:</p>
<ul id="EN-US_TOPIC_0000002268806157__ul49312277436"><li id="EN-US_TOPIC_0000002268806157__li693132734311"><p id="EN-US_TOPIC_0000002268806157__p1931127204315"><a name="EN-US_TOPIC_0000002268806157__li693132734311"></a><a name="li693132734311"></a><strong id="EN-US_TOPIC_0000002268806157__b893118278435">PRIVATE</strong>: private image</p>
</li><li id="EN-US_TOPIC_0000002268806157__li193242724311"><p id="EN-US_TOPIC_0000002268806157__p1493272720433"><a name="EN-US_TOPIC_0000002268806157__li193242724311"></a><a name="li193242724311"></a><strong id="EN-US_TOPIC_0000002268806157__b1932182711437">PUBLIC</strong>: All users can perform read-only operations based on the image ID.</p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row088118278437"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p109321527194314">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_0000002268806157__p1893314271431">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p11933102715438">Workspace ID. If no workspaces are available, the default value is <strong id="EN-US_TOPIC_0000002268806157__b14934132714431">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row5881162794319"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268806157__p3934172764317">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_0000002268806157__p69350271439">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268806157__p11935142794313">Image resource type.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002268806157__section129371327134316"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="EN-US_TOPIC_0000002268806157__screen49381927154312">DELETE https://{endpoint}/v1/{project_id}/images/{id}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002268806157__section5939927174318"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002268806157__p393932715435"><strong id="EN-US_TOPIC_0000002268806157__b39391327154320">Status code: 200</strong></p>
<p id="EN-US_TOPIC_0000002268806157__p093942784317">OK</p>
<pre class="screen" id="EN-US_TOPIC_0000002268806157__screen5941152764317">{
"arch" : "x86_64",
"create_at" : 1671093486722,
"description" : "",
"dev_services" : [ "NOTEBOOK", "SSH" ],
"id" : "c9ab2b2f-edda-4556-bdbb-494e868d043c",
"name" : "mock-service-python",
"namespace" : "mock-service1",
"origin" : "CUSTOMIZE",
"resource_categories" : [ "CPU" ],
"service_type" : "UNKNOWN",
"size" : 387840321,
"status" : "DELETED",
"swr_path" : "swr.xxx.com/mock-service1/mock-service-python:0.0.17",
"tag" : "0.0.17",
"type" : "DEDICATED",
"update_at" : 1671093486722,
"visibility" : "PRIVATE",
"workspace_id" : "0"
}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002268806157__section15949227134312"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268806157__en-us_topic_0000002055164074_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002268806157__row095052724310"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="EN-US_TOPIC_0000002268806157__p1795113278437">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_0000002268806157__p595115271434">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268806157__row20950172734315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268806157__p18952112716438">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268806157__p395262784313">OK</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row1195072764315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268806157__p495382744314">204</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268806157__p13953172744320">No Content</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row795022754310"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268806157__p14954227114314">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268806157__p4954152744317">Unauthorized</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268806157__row18950102710431"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268806157__p79551727114313">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268806157__p595512719439">Forbidden</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002268806157__section695662715437"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002268806157__p20956327204314">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>