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>
320 lines
29 KiB
HTML
320 lines
29 KiB
HTML
<a name="EN-US_TOPIC_0000002340898598"></a><a name="EN-US_TOPIC_0000002340898598"></a>
|
|
|
|
<h1 class="topictitle1">Deleting an Image</h1>
|
|
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000002340898598__section532117260815"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002340898598__p14321162617814">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_0000002340898598__section1032132620813"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002340898598__p73214261081">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340898598__section113211926689"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002340898598__p1932119261686">DELETE /v1/{project_id}/images/{id}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002340898598__table203226261588" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002340898598__row1032218264817"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000002340898598__p113221626687">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_0000002340898598__p15322926483">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_0000002340898598__p1632242613817">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_0000002340898598__p203221226184">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002340898598__row1032216262815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002340898598__p832311265818">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002340898598__p532322618812">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002340898598__p153231126382">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002340898598__p113239261088">Image ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row23221926380"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002340898598__p332318263819">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_0000002340898598__p3323162618813">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002340898598__p93231226583">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002340898598__p11324172620819">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_0000002340898598__table432513268817" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002340898598__row123244268812"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="EN-US_TOPIC_0000002340898598__p532514265813">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_0000002340898598__p4325142614818">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_0000002340898598__p8325926588">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_0000002340898598__p173251926884">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002340898598__row43242261287"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002340898598__p73251126785">force</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002340898598__p23256262818">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002340898598__p11327112616816">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002340898598__p2327126587">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_0000002340898598__section33278261585"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002340898598__p032802615810">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340898598__section1932862614814"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002340898598__p1732820269814"><strong id="EN-US_TOPIC_0000002340898598__b032882620818">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002340898598__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_0000002340898598__row63291261687"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0000002340898598__p833112262817">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_0000002340898598__p133112261888">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_0000002340898598__p103315261681">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002340898598__row532919262819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p333114261810">arch</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p033262613813">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p63327267820">Processor architecture supported by the image. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002340898598__ul1533219261189"><li id="EN-US_TOPIC_0000002340898598__li333292615813"><p id="EN-US_TOPIC_0000002340898598__p4332726486"><a name="EN-US_TOPIC_0000002340898598__li333292615813"></a><a name="li333292615813"></a><strong id="EN-US_TOPIC_0000002340898598__b1533214261689">X86_64</strong>: x86 architecture</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li113327261682"><p id="EN-US_TOPIC_0000002340898598__p1133262612811"><a name="EN-US_TOPIC_0000002340898598__li113327261682"></a><a name="li113327261682"></a><strong id="EN-US_TOPIC_0000002340898598__b43326261280">AARCH64</strong>: Arm architecture</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row1329112616811"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p1833210261684">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_0000002340898598__p123321626888">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p113320261384">Specifies the time (UTC ms) when the image is created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row18329526289"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p33330261482">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p143335261287">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p1033332618810">Image description with a maximum of 512 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row1932918261687"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p1433322614818">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_0000002340898598__p1033310261982">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_0000002340898598__p123331226282">Services supported by the image. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002340898598__ul1333132619812"><li id="EN-US_TOPIC_0000002340898598__li1133311264820"><p id="EN-US_TOPIC_0000002340898598__p123335269818"><a name="EN-US_TOPIC_0000002340898598__li1133311264820"></a><a name="li1133311264820"></a><strong id="EN-US_TOPIC_0000002340898598__b53330268814">NOTEBOOK</strong>: You can access a notebook instance using HTTPS.</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li1233372613815"><p id="EN-US_TOPIC_0000002340898598__p533332615815"><a name="EN-US_TOPIC_0000002340898598__li1233372613815"></a><a name="li1233372613815"></a><strong id="EN-US_TOPIC_0000002340898598__b18333192613813">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_0000002340898598__row11329126282"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p53332261286">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p1133412261782">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p33341226480">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_0000002340898598__row2032992619817"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p143341926082">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p193341926387">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p7334926881">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_0000002340898598__row1433013265816"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p93340266818">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p533414261280">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p4334102613810">Organization to which the image belongs. You can create and view the organization on the <strong id="EN-US_TOPIC_0000002340898598__b183342260810">Organization Management</strong> page of the SWR console.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row11330172613818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p113355262088">origin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p9335172617816">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p83351826880">Image source, which defaults to <strong id="EN-US_TOPIC_0000002340898598__b143352026684">CUSTOMIZE</strong>. This parameter is optional. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002340898598__ul333518263817"><li id="EN-US_TOPIC_0000002340898598__li10335192610818"><p id="EN-US_TOPIC_0000002340898598__p1933517261683"><a name="EN-US_TOPIC_0000002340898598__li10335192610818"></a><a name="li10335192610818"></a><strong id="EN-US_TOPIC_0000002340898598__b9335826382">CUSTOMIZE</strong>: custom image</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li833518261988"><p id="EN-US_TOPIC_0000002340898598__p63358261887"><a name="EN-US_TOPIC_0000002340898598__li833518261988"></a><a name="li833518261988"></a><strong id="EN-US_TOPIC_0000002340898598__b16335426381">IMAGE_SAVE</strong>: image saved by a notebook instance</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row113301326187"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p3335192612811">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_0000002340898598__p233572619814">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_0000002340898598__p5335202615810">Flavors supported by the image. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002340898598__ul1333511268815"><li id="EN-US_TOPIC_0000002340898598__li1633522616812"><p id="EN-US_TOPIC_0000002340898598__p1133642614815"><a name="EN-US_TOPIC_0000002340898598__li1633522616812"></a><a name="li1633522616812"></a><strong id="EN-US_TOPIC_0000002340898598__b233615266810">CPU</strong></p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li1833611261482"><p id="EN-US_TOPIC_0000002340898598__p10336726987"><a name="EN-US_TOPIC_0000002340898598__li1833611261482"></a><a name="li1833611261482"></a><strong id="EN-US_TOPIC_0000002340898598__b1833692611814">GPU</strong></p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row1833013261987"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p1933612261984">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_0000002340898598__p1533611266811">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p133361261816">Supported image types. Options:</p>
|
|
<ul id="EN-US_TOPIC_0000002340898598__ul833611261684"><li id="EN-US_TOPIC_0000002340898598__li1333642616813"><p id="EN-US_TOPIC_0000002340898598__p193361726489"><a name="EN-US_TOPIC_0000002340898598__li1333642616813"></a><a name="li1333642616813"></a><strong id="EN-US_TOPIC_0000002340898598__b2336226985">COMMON</strong>: common image</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li133361826385"><p id="EN-US_TOPIC_0000002340898598__p15336142613811"><a name="EN-US_TOPIC_0000002340898598__li133361826385"></a><a name="li133361826385"></a><strong id="EN-US_TOPIC_0000002340898598__b13363261786">INFERENCE</strong>: image used for inference</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li183366264812"><p id="EN-US_TOPIC_0000002340898598__p133361526887"><a name="EN-US_TOPIC_0000002340898598__li183366264812"></a><a name="li183366264812"></a>TRAIN: image used for training</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li03368264811"><p id="EN-US_TOPIC_0000002340898598__p433710261786"><a name="EN-US_TOPIC_0000002340898598__li03368264811"></a><a name="li03368264811"></a>DEV: image used for development and debugging</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li73376262086"><p id="EN-US_TOPIC_0000002340898598__p18337826882"><a name="EN-US_TOPIC_0000002340898598__li73376262086"></a><a name="li73376262086"></a>UNKNOWN: image whose supported services are not specified</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row113305268816"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p7337152613811">size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p1533718262816">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p43373261788">Specifies the image size, in KB.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row1833042614810"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p143371265815">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p123374263817">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p1533782617817">Image status. Options:</p>
|
|
<ul id="EN-US_TOPIC_0000002340898598__ul1333715262818"><li id="EN-US_TOPIC_0000002340898598__li133715261386"><p id="EN-US_TOPIC_0000002340898598__p73379261489"><a name="EN-US_TOPIC_0000002340898598__li133715261386"></a><a name="li133715261386"></a><strong id="EN-US_TOPIC_0000002340898598__b4337122618818">INIT</strong>: The image is being initialized.</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li833719261686"><p id="EN-US_TOPIC_0000002340898598__p1733711260818"><a name="EN-US_TOPIC_0000002340898598__li833719261686"></a><a name="li833719261686"></a><strong id="EN-US_TOPIC_0000002340898598__b93371226889">CREATING</strong>: The image is being saved. In this case, the notebook instance is unavailable.</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li11338152612810"><p id="EN-US_TOPIC_0000002340898598__p1133892610814"><a name="EN-US_TOPIC_0000002340898598__li11338152612810"></a><a name="li11338152612810"></a><strong id="EN-US_TOPIC_0000002340898598__b12338326288">CREATE_FAILED</strong>: Saving the image failed.</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li1433810261181"><p id="EN-US_TOPIC_0000002340898598__p143386261587"><a name="EN-US_TOPIC_0000002340898598__li1433810261181"></a><a name="li1433810261181"></a><strong id="EN-US_TOPIC_0000002340898598__b933813261783">ERROR</strong>: An error occurs.</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li163383261286"><p id="EN-US_TOPIC_0000002340898598__p633810262816"><a name="EN-US_TOPIC_0000002340898598__li163383261286"></a><a name="li163383261286"></a><strong id="EN-US_TOPIC_0000002340898598__b1338192613819">DELETED</strong>: The image has been deleted.</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li163383266810"><p id="EN-US_TOPIC_0000002340898598__p15338142613814"><a name="EN-US_TOPIC_0000002340898598__li163383266810"></a><a name="li163383266810"></a><strong id="EN-US_TOPIC_0000002340898598__b433818266820">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_0000002340898598__row633012618810"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p103384261788">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_0000002340898598__p83383269810">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p2033811261187">Build information during image saving</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row123301026886"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p11338182614810">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_0000002340898598__p1933942613816">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_0000002340898598__p633911261185">Flavors supported by the image. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002340898598__ul23391526283"><li id="EN-US_TOPIC_0000002340898598__li103394261088"><p id="EN-US_TOPIC_0000002340898598__p83391126686"><a name="EN-US_TOPIC_0000002340898598__li103394261088"></a><a name="li103394261088"></a><strong id="EN-US_TOPIC_0000002340898598__b123391426486">CPU</strong></p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li5339122611818"><p id="EN-US_TOPIC_0000002340898598__p133912261820"><a name="EN-US_TOPIC_0000002340898598__li5339122611818"></a><a name="li5339122611818"></a><strong id="EN-US_TOPIC_0000002340898598__b18339226280">GPU</strong></p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row153304261680"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p193395260820">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_0000002340898598__p8339122619820">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p533918261183">SWR image address</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row193307261089"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p1334018261681">tag</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p1234072612811">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p93409269812">Image tag</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row03301526681"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p1934010261789">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p1634010261284">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p143401261587">Image type. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002340898598__ul9340142613817"><li id="EN-US_TOPIC_0000002340898598__li183408263820"><p id="EN-US_TOPIC_0000002340898598__p153403261083"><a name="EN-US_TOPIC_0000002340898598__li183408263820"></a><a name="li183408263820"></a><strong id="EN-US_TOPIC_0000002340898598__b63408260814">BUILD_IN</strong>: built-in system image</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li13401267818"><p id="EN-US_TOPIC_0000002340898598__p734014263812"><a name="EN-US_TOPIC_0000002340898598__li13401267818"></a><a name="li13401267818"></a><strong id="EN-US_TOPIC_0000002340898598__b1434113261888">DEDICATED</strong>: image you have saved</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row53302265814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p03413263813">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_0000002340898598__p6341162610814">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p13411026188">Specifies the time (UTC ms) when the image was last updated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row9330172610813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p6341162611812">visibility</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002340898598__p43411226784">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p123414261086">Image visibility. Enums:</p>
|
|
<ul id="EN-US_TOPIC_0000002340898598__ul143418266812"><li id="EN-US_TOPIC_0000002340898598__li1034122620810"><p id="EN-US_TOPIC_0000002340898598__p4341426788"><a name="EN-US_TOPIC_0000002340898598__li1034122620810"></a><a name="li1034122620810"></a><strong id="EN-US_TOPIC_0000002340898598__b113415261184">PRIVATE</strong>: private image</p>
|
|
</li><li id="EN-US_TOPIC_0000002340898598__li11341132619819"><p id="EN-US_TOPIC_0000002340898598__p113411426481"><a name="EN-US_TOPIC_0000002340898598__li11341132619819"></a><a name="li11341132619819"></a><strong id="EN-US_TOPIC_0000002340898598__b1434215269810">PUBLIC</strong>: All users can perform read-only operations based on the image ID.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row2033016266818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002340898598__p1834217263819">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_0000002340898598__p83423262816">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002340898598__p4342626080">Workspace ID. If no workspaces are available, the default value is <strong id="EN-US_TOPIC_0000002340898598__b23421826786">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340898598__section5343226783"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="EN-US_TOPIC_0000002340898598__screen193439261583">DELETE https://{endpoint}/v1/{project_id}/images/{id}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340898598__section13433261888"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002340898598__p173431526187"><strong id="EN-US_TOPIC_0000002340898598__b73431626581">Status code: 200</strong></p>
|
|
<p id="EN-US_TOPIC_0000002340898598__p1343152614811">OK</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000002340898598__screen11344926188">{
|
|
"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_0000002340898598__section134519267818"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002340898598__en-us_topic_0000002055164074_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002340898598__row1534572611817"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="EN-US_TOPIC_0000002340898598__p234618261688">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_0000002340898598__p123462261881">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002340898598__row173454261987"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002340898598__p173461326489">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002340898598__p634618267811">OK</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row234542619815"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002340898598__p1634632618810">204</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002340898598__p6346326184">No Content</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row53451526483"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002340898598__p1334712264819">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002340898598__p113477266820">Unauthorized</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340898598__row7345426786"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002340898598__p834712615818">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002340898598__p13478262814">Forbidden</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340898598__section1634702618820"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002340898598__p10347122616816">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>
|
|
|