forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
158 lines
13 KiB
HTML
158 lines
13 KiB
HTML
<a name="EN-US_TOPIC_0000001185991708"></a><a name="EN-US_TOPIC_0000001185991708"></a>
|
|
|
|
<h1 class="topictitle1">Querying Tags in a Specified Project</h1>
|
|
<div id="body1524298666228"><div class="section" id="EN-US_TOPIC_0000001185991708__section35368561349"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001185991708__p3653115611349">This API is used to query all tags of a tenant for a specified resource type in a specified project.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001185991708__section1653755613348"><h4 class="sectiontitle">URI</h4><ul id="EN-US_TOPIC_0000001185991708__ul3653125614349"><li id="EN-US_TOPIC_0000001185991708__li565325643416">URI format<pre class="screen" id="EN-US_TOPIC_0000001185991708__screen19987721027">GET /v1.0/{project_id}/clusters/tags</pre>
|
|
</li><li id="EN-US_TOPIC_0000001185991708__li4653756173416">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001185991708__table45441956143415" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001185991708__row106536561341"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="EN-US_TOPIC_0000001185991708__p56531256193417"><strong id="EN-US_TOPIC_0000001185991708__b1458317359442">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="EN-US_TOPIC_0000001185991708__p1265335615342"><strong id="EN-US_TOPIC_0000001185991708__b84235270684256">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="EN-US_TOPIC_0000001185991708__p19653195610349"><strong>Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="EN-US_TOPIC_0000001185991708__p1265318564341"><strong id="EN-US_TOPIC_0000001185991708__b17892438164419">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001185991708__row86536563343"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="EN-US_TOPIC_0000001185991708__p18653105653412">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="EN-US_TOPIC_0000001185991708__p1365355611348">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="EN-US_TOPIC_0000001185991708__p1965355623414">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="EN-US_TOPIC_0000001185991708__p14202648155510">Project ID. For details about how to obtain the project ID, see <a href="dws_02_0011.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001185991708__section1551856163419"><h4 class="sectiontitle">Request Message</h4><ul id="EN-US_TOPIC_0000001185991708__ul165375612342"><li id="EN-US_TOPIC_0000001185991708__li02211835135019">Sample request<pre class="screen" id="EN-US_TOPIC_0000001185991708__screen46710426504">GET /v1.0/89cd04f168b84af6be287f71730fdb4b/clusters/tags</pre>
|
|
</li><li id="EN-US_TOPIC_0000001185991708__li19655115616344">Parameter description<p id="EN-US_TOPIC_0000001185991708__p1465535615348"><a name="EN-US_TOPIC_0000001185991708__li19655115616344"></a><a name="li19655115616344"></a>None</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001185991708__section355385618347"><h4 class="sectiontitle">Response Message</h4><ul id="EN-US_TOPIC_0000001185991708__ul135312012518"><li id="EN-US_TOPIC_0000001185991708__li165520014516">Sample response<pre class="screen" id="EN-US_TOPIC_0000001185991708__screen3579018512">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001185991708__ul196551656163417"><li id="EN-US_TOPIC_0000001185991708__li176551956193416">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001185991708__table11557185663418" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001185991708__row5655105616342"><th align="left" class="cellrowborder" valign="top" width="16.16161616161616%" id="mcps1.3.4.3.1.1.2.5.1.1"><p id="EN-US_TOPIC_0000001185991708__p106554563348"><strong id="EN-US_TOPIC_0000001185991708__b7905446114411">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.14141414141414%" id="mcps1.3.4.3.1.1.2.5.1.2"><p id="EN-US_TOPIC_0000001185991708__p13655156163416"><strong id="EN-US_TOPIC_0000001185991708__b327214227">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.14141414141414%" id="mcps1.3.4.3.1.1.2.5.1.3"><p id="EN-US_TOPIC_0000001185991708__p1265525663415"><strong>Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.55555555555556%" id="mcps1.3.4.3.1.1.2.5.1.4"><p id="EN-US_TOPIC_0000001185991708__p1965575613418"><strong id="EN-US_TOPIC_0000001185991708__b92931949114413">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001185991708__row3655185643411"><td class="cellrowborder" valign="top" width="16.16161616161616%" headers="mcps1.3.4.3.1.1.2.5.1.1 "><p id="EN-US_TOPIC_0000001185991708__p865511569349">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.14141414141414%" headers="mcps1.3.4.3.1.1.2.5.1.2 "><p id="EN-US_TOPIC_0000001185991708__p146551656203410">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.14141414141414%" headers="mcps1.3.4.3.1.1.2.5.1.3 "><p id="EN-US_TOPIC_0000001185991708__p20655175612344">List<<a href="#EN-US_TOPIC_0000001185991708__table10385122843">tag</a>></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.55555555555556%" headers="mcps1.3.4.3.1.1.2.5.1.4 "><p id="EN-US_TOPIC_0000001185991708__p66551056193416">Tag list.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001185991708__table10385122843"></a><a name="table10385122843"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001185991708__table10385122843" frame="border" border="1" rules="all"><caption><b>Table 3 </b>tag</caption><thead align="left"><tr id="EN-US_TOPIC_0000001185991708__row439616219420"><th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.4.3.1.2.2.5.1.1"><p id="EN-US_TOPIC_0000001185991708__p1940118218417"><strong id="EN-US_TOPIC_0000001185991708__b1116520441">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.4.3.1.2.2.5.1.2"><p id="EN-US_TOPIC_0000001185991708__p04038217417"><strong id="EN-US_TOPIC_0000001185991708__b548169152">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.4.3.1.2.2.5.1.3"><p id="EN-US_TOPIC_0000001185991708__p144051125412"><strong>Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.4.3.1.2.2.5.1.4"><p id="EN-US_TOPIC_0000001185991708__p194071124410"><strong id="EN-US_TOPIC_0000001185991708__b104051254134415">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001185991708__row194101821416"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.3.1.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001185991708__p14413122245">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.1.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001185991708__p114153214416">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.3.1.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001185991708__p1941782642">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.3.1.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001185991708__p1265110281282">Key. A tag key can contain a maximum of 36 Unicode characters, which cannot be null. The first and last characters cannot be spaces. </p>
|
|
<p id="EN-US_TOPIC_0000001185991708__p1431781718458">It can contain uppercase letters (A to Z), lowercase letters (a to z), digits (0-9), hyphens (-), and underscores (_).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001185991708__row64181625417"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.3.1.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001185991708__p942020216411">values</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.1.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001185991708__p4434324417">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.3.1.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001185991708__p9435129415">List<String></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.3.1.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001185991708__p12437123414">Value. A tag value can contain a maximum of 43 Unicode characters, which can be null. The first and last characters cannot be spaces. It can contain uppercase letters (A to Z), lowercase letters (a to z), digits (0-9), hyphens (-), and underscores (_).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001185991708__section15576145612346"><h4 class="sectiontitle">Status Code</h4><ul id="EN-US_TOPIC_0000001185991708__ul76566568341"><li id="EN-US_TOPIC_0000001185991708__li865675617340">Normal<p id="EN-US_TOPIC_0000001185991708__p18571310163"><a name="EN-US_TOPIC_0000001185991708__li865675617340"></a><a name="li865675617340"></a>200</p>
|
|
</li><li id="EN-US_TOPIC_0000001185991708__li7656175653416">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001185991708__table2581125633415" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Returned value for failed requests</caption><thead align="left"><tr id="EN-US_TOPIC_0000001185991708__row9656556123414"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.5.2.2.1.2.3.1.1"><p id="EN-US_TOPIC_0000001185991708__p16561556183411"><strong id="EN-US_TOPIC_0000001185991708__b842352706153338">Returned Value</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.5.2.2.1.2.3.1.2"><p id="EN-US_TOPIC_0000001185991708__p3656956123419"><strong id="EN-US_TOPIC_0000001185991708__b18615180124511">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001185991708__row265605653411"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001185991708__p186565568344">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001185991708__p18656145614343">Invalid parameters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001185991708__row20656556143418"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001185991708__p116562565344">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001185991708__p5656195633411">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001185991708__row1865620565340"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001185991708__p465620561347">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001185991708__p1765665633412">You do not have the permission to perform the operation.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001185991708__row1565695618344"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001185991708__p265625683414">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001185991708__p1965615567341">The requested resource was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001185991708__row146561556163420"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.2.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001185991708__p106561256133418">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.2.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001185991708__p1465615610349">Internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_02_0045.html">Tag Management APIs</a></div>
|
|
</div>
|
|
</div>
|
|
|