forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
125 lines
8.7 KiB
HTML
125 lines
8.7 KiB
HTML
<a name="mrs_02_0075"></a><a name="mrs_02_0075"></a>
|
|
|
|
<h1 class="topictitle1">Querying All Tags</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_02_0075__s2c4189363a344e22a1de70463f225881"><h4 class="sectiontitle">Function</h4><p id="mrs_02_0075__a8b7c2df67775435eb63431543ff994a1">This API is used to query all tag sets of a specified region.</p>
|
|
<p id="mrs_02_0075__a4c75bf4432cf4b24aa3cdf61bf0cb271"></p>
|
|
</div>
|
|
<div class="section" id="mrs_02_0075__sf0297651845047eaad627fb833801766"><h4 class="sectiontitle">URI</h4><ul id="mrs_02_0075__ul3299804811311"><li id="mrs_02_0075__li3701617811311">Format<p id="mrs_02_0075__p23636357575"><a name="mrs_02_0075__li3701617811311"></a><a name="li3701617811311"></a>GET /v1.1/{project_id}/clusters/tags</p>
|
|
</li><li id="mrs_02_0075__li29511803172648">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0075__t54dd4e66085d4193a9e4dff304acd0f5" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameter description</caption><thead align="left"><tr id="mrs_02_0075__r04d42e12ebb74f5886465a1c665aed00"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.4.1.1"><p id="mrs_02_0075__a02b975a6373a4037808781548f2470f4"><strong id="mrs_02_0075__b17817781210">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.4.1.2"><p id="mrs_02_0075__en-us_topic_0110707085_p388412816227"><strong id="mrs_02_0075__b183210157217">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.2.1.2.4.1.3"><p id="mrs_02_0075__abf58273383de49d9a5c4a0c8465d8c5a"><strong id="mrs_02_0075__b1278611810219">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_02_0075__r19443fe5cf19494eae78e1a5d90d5452"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="mrs_02_0075__a6467f31d1dba422f9c238fda74c94488">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.2 "><p id="mrs_02_0075__a767b39b559e84c6ba85a8d190cc90ff9">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.1.2.4.1.3 "><p id="mrs_02_0075__a455f9d9051904d85b859ee996a2f4f43">Project ID. For details on how to obtain the project ID, see <a href="mrs_02_0011.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_02_0075__sd36cd2850091427daa0a2a98000f4602"><h4 class="sectiontitle">Request</h4><p id="mrs_02_0075__a3b9ecb91d213426f88a91a3693d8309e"><strong id="mrs_02_0075__b18162114422119">Request parameters</strong></p>
|
|
<p id="mrs_02_0075__en-us_topic_0110707085_p148101115310">None.</p>
|
|
</div>
|
|
<div class="section" id="mrs_02_0075__sa3b67fdf174846b687d4d5029329b305"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0075__table95690185369" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameter description</caption><thead align="left"><tr id="mrs_02_0075__row8575818193612"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.2.2.4.1.1"><p id="mrs_02_0075__p4575181853612">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.2.2.4.1.2"><p id="mrs_02_0075__p145751818123617">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.2.2.4.1.3"><p id="mrs_02_0075__p25761518193614">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_02_0075__row1057791893611"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.2.4.1.1 "><p id="mrs_02_0075__p1414612262381">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.2.4.1.2 "><p id="mrs_02_0075__p16204192543610">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.2.4.1.3 "><p id="mrs_02_0075__p1620522520368">Tag list. For details, see <a href="#mrs_02_0075__table45211674182">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="mrs_02_0075__table45211674182"></a><a name="table45211674182"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0075__table45211674182" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="mrs_02_0075__b488092314427">tags</strong> parameter description</caption><thead align="left"><tr id="mrs_02_0075__row252312741816"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="mrs_02_0075__p452316771818"><strong id="mrs_02_0075__b2288811132113">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="mrs_02_0075__p195241731814"><strong id="mrs_02_0075__b11278172314213">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="mrs_02_0075__p152487181819"><strong id="mrs_02_0075__b1813061016">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_02_0075__row105271270182"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="mrs_02_0075__p95275716189">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="mrs_02_0075__p15528675188">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="mrs_02_0075__p752897201817">Tag key. A tag key can contain only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_02_0075__row1853018771810"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="mrs_02_0075__p1153016731813">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="mrs_02_0075__p1353077121812">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="mrs_02_0075__p653015761811">Tag value. A tag value can contain only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_02_0075__s81c3ed017afc4602b480dc53561c1799"><h4 class="sectiontitle">Example</h4><ul id="mrs_02_0075__u13fc91d2dd4a47508ebbae6c24fa7eb8"><li id="mrs_02_0075__lc52498d5653c4103af0ae95a491e8726">Example request</li></ul>
|
|
<p id="mrs_02_0075__ae53bfb0b50254c12bd0b8e5467b2373b">None.</p>
|
|
<ul id="mrs_02_0075__u48a16c23c170426a978bf504817c4b54"><li id="mrs_02_0075__l1a38e54e44974d2b803deb11c5556f7c">Example response</li></ul>
|
|
<pre class="screen" id="mrs_02_0075__se01bafc483784057b388c7795b41304c">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
</pre>
|
|
</div>
|
|
<div class="section" id="mrs_02_0075__s2cffe92837ac4e14a9afda7d5eb8e64e"><h4 class="sectiontitle">Status Code</h4><p id="mrs_02_0075__a3b853109df264f07b7a1a5b9f0e3b783"><a href="#mrs_02_0075__tb472a78155014ba18b372672dd8358e7">Table 4</a> describes the status code of this API.</p>
|
|
|
|
<div class="tablenoborder"><a name="mrs_02_0075__tb472a78155014ba18b372672dd8358e7"></a><a name="tb472a78155014ba18b372672dd8358e7"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0075__tb472a78155014ba18b372672dd8358e7" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Status code</caption><thead align="left"><tr id="mrs_02_0075__r201b1aef028b40ef962c83fd95b4861f"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.6.3.2.3.1.1"><p id="mrs_02_0075__a76d01c2d730241b6811241045aa51c7e"><strong id="mrs_02_0075__b171387571898">Status Code</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.6.3.2.3.1.2"><p id="mrs_02_0075__ad8353c4c972e4361a19786b6b50cac52"><strong id="mrs_02_0075__b1785081853">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_02_0075__ra779cebca1bd45db945a8c7504ed9896"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.6.3.2.3.1.1 "><p id="mrs_02_0075__a99d8911646c942dea59d9acfe54b2e7c">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.6.3.2.3.1.2 "><p id="mrs_02_0075__en-us_topic_0110707085_p39771881331">The operation is successful.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_02_0070.html">Tag Management APIs</a></div>
|
|
</div>
|
|
</div>
|
|
|