doc-exports/docs/vbs/api-ref/en-us_topic_0098527677.html
Wei, Hongmin 63123ef1be VBS 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-25 07:47:39 +00:00

175 lines
14 KiB
HTML

<a name="EN-US_TOPIC_0098527677"></a><a name="EN-US_TOPIC_0098527677"></a>
<h1 class="topictitle1">Removing a Tag from a Backup Policy</h1>
<div id="body1519715598295"><div class="section" id="EN-US_TOPIC_0098527677__section108351649184010"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0098527677__p7838549164018">This API is used to remove a tag from a backup policy.</p>
</div>
<div class="section" id="EN-US_TOPIC_0098527677__section20183144811183"><h4 class="sectiontitle">URI</h4><ul id="EN-US_TOPIC_0098527677__ul1118474861812"><li id="EN-US_TOPIC_0098527677__li818614891814">URI format<p id="EN-US_TOPIC_0098527677__p19187134817188"><a name="EN-US_TOPIC_0098527677__li818614891814"></a><a name="li818614891814"></a>DELETE /v2/{project_id}/backuppolicy/{policy_id}/tags/{key}</p>
</li><li id="EN-US_TOPIC_0098527677__li718784881820">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0098527677__table14190134812183" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0098527677__row919494861812"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.2.1.1.4.1.1"><p id="EN-US_TOPIC_0098527677__p1519410487188">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.2.1.1.4.1.2"><p id="EN-US_TOPIC_0098527677__p19196144831810">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.2.1.1.4.1.3"><p id="EN-US_TOPIC_0098527677__p21981348181815">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0098527677__row21989482185"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="EN-US_TOPIC_0098527677__p18202134820189">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.2 "><p id="EN-US_TOPIC_0098527677__p92045489189">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.3 "><p id="EN-US_TOPIC_0098527677__p17206248171815">Project ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row49177768142544"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="EN-US_TOPIC_0098527677__p23976272142544">policy_id</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.2 "><p id="EN-US_TOPIC_0098527677__p63029893142544">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.3 "><p id="EN-US_TOPIC_0098527677__p5147694142544">Backup policy ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row53206241954"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="EN-US_TOPIC_0098527677__p1732019245512">key</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.2 "><p id="EN-US_TOPIC_0098527677__p14320122419511">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.3 "><p id="EN-US_TOPIC_0098527677__p1083805315049">Tag key</p>
<div class="note" id="EN-US_TOPIC_0098527677__note2907504615142"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0098527677__p6002113015142">If the key contains special characters, encode it using ASCII first.</p>
<p id="EN-US_TOPIC_0098527677__p2165614015240">For example, the number sign (#) will be displayed as <strong id="EN-US_TOPIC_0098527677__b929615181459">%23</strong> after encoding.</p>
</div></div>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0098527677__section18213184812181"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0098527677__ul22483156"><li id="EN-US_TOPIC_0098527677__li1021814">Example request<pre class="screen" id="EN-US_TOPIC_0098527677__screen2723943213570">DELETE /v2/{project_id}/backuppolicy/{policy_id}/tags/{key}</pre>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0098527677__section8277104817184"><h4 class="sectiontitle">Response</h4><ul id="EN-US_TOPIC_0098527677__ul1827954812187"><li id="EN-US_TOPIC_0098527677__li9279154821819">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0098527677__table112811848161817" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0098527677__row1128594817182"><th align="left" class="cellrowborder" valign="top" width="24.72%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="EN-US_TOPIC_0098527677__p1431817452527">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.18%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="EN-US_TOPIC_0098527677__p14225104112">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.1%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="EN-US_TOPIC_0098527677__p29622330">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0098527677__row22921348151817"><td class="cellrowborder" valign="top" width="24.72%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0098527677__p4295248131816">message</p>
</td>
<td class="cellrowborder" valign="top" width="20.18%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0098527677__p122991448181818">string</p>
</td>
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0098527677__p2300204817183">Error message returned after an error occurs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row13301114816189"><td class="cellrowborder" valign="top" width="24.72%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0098527677__p130215483188">code</p>
</td>
<td class="cellrowborder" valign="top" width="20.18%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0098527677__p17305144813183">string</p>
</td>
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0098527677__p173061448101814">Error code returned after an error occurs</p>
<p id="EN-US_TOPIC_0098527677__p730816482184">For details about error codes, see <a href="en-us_topic_0022472083.html">Error Codes</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="EN-US_TOPIC_0098527677__li1310848151819">Example response<pre class="screen" id="EN-US_TOPIC_0098527677__screen931394871818">{
"error": {
"message": "XXXX",
"code": "XXX"
}
}</pre>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0098527677__section10992114984011"><h4 class="sectiontitle">Status Codes</h4><ul id="EN-US_TOPIC_0098527677__ul499314917406"><li id="EN-US_TOPIC_0098527677__li169941549174017">Normal<p id="EN-US_TOPIC_0098527677__p1499624914405"><a name="EN-US_TOPIC_0098527677__li169941549174017"></a><a name="li169941549174017"></a>204</p>
</li><li id="EN-US_TOPIC_0098527677__li13997124904016">Abnormal
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0098527677__table20999649174011" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0098527677__row55350114010"><th align="left" class="cellrowborder" valign="top" width="43.419999999999995%" id="mcps1.3.5.2.2.1.1.3.1.1"><p id="EN-US_TOPIC_0098527677__p15825012406">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="56.58%" id="mcps1.3.5.2.2.1.1.3.1.2"><p id="EN-US_TOPIC_0098527677__p211185014408">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0098527677__row714185044010"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p14164502401">400 Bad Request</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p1318450114013">The server failed to process the request.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row02018506406"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p22135044019">401 Unauthorized</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p122315014020">You must enter the username and password to access the requested page.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row2251150134015"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p1925150174011">403 Forbidden</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p8274503409">You are forbidden to access the requested page.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row1227650164012"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p1228050104013">404 Not Found</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p5295509400">The server could not find the requested page.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row23175011403"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p23213504402">405 Method Not Allowed</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p43516501404">You are not allowed to use the method specified in the request.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row83611502407"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p16383504401">406 Not Acceptable</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p104055019400">The response generated by the server could not be accepted by the client.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row540650124015"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p2042165011405">407 Proxy Authentication Required</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p144475018402">You must use the proxy server for authentication so that the request can be processed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row184415074019"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p8466501405">408 Request Timeout</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p144818507405">The request timed out.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row1149175014019"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p165115044016">409 Conflict</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p15551750184018">The request could not be processed due to a conflict.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row25555064015"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p1357750144020">500 Internal Server Error</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p4582050164011">Failed to complete the request because of an internal service error.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row659750124014"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p1160105024013">501 Not Implemented</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p46211509405">Failed to complete the request because the server does not support the requested function.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row46495020409"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p96516502405">502 Bad Gateway</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p568175064017">Failed to complete the request because the request is invalid.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row569125054014"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p67255010404">503 Service Unavailable</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p47325016407">Failed to complete the request because the service is unavailable.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0098527677__row6736506407"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0098527677__p19751750174013">504 Gateway Timeout</p>
</td>
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0098527677__p376150114013">A gateway timeout error occurred.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0098527677__section1362310255432"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0098527677__p129821455154315">For details, see <a href="en-us_topic_0022472083.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0043410516.html">Backup Policies</a></div>
</div>
</div>