forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Wei, Hongmin <weihongmin1@huawei.com> Co-committed-by: Wei, Hongmin <weihongmin1@huawei.com>
199 lines
15 KiB
HTML
199 lines
15 KiB
HTML
<a name="EN-US_TOPIC_0067142131"></a><a name="EN-US_TOPIC_0067142131"></a>
|
|
|
|
<h1 class="topictitle1">Querying Tags of a Backup Policy</h1>
|
|
<div id="body1500448542447"><div class="section" id="EN-US_TOPIC_0067142131__section63962185"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0067142131__p23236933">This API is used to query the tags of a specific backup policy.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067142131__section38788755"><h4 class="sectiontitle">URI</h4><ul id="EN-US_TOPIC_0067142131__ul3143429"><li id="EN-US_TOPIC_0067142131__li28290863">URI format<p id="EN-US_TOPIC_0067142131__p9858548"><a name="EN-US_TOPIC_0067142131__li28290863"></a><a name="li28290863"></a>GET /v2/{project_id}/backuppolicy/{policy_id}/tags</p>
|
|
</li><li id="EN-US_TOPIC_0067142131__li21618074">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0067142131__table60344938" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__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_0067142131__p58179688">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__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_0067142131__p64170449">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__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_0067142131__p5147694142544">Backup policy ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0067142131__li23960570162236">Example request<pre class="screen" id="EN-US_TOPIC_0067142131__screen5589539210132">GET /v2/{project_id}/backuppolicy/{policy_id}/tags</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067142131__section13554483"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0067142131__p46526530153034">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067142131__section54881489"><h4 class="sectiontitle">Response</h4><ul id="EN-US_TOPIC_0067142131__ul20896204"><li id="EN-US_TOPIC_0067142131__li2520711120254">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0067142131__table65890561182249" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0067142131__row28557550182249"><th align="left" class="cellrowborder" valign="top" width="25.840000000000003%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="EN-US_TOPIC_0067142131__p1431817452527">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.74%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="EN-US_TOPIC_0067142131__p14225104112">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.42%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="EN-US_TOPIC_0067142131__p29622330">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0067142131__row59988132182249"><td class="cellrowborder" valign="top" width="25.840000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0067142131__p27200506182249">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.74%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0067142131__p20056653182249">list<dict></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.42%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0067142131__p13976217182249">List of tag details</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__row58677097182249"><td class="cellrowborder" valign="top" width="25.840000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0067142131__p55224391182249">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.74%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0067142131__p6473140182249">string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.42%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0067142131__p54562323182249">Tag key</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__row21298866182249"><td class="cellrowborder" valign="top" width="25.840000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0067142131__p47486561182249">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.74%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0067142131__p39982301182249">string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.42%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0067142131__p17340921182249">Tag value</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__row21850568182249"><td class="cellrowborder" valign="top" width="25.840000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0067142131__p25065570182249">message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.74%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0067142131__p38492801182249">string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.42%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0067142131__p30909140182249">Error message returned after an error occurs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__row9746812182249"><td class="cellrowborder" valign="top" width="25.840000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0067142131__p51294316182249">code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.74%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0067142131__p58164833182249">string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.42%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0067142131__p13730998182249">Error code returned after an error occurs</p>
|
|
<p id="EN-US_TOPIC_0067142131__p56470119182249">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_0067142131__li53848109">Example response<pre class="screen" id="EN-US_TOPIC_0067142131__screen45226402182332">{
|
|
"tags": [
|
|
{
|
|
"key": "RUNNING",
|
|
"value":"0781095c-b8ab-4ce5-99f3-4c5f6ff75319"
|
|
},
|
|
{
|
|
"key": "WAITING",
|
|
"values":"2016-12-03T06:24:34.467"
|
|
}
|
|
]
|
|
}</pre>
|
|
<p id="EN-US_TOPIC_0067142131__p36388601">or</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0067142131__screen20692691101149">{
|
|
"error": {
|
|
"message": "XXXX",
|
|
"code": "XXX"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067142131__section24171358"><h4 class="sectiontitle">Status Codes</h4><ul id="EN-US_TOPIC_0067142131__ul59834015"><li id="EN-US_TOPIC_0067142131__li1635228">Normal<p id="EN-US_TOPIC_0067142131__p14717055"><a name="EN-US_TOPIC_0067142131__li1635228"></a><a name="li1635228"></a>200</p>
|
|
</li><li id="EN-US_TOPIC_0067142131__li65344633">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0067142131__table51230787" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p12164329">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p26457778">The server failed to process the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p11009764">You must enter the username and password to access the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p32016662">You are forbidden to access the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p3802708716376">The server could not find the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p23586373163725">You are not allowed to use the method specified in the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p39357967163758">The response generated by the server could not be accepted by the client.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p20492948163754">You must use the proxy server for authentication so that the request can be processed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p1281119163738">The request timed out.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p59021712164354">The request could not be processed due to a conflict.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p28099101">Failed to complete the request because of an internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p58071768164938">Failed to complete the request because the server does not support the requested function.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p38622347164943">Failed to complete the request because the request is invalid.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p11401882164956">Failed to complete the request because the service is unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067142131__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_0067142131__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_0067142131__p24305815">A gateway timeout error occurred.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067142131__section1362310255432"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0067142131__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>
|
|
|