doc-exports/docs/csbs/api-ref/en-us_topic_0059304224.html
Wei, Hongmin 8ce662c4dc CSBS API initial version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Wei, Hongmin <weihongmin1@huawei.com>
Co-committed-by: Wei, Hongmin <weihongmin1@huawei.com>
2022-10-24 21:06:50 +00:00

117 lines
8.6 KiB
HTML

<a name="EN-US_TOPIC_0059304224"></a><a name="EN-US_TOPIC_0059304224"></a>
<h1 class="topictitle1">Deleting a Backup Policy</h1>
<div id="body42157279"><div class="section" id="EN-US_TOPIC_0059304224__section21950305"><h4 class="sectiontitle">Function</h4><p class="msonormal" id="EN-US_TOPIC_0059304224__p59296429">This API is used to delete a backup policy by ID.</p>
</div>
<div class="section" id="EN-US_TOPIC_0059304224__section63335023"><h4 class="sectiontitle">URI</h4><ul id="EN-US_TOPIC_0059304224__ul38281448"><li id="EN-US_TOPIC_0059304224__li8988713">URI format<p id="EN-US_TOPIC_0059304224__p13789559"><a name="EN-US_TOPIC_0059304224__li8988713"></a><a name="li8988713"></a>DELETE https://{endpoint}/v1/{project_id}/policies/{policy_id}</p>
</li><li id="EN-US_TOPIC_0059304224__li56997170">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0059304224__table43212483" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0059304224__row6889384"><th align="left" class="cellrowborder" valign="top" width="25.507449255074494%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="EN-US_TOPIC_0059304224__p21169251">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.288571142885711%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="EN-US_TOPIC_0059304224__p36987783">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.288571142885711%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="EN-US_TOPIC_0059304224__p43220410">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45.91540845915409%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="EN-US_TOPIC_0059304224__p11192359">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0059304224__row34165876"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="EN-US_TOPIC_0059304224__p15972553">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="EN-US_TOPIC_0059304224__p18708431">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="EN-US_TOPIC_0059304224__p38987949">String</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="EN-US_TOPIC_0059304224__p65779720">Project ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0059304224__row35166068"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="EN-US_TOPIC_0059304224__p29879222">policy_id</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="EN-US_TOPIC_0059304224__p4297933">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="EN-US_TOPIC_0059304224__p12588321">String</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="EN-US_TOPIC_0059304224__p13021081">Backup policy ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0059304224__section33144303"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0059304224__ul48074654"><li id="EN-US_TOPIC_0059304224__li30018704">Parameter description</li></ul>
<p class="msonormal" id="EN-US_TOPIC_0059304224__p1732887">None</p>
<ul id="EN-US_TOPIC_0059304224__ul15595987"><li id="EN-US_TOPIC_0059304224__li6146157">Example request<pre class="screen" id="EN-US_TOPIC_0059304224__screen438595618160">DELETE https://{endpoint}/v1/{project_id}/policies/{policy_id}</pre>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0059304224__section29863272"><h4 class="sectiontitle">Response</h4><ul id="EN-US_TOPIC_0059304224__ul51363521"><li id="EN-US_TOPIC_0059304224__li5400568516119">Parameter description<p id="EN-US_TOPIC_0059304224__p3264894816120"><a name="EN-US_TOPIC_0059304224__li5400568516119"></a><a name="li5400568516119"></a>None</p>
</li></ul>
<ul id="EN-US_TOPIC_0059304224__ul64369961"><li id="EN-US_TOPIC_0059304224__li1454641516122">Example response<p id="EN-US_TOPIC_0059304224__p824066516122"><a name="EN-US_TOPIC_0059304224__li1454641516122"></a><a name="li1454641516122"></a>None</p>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0059304224__section333997"><h4 class="sectiontitle">Status Codes</h4><ul id="EN-US_TOPIC_0059304224__ul15233596"><li id="EN-US_TOPIC_0059304224__li2884644">Normal
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0059304224__table25961797" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0059304224__row50404031"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.5.2.1.1.1.3.1.1"><p id="EN-US_TOPIC_0059304224__p56194702">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.5.2.1.1.1.3.1.2"><p id="EN-US_TOPIC_0059304224__p55477038">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0059304224__row64455111"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.1.1.1.3.1.1 "><p id="EN-US_TOPIC_0059304224__p53481472">200</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.1.1.1.3.1.2 "><p id="EN-US_TOPIC_0059304224__p37031937">OK</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="EN-US_TOPIC_0059304224__li64851980">Abnormal
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0059304224__table46796915" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0059304224__row36469261"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.5.2.2.1.1.3.1.1"><p id="EN-US_TOPIC_0059304224__p1220188">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.5.2.2.1.1.3.1.2"><p id="EN-US_TOPIC_0059304224__p31726399">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0059304224__row19701535"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0059304224__p52320483">400</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0059304224__p10100724">Invalid request parameters.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0059304224__row23797652"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0059304224__p48561666">401</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0059304224__p41180913">Authentication failed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0059304224__row35083905"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0059304224__p23224019">403</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0059304224__p2097402">No operation permission.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0059304224__row18876625"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0059304224__p52611666">404</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0059304224__p33686555">Requested object not found.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0059304224__row34743547"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0059304224__p62763908">500</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0059304224__p50711786">Service internal error.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0059304224__row53752891"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0059304224__p59016886">503</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0059304224__p15638466">Service unavailable.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0059304224__section61541938486"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0059304224__p999593594811">For details, see <a href="en-us_topic_0071888297.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0059304222.html">Backup Policy Management</a></div>
</div>
</div>