doc-exports/docs/mrs/api-ref/mrs_02_0032.html
Yang, Tong bd2b57f749 MRS API 2.0.38.SP20 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-11-16 15:06:08 +00:00

72 lines
5.6 KiB
HTML

<a name="mrs_02_0032"></a><a name="mrs_02_0032"></a>
<h1 class="topictitle1">Deleting a Cluster</h1>
<div id="body1480125376815"><div class="section" id="mrs_02_0032__section4408504619327"><h4 class="sectiontitle">Function</h4><p id="mrs_02_0032__p5843728119329">This API is used to delete a cluster after data processing and analysis are completed or the cluster is abnormal. This API is compatible with Sahara.</p>
<div class="p" id="mrs_02_0032__p50795329151554">Clusters in any of the following states cannot be terminated:<ul id="mrs_02_0032__ul59382559151612"><li id="mrs_02_0032__li64680991151612">scaling-out</li><li id="mrs_02_0032__li13114449151620">scaling-in</li><li id="mrs_02_0032__li53944748151635">starting</li><li id="mrs_02_0032__li44335036151627">terminating</li><li id="mrs_02_0032__li14109908151659">terminated</li><li id="mrs_02_0032__li1467883315172">failed</li></ul>
</div>
</div>
<div class="section" id="mrs_02_0032__section10186656193217"><h4 class="sectiontitle">URI</h4><ul id="mrs_02_0032__ul2809877319471"><li id="mrs_02_0032__li5177607319471">Format<p id="mrs_02_0032__p59483855194713"><a name="mrs_02_0032__li5177607319471"></a><a name="li5177607319471"></a>DELETE /v1.1/{project_id}/clusters/{cluster_id}</p>
</li><li id="mrs_02_0032__li2957566119471">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0032__table49499141194754" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameter description</caption><thead align="left"><tr id="mrs_02_0032__row33700024194754"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.4.1.1"><p id="mrs_02_0032__p16571835194812">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.4.1.2"><p id="mrs_02_0032__p141410194812">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.2.1.2.4.1.3"><p id="mrs_02_0032__p11454278194812">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_02_0032__row6505449415356"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="mrs_02_0032__p3492262515356">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.2 "><p id="mrs_02_0032__p1016041415356">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.1.2.4.1.3 "><p id="mrs_02_0032__p1768719515356">Project ID. For details on how to obtain the project ID, see <a href="mrs_02_0011.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="mrs_02_0032__row37407495194754"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="mrs_02_0032__p56702435194812">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.2 "><p id="mrs_02_0032__p29494508194812">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.1.2.4.1.3 "><p id="mrs_02_0032__p40820562194812">Cluster ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="mrs_02_0032__section7976792193238"><h4 class="sectiontitle">Request</h4><p id="mrs_02_0032__p1842961591514"><strong id="mrs_02_0032__b139822112354">Request parameters</strong></p>
<p id="mrs_02_0032__p106160258151">None.</p>
</div>
<div class="section" id="mrs_02_0032__section38599577193858"><h4 class="sectiontitle">Response</h4><p id="mrs_02_0032__p137610236182"><strong id="mrs_02_0032__b4516182183510">Response parameters</strong></p>
<p id="mrs_02_0032__p785103420187">None.</p>
</div>
<div class="section" id="mrs_02_0032__section1210015461189"><h4 class="sectiontitle">Example</h4><ul id="mrs_02_0032__ul1958913536182"><li id="mrs_02_0032__li1558945321814">Example request<p id="mrs_02_0032__p8671133419191"><a name="mrs_02_0032__li1558945321814"></a><a name="li1558945321814"></a>None.</p>
</li><li id="mrs_02_0032__li543710159193">Example response<p id="mrs_02_0032__p156441832121919"><a name="mrs_02_0032__li543710159193"></a><a name="li543710159193"></a>None.</p>
</li></ul>
</div>
<div class="section" id="mrs_02_0032__section4391766619434"><h4 class="sectiontitle">Status Code</h4><p id="mrs_02_0032__p5547365016031"><a href="#mrs_02_0032__table1584477916050">Table 2</a> describes the status code of this API.</p>
<div class="tablenoborder"><a name="mrs_02_0032__table1584477916050"></a><a name="table1584477916050"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0032__table1584477916050" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Status code</caption><thead align="left"><tr id="mrs_02_0032__row1339492016050"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.6.3.2.3.1.1"><p id="mrs_02_0032__p3411176516050">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.6.3.2.3.1.2"><p id="mrs_02_0032__p1158961516050">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_02_0032__row3719767816050"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.6.3.2.3.1.1 "><p id="mrs_02_0032__p6022194016050">204</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.6.3.2.3.1.2 "><p id="mrs_02_0032__p4613894216050">The cluster has been successfully terminated.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_02_0032__p168245499518">For the description about error status codes, see <a href="mrs_02_0015.html">Status Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_02_0027.html">Cluster management APIs (V1)</a></div>
</div>
</div>