doc-exports/docs/modelarts/api-ref/modelarts_03_0114.html
Lai, Weijian 68e5cd0687 ModelArts API 23.3.0 Version.
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-06-18 11:02:37 +00:00

86 lines
7.2 KiB
HTML

<a name="EN-US_TOPIC_0000001909848112"></a><a name="EN-US_TOPIC_0000001909848112"></a>
<h1 class="topictitle1">Deleting a Development Environment Instance</h1>
<div id="body1540007468581"><div class="section" id="EN-US_TOPIC_0000001909848112__section88894735616"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001909848112__p17844122205611">This API is used to delete a development environment instance.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848112__section20261580353"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000001909848112__p1741558105012">DELETE /v1/{project_id}/demanager/instances/{instance_id}</p>
</div>
<div class="p" id="EN-US_TOPIC_0000001909848112__p17520114623911"><a href="#EN-US_TOPIC_0000001909848112__table569625523811">Table 1</a> describes the required parameters.
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848112__table569625523811"></a><a name="table569625523811"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848112__table569625523811" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848112__row169945510386"><th align="left" class="cellrowborder" valign="top" width="16.161616161616163%" id="mcps1.3.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001909848112__p370019557384">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.161616161616163%" id="mcps1.3.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001909848112__p2702115512388">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.131313131313133%" id="mcps1.3.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001909848112__p1704955163819">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54.545454545454554%" id="mcps1.3.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001909848112__p070515554383">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848112__row187062555388"><td class="cellrowborder" valign="top" width="16.161616161616163%" headers="mcps1.3.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001909848112__p570711558389">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="16.161616161616163%" headers="mcps1.3.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001909848112__p1070819552389">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="13.131313131313133%" headers="mcps1.3.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001909848112__p147095558384">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.545454545454554%" headers="mcps1.3.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001909848112__p4972959911831">Project ID. For details about how to obtain a project ID, see <a href="modelarts_03_0147.html">Obtaining a Project ID and Name</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848112__row37157913141"><td class="cellrowborder" valign="top" width="16.161616161616163%" headers="mcps1.3.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001909848112__p11308137181317">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="16.161616161616163%" headers="mcps1.3.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001909848112__p175711944161316">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="13.131313131313133%" headers="mcps1.3.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001909848112__p05711544181313">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.545454545454554%" headers="mcps1.3.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001909848112__p830883717136">Instance ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848112__section722833995517"><h4 class="sectiontitle">Request Body</h4><p id="EN-US_TOPIC_0000001909848112__p1869910410402">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848112__section8857352133212"><h4 class="sectiontitle">Response Body</h4><p id="EN-US_TOPIC_0000001909848112__p4517344144210"><a href="#EN-US_TOPIC_0000001909848112__table14581542113111">Table 2</a> describes the response parameters.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848112__table14581542113111"></a><a name="table14581542113111"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848112__table14581542113111" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848112__row7581144216315"><th align="left" class="cellrowborder" valign="top" width="20.202020202020204%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0000001909848112__p4886449203110">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.242424242424242%" id="mcps1.3.5.3.2.4.1.2"><p id="EN-US_TOPIC_0000001909848112__p1388718492317">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.55555555555556%" id="mcps1.3.5.3.2.4.1.3"><p id="EN-US_TOPIC_0000001909848112__p48891049143113">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848112__row1558134210313"><td class="cellrowborder" valign="top" width="20.202020202020204%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848112__p1390017491318">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="24.242424242424242%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848112__p7741113017490">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.55555555555556%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848112__p10903184963119">Instance ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848112__section10566135411437"><h4 class="sectiontitle">Sample Request</h4><p id="EN-US_TOPIC_0000001909848112__p1023743012319">The following shows how to delete instance <span class="parmvalue" id="EN-US_TOPIC_0000001909848112__parmvalue794317720518"><b>6fa459ea-ee8a-3ca4-894e-db77e160355e</b></span>.</p>
<div class="p" id="EN-US_TOPIC_0000001909848112__p1090075152315"><pre class="screen" id="EN-US_TOPIC_0000001909848112__screen15560101917245">DELETE https://endpoint/v1/{project_id}/demanager/instances/6fa459ea-ee8a-3ca4-894e-db77e160355e</pre>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848112__section18161182232"><h4 class="sectiontitle">Sample Response</h4><ul id="EN-US_TOPIC_0000001909848112__ul2487347231"><li id="EN-US_TOPIC_0000001909848112__li2048153411235">Successful response<pre class="screen" id="EN-US_TOPIC_0000001909848112__screen184873418236">{
"instance_id": "6fa459ea-ee8a-3ca4-894e-db77e160355e"
}</pre>
</li><li id="EN-US_TOPIC_0000001909848112__li1148183462310">Failed response<pre class="screen" id="EN-US_TOPIC_0000001909848112__screen2481134192318">{
"error_message": "The instance does not exist.",
"error_code": "ModelArts.6309"
}</pre>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848112__section157661945274"><h4 class="sectiontitle">Status Code</h4><p id="EN-US_TOPIC_0000001909848112__p919113015575">For details about the status code, see <a href="modelarts_03_0094.html">Status Code</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="modelarts_03_0108.html">DevEnviron (Old Version)</a></div>
</div>
</div>