forked from docs/doc-exports
Reviewed-by: Muller, Martin <martin.muller@t-systems.com> Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
108 lines
7.3 KiB
HTML
108 lines
7.3 KiB
HTML
<a name="evs_04_2039"></a><a name="evs_04_2039"></a>
|
|
|
|
<h1 class="topictitle1">Querying Tags of an EVS Resource by Key (Deprecated)</h1>
|
|
<div id="body1501053401642"><div class="section" id="evs_04_2039__section5299350116935"><h4 class="sectiontitle">Function</h4><p id="evs_04_2039__p6461522216935">This API is used to query tags of an EVS resource by key.</p>
|
|
<div class="notice" id="evs_04_2039__note182951651102614"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="evs_04_2039__p29514165276">This API has been deprecated. Use another API. For details, see <a href="evs_04_3015.html">Querying Tags of an EVS Disk</a>.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="evs_04_2039__section4466609116935"><h4 class="sectiontitle">Constraints</h4><p id="evs_04_2039__p6118358516935">None</p>
|
|
</div>
|
|
<div class="section" id="evs_04_2039__section1378135716935"><h4 class="sectiontitle">URI</h4><ul id="evs_04_2039__ul4254812316935"><li id="evs_04_2039__li4738879116935">URI format<p id="evs_04_2039__p65672080161524"><a name="evs_04_2039__li4738879116935"></a><a name="li4738879116935"></a>GET /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}/{key}</p>
|
|
</li><li id="evs_04_2039__li1328688716935">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2039__table28484833104128" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2039__row60547305104128"><th align="left" class="cellrowborder" valign="top" width="28.57%" id="mcps1.3.3.2.2.1.1.4.1.1"><p id="evs_04_2039__p5384679104128">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26.529999999999998%" id="mcps1.3.3.2.2.1.1.4.1.2"><p id="evs_04_2039__p33505894104128">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.9%" id="mcps1.3.3.2.2.1.1.4.1.3"><p id="evs_04_2039__p29622926104128">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2039__row50646790104128"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.3.2.2.1.1.4.1.1 "><p id="evs_04_2039__p8749302104128">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.2.1.1.4.1.2 "><p id="evs_04_2039__p37604871104128">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.3.2.2.1.1.4.1.3 "><p id="evs_04_2039__p26095712104128">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2039__row40869685152038"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.3.2.2.1.1.4.1.1 "><p id="evs_04_2039__p33171521152058">resource_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.2.1.1.4.1.2 "><p id="evs_04_2039__p2538652152058">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.3.2.2.1.1.4.1.3 "><p id="evs_04_2039__p42707547152038">Specifies the resource type. The value can be <strong id="evs_04_2039__b842352706193556">volumes</strong>, <strong id="evs_04_2039__b84235270619367">snapshots</strong>, or <strong id="evs_04_2039__b842352706193615">backups</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2039__row255647152042"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.3.2.2.1.1.4.1.1 "><p id="evs_04_2039__p38738380152058">resource_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.2.1.1.4.1.2 "><p id="evs_04_2039__p50801043152058">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.3.2.2.1.1.4.1.3 "><p id="evs_04_2039__p33198438152042">Specifies the resource ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2039__row41101519155425"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.3.2.2.1.1.4.1.1 "><p id="evs_04_2039__p40888766155425">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.2.1.1.4.1.2 "><p id="evs_04_2039__p23655745155425">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.3.2.2.1.1.4.1.3 "><p id="evs_04_2039__p37067201155425">Specifies the key of the tag.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2039__section5573802716935"><h4 class="sectiontitle">Request</h4><p id="evs_04_2039__p1848634016935">None</p>
|
|
</div>
|
|
<div class="section" id="evs_04_2039__section3215934016935"><h4 class="sectiontitle">Response</h4><ul id="evs_04_2039__ul5476973316935"><li id="evs_04_2039__li2316555316935">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2039__table716338716935" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2039__row2937460716935"><th align="left" class="cellrowborder" valign="top" width="19.05%" id="mcps1.3.5.2.1.1.1.4.1.1"><p id="evs_04_2039__p3053299616935">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.810000000000002%" id="mcps1.3.5.2.1.1.1.4.1.2"><p id="evs_04_2039__p5725363416935">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.14%" id="mcps1.3.5.2.1.1.1.4.1.3"><p id="evs_04_2039__p3278200616935">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2039__row3809682916935"><td class="cellrowborder" valign="top" width="19.05%" headers="mcps1.3.5.2.1.1.1.4.1.1 "><p id="evs_04_2039__p6594430016935">tag</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.810000000000002%" headers="mcps1.3.5.2.1.1.1.4.1.2 "><p id="evs_04_2039__p3988810816935">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.5.2.1.1.1.4.1.3 "><p id="evs_04_2039__p4842047816935">Specifies the key-value pair of the tag.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="evs_04_2039__ul3313111816935"><li id="evs_04_2039__li2974460716935">Example response<pre class="screen" id="evs_04_2039__screen6637487416935">{
|
|
"tag": {
|
|
"key_0": "value_0"
|
|
}
|
|
}</pre>
|
|
<p id="evs_04_2039__p52821068113531">or</p>
|
|
<pre class="screen" id="evs_04_2039__screen4594167995947">{
|
|
"error": {
|
|
"message": "XXXX",
|
|
"code": "XXX"
|
|
}
|
|
}</pre>
|
|
<p id="evs_04_2039__p5655715720175">In the preceding example, <strong id="evs_04_2039__b842352706143959">error</strong> indicates a general error, for example, <strong id="evs_04_2039__b842352706144438">badRequest</strong> or <strong id="evs_04_2039__b842352706144454">itemNotFound</strong>. An example is provided as follows:</p>
|
|
<pre class="screen" id="evs_04_2039__screen10421332154612">{
|
|
"itemNotFound": {
|
|
"message": "Tags item was not found",
|
|
"code": 404
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2039__section6050296116935"><h4 class="sectiontitle">Status Codes</h4><ul id="evs_04_2039__ul179279516935"><li id="evs_04_2039__li1613516116935">Normal<p id="evs_04_2039__p1099872616935"><a name="evs_04_2039__li1613516116935"></a><a name="li1613516116935"></a>200</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2039__section431317151242"><h4 class="sectiontitle">Error Codes</h4><p id="evs_04_2039__evs_04_2013_p783819215242">For details, see <a href="evs_04_0038.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_04_2024.html">Tag Management</a></div>
|
|
</div>
|
|
</div>
|
|
|