forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
135 lines
9.4 KiB
HTML
135 lines
9.4 KiB
HTML
<a name="waf_02_0095"></a><a name="waf_02_0095"></a>
|
|
|
|
<h1 class="topictitle1">Querying Project Tags</h1>
|
|
<div id="body1558942309611"><div class="section" id="waf_02_0095__section1634011210465"><h4 class="sectiontitle">Function Description</h4><p id="waf_02_0095__p2020084594615">This API is used to query all resource tags of a tenant in a specified project.</p>
|
|
</div>
|
|
<div class="section" id="waf_02_0095__section1493102044716"><h4 class="sectiontitle">URI</h4><ul id="waf_02_0095__ul8148735124718"><li id="waf_02_0095__li191482352474">URI format<p id="waf_02_0095__p1814833564714"><a name="waf_02_0095__li191482352474"></a><a name="li191482352474"></a>GET /v1/{project_id}/waf/tags</p>
|
|
</li></ul>
|
|
<ul id="waf_02_0095__ul114833544714"><li id="waf_02_0095__li2148173515478">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0095__table14540140174818" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="waf_02_0095__row16863802484"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.1"><p id="waf_02_0095__p10863130124814"><strong id="waf_02_0095__b1952073094212">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.2"><p id="waf_02_0095__p16863120194818"><strong id="waf_02_0095__b1430914324421">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.3"><p id="waf_02_0095__p686320194813"><strong id="waf_02_0095__b109861248124211">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.4"><p id="waf_02_0095__p15863190144819"><strong id="waf_02_0095__b427935014428">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0095__row98645017480"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="waf_02_0095__p58641409484">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="waf_02_0095__p1086414044813">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="waf_02_0095__p138644013485">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="waf_02_0095__p88648074810">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="waf_02_0095__section627517542484"><h4 class="sectiontitle">Request</h4><p id="waf_02_0095__p9720856164815">Request parameters</p>
|
|
<p id="waf_02_0095__p2031414334919">None</p>
|
|
</div>
|
|
<div class="section" id="waf_02_0095__section424312142494"><h4 class="sectiontitle">Response</h4><p id="waf_02_0095__p1127451684920">Response parameters</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0095__table197181144154920" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="waf_02_0095__row207785448494"><th align="left" class="cellrowborder" valign="top" width="33.690000000000005%" id="mcps1.3.4.3.2.4.1.1"><p id="waf_02_0095__p077884444910"><strong id="waf_02_0095__b8421143124314">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="41.99%" id="mcps1.3.4.3.2.4.1.2"><p id="waf_02_0095__p1477874419495"><strong id="waf_02_0095__b1680311494316">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.320000000000004%" id="mcps1.3.4.3.2.4.1.3"><p id="waf_02_0095__p9778174414913"><strong id="waf_02_0095__b1721512104319">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0095__row47781744194912"><td class="cellrowborder" valign="top" width="33.690000000000005%" headers="mcps1.3.4.3.2.4.1.1 "><p id="waf_02_0095__p57781244134912">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41.99%" headers="mcps1.3.4.3.2.4.1.2 "><p id="waf_02_0095__p18778164434917"><a href="#waf_02_0095__table433818302503">Table 3</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.320000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="waf_02_0095__p147787441494">Specifies the tag list.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="waf_02_0095__table433818302503"></a><a name="table433818302503"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0095__table433818302503" frame="border" border="1" rules="all"><caption><b>Table 3 </b>tags</caption><thead align="left"><tr id="waf_02_0095__row24381030115013"><th align="left" class="cellrowborder" valign="top" width="33.690000000000005%" id="mcps1.3.4.4.2.4.1.1"><p id="waf_02_0095__p3438730165013"><strong id="waf_02_0095__b0205537448">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="41.99%" id="mcps1.3.4.4.2.4.1.2"><p id="waf_02_0095__p84387308508"><strong id="waf_02_0095__b136033415443">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.320000000000004%" id="mcps1.3.4.4.2.4.1.3"><p id="waf_02_0095__p1438330195014"><strong id="waf_02_0095__b105733514418">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0095__row1843893015013"><td class="cellrowborder" valign="top" width="33.690000000000005%" headers="mcps1.3.4.4.2.4.1.1 "><p id="waf_02_0095__p9438193055019">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41.99%" headers="mcps1.3.4.4.2.4.1.2 "><p id="waf_02_0095__p24381730155018">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.320000000000004%" headers="mcps1.3.4.4.2.4.1.3 "><p id="waf_02_0095__p64385302506">Specifies the key. It contains a maximum of 36 Unicode characters.</p>
|
|
<p id="waf_02_0095__p74381830115014">The key value must comply with <a href="waf_02_0086.html">Character Set Specifications</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0095__row14438930145011"><td class="cellrowborder" valign="top" width="33.690000000000005%" headers="mcps1.3.4.4.2.4.1.1 "><p id="waf_02_0095__p7438193010503">values</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41.99%" headers="mcps1.3.4.4.2.4.1.2 "><p id="waf_02_0095__p2438133075010">List<String></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.320000000000004%" headers="mcps1.3.4.4.2.4.1.3 "><p id="waf_02_0095__p843973065014">Specifies the list of values. Each value contains a maximum of 43 Unicode characters.</p>
|
|
<p id="waf_02_0095__p1343917303507">The value must comply with <a href="waf_02_0086.html">Character Set Specifications</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="waf_02_0095__section18848559195113"><h4 class="sectiontitle">Example</h4><p id="waf_02_0095__p13406165015515"></p>
|
|
<p id="waf_02_0095__p14061550195118">Response example</p>
|
|
<pre class="screen" id="waf_02_0095__screen164061450165115">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
}
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="waf_02_0095__section980210325526"><h4 class="sectiontitle">Status Code</h4><div class="p" id="waf_02_0095__waf_02_0012_a652d4922b7df48fca0a65bc1a38ea5f2"><a href="#waf_02_0095__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0">Table 4</a> describes the normal status code returned by the API.
|
|
<div class="tablenoborder"><a name="waf_02_0095__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><a name="waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0095__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Status code</caption><thead align="left"><tr id="waf_02_0095__waf_02_0012_r3d6e2f205c444705bdbb9daaac74e575"><th align="left" class="cellrowborder" valign="top" width="22%" id="mcps1.3.6.2.2.2.4.1.1"><p id="waf_02_0095__waf_02_0012_af3c4073076f24eca88d94e3fa1effdc6">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.41%" id="mcps1.3.6.2.2.2.4.1.2"><p id="waf_02_0095__waf_02_0012_en-us_topic_0144911667_p4531342288">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="58.589999999999996%" id="mcps1.3.6.2.2.2.4.1.3"><p id="waf_02_0095__waf_02_0012_ada185614bba24140995b8123b3e9faa8">Meaning</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0095__waf_02_0012_rc7b2adc390904a1ba79e303017797786"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.6.2.2.2.4.1.1 "><p id="waf_02_0095__waf_02_0012_a93f3895d44bb4226934cc626ac50e37b">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.41%" headers="mcps1.3.6.2.2.2.4.1.2 "><p id="waf_02_0095__waf_02_0012_en-us_topic_0144911667_p7538425819">OK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.6.2.2.2.4.1.3 "><p id="waf_02_0095__waf_02_0012_en-us_topic_0144911667_p369874114414">The request has succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p id="waf_02_0095__waf_02_0012_en-us_topic_0144911667_p482819399522">For details about error status codes, see <a href="waf_02_0085.html">Status Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="waf_02_0091.html">Interconnection with TMS</a></div>
|
|
</div>
|
|
</div>
|
|
|