1
0
forked from docs/doc-exports
doc-exports/docs/css/api-ref/css_03_0036.html
Zheng, Xiu 99a2d77599 css api 23.5.1 20240520
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com>
Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
2024-06-07 17:47:08 +00:00

100 lines
7.3 KiB
HTML

<a name="css_03_0036"></a><a name="css_03_0036"></a>
<h1 class="topictitle1">Deleting a Snapshot</h1>
<div id="body1522117927446"><div class="section" id="css_03_0036__section874853215915"><h4 class="sectiontitle">Function</h4><p id="css_03_0036__p544153317914">This API is used to delete a snapshot.</p>
</div>
<div class="section" id="css_03_0036__section8763193210910"><h4 class="sectiontitle">URI</h4><pre class="screen" id="css_03_0036__screen1695846201113">DELETE /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}</pre>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0036__table57631032695" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="css_03_0036__row4445336913"><th align="left" class="cellrowborder" valign="top" width="16.31313131313131%" id="mcps1.3.2.3.2.5.1.1"><p id="css_03_0036__p54417338910">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.98989898989899%" id="mcps1.3.2.3.2.5.1.2"><p id="css_03_0036__p1644733693">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.88888888888889%" id="mcps1.3.2.3.2.5.1.3"><p id="css_03_0036__p11441233696">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.80808080808081%" id="mcps1.3.2.3.2.5.1.4"><p id="css_03_0036__p124403319916">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0036__row94414331098"><td class="cellrowborder" valign="top" width="16.31313131313131%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0036__p0441331398">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="15.98989898989899%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0036__p9444331997">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.88888888888889%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0036__p144412334919">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.80808080808081%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0036__p18449331896">Project ID. For details, see <a href="css_03_0071.html">Obtaining a Project ID and Name</a>.</p>
</td>
</tr>
<tr id="css_03_0036__row14453320917"><td class="cellrowborder" valign="top" width="16.31313131313131%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0036__p2044193314920">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="15.98989898989899%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0036__p24410331398">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.88888888888889%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0036__p844133316918">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.80808080808081%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0036__p13441833493">ID of the cluster to which the snapshot belongs.</p>
</td>
</tr>
<tr id="css_03_0036__row47771537173715"><td class="cellrowborder" valign="top" width="16.31313131313131%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0036__p27779371378">snapshot_id</p>
</td>
<td class="cellrowborder" valign="top" width="15.98989898989899%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0036__p5777203719370">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.88888888888889%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0036__p177771737153713">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.80808080808081%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0036__p77771237103718">ID of the snapshot to be deleted.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0036__section1477913211910"><h4 class="sectiontitle">Request</h4><p id="css_03_0036__p330115212466">None</p>
</div>
<div class="section" id="css_03_0036__section19810103220915"><h4 class="sectiontitle">Response</h4><p id="css_03_0036__p421062843210">None</p>
</div>
<div class="section" id="css_03_0036__section271817020477"><h4 class="sectiontitle">Examples</h4><p id="css_03_0036__p64419337911">Example request</p>
<pre class="screen" id="css_03_0036__screen7841540829">DELETE /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/ea244205-d641-45d9-9dcb-ab2236bcd07e/index_snapshot/29a2254e-947f-4463-b65a-5f0b17515fae</pre>
</div>
<div class="section" id="css_03_0036__section87962546391"><h4 class="sectiontitle">Status Code</h4><p id="css_03_0036__p184016093313"><a href="#css_03_0036__table1130545163319">Table 2</a> describes the status code.</p>
<div class="tablenoborder"><a name="css_03_0036__table1130545163319"></a><a name="table1130545163319"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0036__table1130545163319" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Status code</caption><thead align="left"><tr id="css_03_0036__row43061959330"><th align="left" class="cellrowborder" valign="top" width="19.44194419441944%" id="mcps1.3.6.3.2.4.1.1"><p id="css_03_0036__en-us_topic_0122640420_p51562446">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.502550255025504%" id="mcps1.3.6.3.2.4.1.2"><p id="css_03_0036__en-us_topic_0122640420_p15808580">Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.055505550555054%" id="mcps1.3.6.3.2.4.1.3"><p id="css_03_0036__en-us_topic_0122640420_p5426640">Status Code Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0036__row10306135113317"><td class="cellrowborder" valign="top" width="19.44194419441944%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0036__p430655133316">200</p>
</td>
<td class="cellrowborder" valign="top" width="25.502550255025504%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0036__p134136431055">OK</p>
</td>
<td class="cellrowborder" valign="top" width="55.055505550555054%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0036__p134136431458">The request is processed successfully.</p>
</td>
</tr>
<tr id="css_03_0036__row1830612503310"><td class="cellrowborder" valign="top" width="19.44194419441944%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0036__p1030616563318">400</p>
</td>
<td class="cellrowborder" valign="top" width="25.502550255025504%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0036__en-us_topic_0122640420_p11193990">BadRequest</p>
</td>
<td class="cellrowborder" valign="top" width="55.055505550555054%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0036__en-us_topic_0122640420_p34297999">Invalid request.</p>
<p id="css_03_0036__en-us_topic_0122640420_p40246543">Modify the request instead of retrying.</p>
</td>
</tr>
<tr id="css_03_0036__row1261264514331"><td class="cellrowborder" valign="top" width="19.44194419441944%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0036__p17612174563314">403</p>
</td>
<td class="cellrowborder" valign="top" width="25.502550255025504%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0036__en-us_topic_0122640420_p50789473">Forbidden</p>
</td>
<td class="cellrowborder" valign="top" width="55.055505550555054%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0036__en-us_topic_0122640420_p20306648">The server understood the request, but is refusing to fulfill it.</p>
<p id="css_03_0036__en-us_topic_0122640420_p48542107">The client should not repeat the request without modifications.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_03_0010.html">Snapshot Management APIs</a></div>
</div>
</div>