doc-exports/docs/vbs/api-ref/en-us_topic_0043410562.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

240 lines
18 KiB
HTML

<a name="EN-US_TOPIC_0043410562"></a><a name="EN-US_TOPIC_0043410562"></a>
<h1 class="topictitle1">Disassociating Resources from a Backup Policy</h1>
<div id="body1480660600412"><div class="section" id="EN-US_TOPIC_0043410562__section63962185"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0043410562__p23236933">This API is used to disassociate one or more resources from a backup policy.</p>
</div>
<div class="section" id="EN-US_TOPIC_0043410562__section38788755"><h4 class="sectiontitle">URI</h4><ul id="EN-US_TOPIC_0043410562__ul3143429"><li id="EN-US_TOPIC_0043410562__li28290863">URI format<p id="EN-US_TOPIC_0043410562__p9858548"><a name="EN-US_TOPIC_0043410562__li28290863"></a><a name="li28290863"></a>POST /v2/{project_id}/backuppolicyresources/{policy_id}/deleted_resources</p>
</li><li id="EN-US_TOPIC_0043410562__li21618074">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0043410562__table60344938" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0043410562__row59011071"><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_0043410562__p15167431">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_0043410562__p20602375">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_0043410562__p58179688">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0043410562__row14934289"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="EN-US_TOPIC_0043410562__p1717931">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_0043410562__p4934750">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_0043410562__p64170449">Project ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row5830466319813"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="EN-US_TOPIC_0043410562__p2505725719813">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_0043410562__p1637192319813">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_0043410562__p5105740619813">Backup policy ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0043410562__section13554483"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0043410562__ul30423852"><li id="EN-US_TOPIC_0043410562__li5379216">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0043410562__table48412952" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0043410562__row28932175"><th align="left" class="cellrowborder" valign="top" width="26.697330266973307%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="EN-US_TOPIC_0043410562__p61804813">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12.968703129687032%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="EN-US_TOPIC_0043410562__p40133923">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.35836416358364%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="EN-US_TOPIC_0043410562__p14225104112">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="43.97560243975603%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="EN-US_TOPIC_0043410562__p29622330">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0043410562__row50598521"><td class="cellrowborder" valign="top" width="26.697330266973307%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="EN-US_TOPIC_0043410562__p62709075141636">resources</p>
</td>
<td class="cellrowborder" valign="top" width="12.968703129687032%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="EN-US_TOPIC_0043410562__p46270351141636">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.35836416358364%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="EN-US_TOPIC_0043410562__p56910918141636">list&lt;dict&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="43.97560243975603%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="EN-US_TOPIC_0043410562__p46381666141636">Information about the associated resource</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row21736211"><td class="cellrowborder" valign="top" width="26.697330266973307%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="EN-US_TOPIC_0043410562__p56476584141636">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="12.968703129687032%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="EN-US_TOPIC_0043410562__p11200558141636">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.35836416358364%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="EN-US_TOPIC_0043410562__p34830005141636">string</p>
</td>
<td class="cellrowborder" valign="top" width="43.97560243975603%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="EN-US_TOPIC_0043410562__p2658148141636">Resource ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="EN-US_TOPIC_0043410562__ul22483156"><li id="EN-US_TOPIC_0043410562__li1021814">Example request<pre class="screen" id="EN-US_TOPIC_0043410562__screen25568509141719">{
"resources": [
{
"resource_id": "bce8d47a-af17-4169-901f-4c7ae9f29c2c"
}
]
}</pre>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0043410562__section54881489"><h4 class="sectiontitle">Response</h4><ul id="EN-US_TOPIC_0043410562__ul20896204"><li id="EN-US_TOPIC_0043410562__li2520711120254">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0043410562__table2553741120254" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0043410562__row84520220254"><th align="left" class="cellrowborder" valign="top" width="29.182918291829186%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="EN-US_TOPIC_0043410562__p13266172411430">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.471547154715473%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="EN-US_TOPIC_0043410562__p112661924124316">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.345534553455344%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="EN-US_TOPIC_0043410562__p22662244436">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0043410562__row894248020254"><td class="cellrowborder" valign="top" width="29.182918291829186%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0043410562__p66058194175518">success_resources</p>
</td>
<td class="cellrowborder" valign="top" width="15.471547154715473%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0043410562__p46347549175518">list&lt;dict&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="55.345534553455344%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0043410562__p25472099175518">List of successfully disassociated resources</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row5784910817556"><td class="cellrowborder" valign="top" width="29.182918291829186%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0043410562__p53393589175518">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="15.471547154715473%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0043410562__p39485486175518">string</p>
</td>
<td class="cellrowborder" valign="top" width="55.345534553455344%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0043410562__p31870002175518">Resource ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row17830778175510"><td class="cellrowborder" valign="top" width="29.182918291829186%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0043410562__p12639851175518">fail_resources</p>
</td>
<td class="cellrowborder" valign="top" width="15.471547154715473%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0043410562__p63501382175518">list&lt;dict&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="55.345534553455344%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0043410562__p35977553175518">List of the resources that fail to be disassociated</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row45118677175514"><td class="cellrowborder" valign="top" width="29.182918291829186%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0043410562__p57955965175518">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="15.471547154715473%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0043410562__p23058063175518">string</p>
</td>
<td class="cellrowborder" valign="top" width="55.345534553455344%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0043410562__p89659175518">Resource ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row4113847020254"><td class="cellrowborder" valign="top" width="29.182918291829186%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0043410562__p4388173520254">message</p>
</td>
<td class="cellrowborder" valign="top" width="15.471547154715473%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0043410562__p534483917131">string</p>
</td>
<td class="cellrowborder" valign="top" width="55.345534553455344%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0043410562__p1103955520254">Error message returned after an error occurs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row3224713720254"><td class="cellrowborder" valign="top" width="29.182918291829186%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0043410562__p6188131520254">code</p>
</td>
<td class="cellrowborder" valign="top" width="15.471547154715473%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0043410562__p3027879417131">string</p>
</td>
<td class="cellrowborder" valign="top" width="55.345534553455344%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0043410562__p6179451720254">Error code returned after an error occurs</p>
<p id="EN-US_TOPIC_0043410562__p1927974620254">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_0043410562__li53848109">Example response<pre class="screen" id="EN-US_TOPIC_0043410562__screen7832361163837">{
"success_resources": [],
"fail_resources": [
{
"resource_id": "bbba7509-f457-4732-97f1-a8e24b6ed9bc"
}]
}</pre>
<p id="EN-US_TOPIC_0043410562__p36388601">or</p>
<pre class="screen" id="EN-US_TOPIC_0043410562__screen20692691101149">{
"error": {
"code": "XXXX",
"message": "XXX"
}
}</pre>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0043410562__section24171358"><h4 class="sectiontitle">Status Codes</h4><ul id="EN-US_TOPIC_0043410562__ul59834015"><li id="EN-US_TOPIC_0043410562__li1635228">Normal<p id="EN-US_TOPIC_0043410562__p14717055"><a name="EN-US_TOPIC_0043410562__li1635228"></a><a name="li1635228"></a>200</p>
</li><li id="EN-US_TOPIC_0043410562__li65344633">Abnormal
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0043410562__table51230787" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0043410562__row60503138"><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_0043410562__p1807185">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_0043410562__p12164329">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0043410562__row45786577"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p17725233">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_0043410562__p26457778">The server failed to process the request.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row36793414"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p27476571">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_0043410562__p11009764">You must enter the username and password to access the requested page.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row31979016"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p40163483">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_0043410562__p32016662">You are forbidden to access the requested page.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row4499052116376"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p2035357816376">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_0043410562__p3802708716376">The server could not find the requested page.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row8462523163725"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p14375766163725">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_0043410562__p23586373163725">You are not allowed to use the method specified in the request.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row60343628163758"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p55995701163758">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_0043410562__p39357967163758">The response generated by the server could not be accepted by the client.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row32079544163754"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p48306260163754">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_0043410562__p20492948163754">You must use the proxy server for authentication so that the request can be processed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row28680770163738"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p41441040163738">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_0043410562__p1281119163738">The request timed out.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row65552906164354"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p8185203164354">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_0043410562__p59021712164354">The request could not be processed due to a conflict.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row19714506"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p53371190">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_0043410562__p28099101">Failed to complete the request because of an internal service error.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row32688750164938"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p30543097164938">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_0043410562__p58071768164938">Failed to complete the request because the server does not support the requested function.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row11809518164943"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p17046908164943">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_0043410562__p38622347164943">Failed to complete the request because the request is invalid.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row38399341164956"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p23338889164956">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_0043410562__p11401882164956">Failed to complete the request because the service is unavailable.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0043410562__row51565323"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0043410562__p16041657">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_0043410562__p24305815">A gateway timeout error occurred.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0043410562__section1362310255432"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0043410562__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>