forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com> Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
146 lines
9.5 KiB
HTML
146 lines
9.5 KiB
HTML
<a name="css_03_0079"></a><a name="css_03_0079"></a>
|
|
|
|
<h1 class="topictitle1">Querying All Tags</h1>
|
|
<div id="body1566786660934"><div class="section" id="css_03_0079__section75737501719"><h4 class="sectiontitle">Function</h4><p id="css_03_0079__p36983521712">This API is used to query all tags in a specified region.</p>
|
|
</div>
|
|
<div class="section" id="css_03_0079__section115741054178"><h4 class="sectiontitle">URI</h4><pre class="screen" id="css_03_0079__screen110063710489">GET /v1.0/{project_id}/css-cluster/tags</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0079__table85787561718" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="css_03_0079__row196991518175"><th align="left" class="cellrowborder" valign="top" width="25.77%" id="mcps1.3.2.3.2.5.1.1"><p id="css_03_0079__p12699185101719">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.19%" id="mcps1.3.2.3.2.5.1.2"><p id="css_03_0079__p1269975161713">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.11%" id="mcps1.3.2.3.2.5.1.3"><p id="css_03_0079__p469911514175">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.930000000000003%" id="mcps1.3.2.3.2.5.1.4"><p id="css_03_0079__p1869911561716">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0079__row10699115191716"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0079__p146994513174">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.19%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0079__p2699135131720">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.11%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0079__p1769911516173">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.930000000000003%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0079__p1869916551714">Project ID. For details, see <a href="css_03_0071.html">Obtaining a Project ID and Name</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0079__section258613510176"><h4 class="sectiontitle">Request</h4><p id="css_03_0079__p9408125115328">None</p>
|
|
</div>
|
|
<div class="section" id="css_03_0079__section86215510171"><h4 class="sectiontitle">Response</h4><p id="css_03_0079__p187506323315"><a href="#css_03_0079__table0621135181710">Table 2</a> describes the response parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="css_03_0079__table0621135181710"></a><a name="table0621135181710"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0079__table0621135181710" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameters</caption><thead align="left"><tr id="css_03_0079__row17701135201711"><th align="left" class="cellrowborder" valign="top" width="21.582158215821583%" id="mcps1.3.4.3.2.4.1.1"><p id="css_03_0079__p18701455173">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.072207220722074%" id="mcps1.3.4.3.2.4.1.2"><p id="css_03_0079__p137016514178">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.34563456345635%" id="mcps1.3.4.3.2.4.1.3"><p id="css_03_0079__p9701165181715">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0079__row37013531713"><td class="cellrowborder" valign="top" width="21.582158215821583%" headers="mcps1.3.4.3.2.4.1.1 "><p id="css_03_0079__p5955115505613">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.072207220722074%" headers="mcps1.3.4.3.2.4.1.2 "><p id="css_03_0079__p107015513172">Array of <a href="#css_03_0079__table4597205181712">tag</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.34563456345635%" headers="mcps1.3.4.3.2.4.1.3 "><p id="css_03_0079__p170110515176">Tags in a cluster. For details, see <a href="#css_03_0079__table4597205181712">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="css_03_0079__table4597205181712"></a><a name="table4597205181712"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0079__table4597205181712" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="css_03_0079__b17557142914322">tags</strong> field description</caption><thead align="left"><tr id="css_03_0079__row187001551176"><th align="left" class="cellrowborder" valign="top" width="21.78%" id="mcps1.3.4.4.2.4.1.1"><p id="css_03_0079__p9700145121717">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.9%" id="mcps1.3.4.4.2.4.1.2"><p id="css_03_0079__p570012510179">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.32000000000001%" id="mcps1.3.4.4.2.4.1.3"><p id="css_03_0079__p117003551718">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0079__row117009591711"><td class="cellrowborder" valign="top" width="21.78%" headers="mcps1.3.4.4.2.4.1.1 "><p id="css_03_0079__p1370013512174">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.9%" headers="mcps1.3.4.4.2.4.1.2 "><p id="css_03_0079__p770020521719">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.32000000000001%" headers="mcps1.3.4.4.2.4.1.3 "><p id="css_03_0079__p7955520351">Tag key.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0079__row17700852177"><td class="cellrowborder" valign="top" width="21.78%" headers="mcps1.3.4.4.2.4.1.1 "><p id="css_03_0079__p12700450178">values</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.9%" headers="mcps1.3.4.4.2.4.1.2 "><p id="css_03_0079__p370017511174">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.32000000000001%" headers="mcps1.3.4.4.2.4.1.3 "><p id="css_03_0079__p147001955176">Tag value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0079__section1516452839"><h4 class="sectiontitle">Examples</h4><p id="css_03_0079__p157006513176">Example request</p>
|
|
<pre class="screen" id="css_03_0079__screen1700357178">GET v1.0/458d905f22da49c39f609e3347d65723/css-cluster/tags</pre>
|
|
<p id="css_03_0079__p1370116581710">Example response</p>
|
|
<pre class="screen" id="css_03_0079__screen147011957173">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
}
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="css_03_0079__section262385181716"><h4 class="sectiontitle">Status Code</h4><p id="css_03_0079__p46921709171"><a href="#css_03_0079__table12321369178">Table 4</a> describes the status code.</p>
|
|
|
|
<div class="tablenoborder"><a name="css_03_0079__table12321369178"></a><a name="table12321369178"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0079__table12321369178" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Status code</caption><thead align="left"><tr id="css_03_0079__en-us_topic_0075288550_row1972183521418"><th align="left" class="cellrowborder" valign="top" width="33%" id="mcps1.3.6.3.2.4.1.1"><p id="css_03_0079__en-us_topic_0075288550_p14560134151414">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.51%" id="mcps1.3.6.3.2.4.1.2"><p id="css_03_0079__en-us_topic_0075288550_p5563194141411">Message</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="42.49%" id="mcps1.3.6.3.2.4.1.3"><p id="css_03_0079__en-us_topic_0075288550_p256616411143">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0079__en-us_topic_0075288550_row129720356144"><td class="cellrowborder" valign="top" width="33%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0079__en-us_topic_0075288550_p1957004131410">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.51%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0079__en-us_topic_0075288550_p165731141171419">BadRequest</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.49%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0079__en-us_topic_0075288550_p65778413148">Invalid request.</p>
|
|
<p id="css_03_0079__en-us_topic_0075288550_p1557974171415">Modify the request instead of retrying.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0079__en-us_topic_0075288550_row8972103517147"><td class="cellrowborder" valign="top" width="33%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0079__en-us_topic_0075288550_p75841441191410">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.51%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0079__en-us_topic_0075288550_p258716416142">NotFound</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.49%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0079__en-us_topic_0075288550_p15589154118141">The requested resource cannot be found.</p>
|
|
<p id="css_03_0079__en-us_topic_0075288550_p14590164151410">Modify the request instead of retrying.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0079__en-us_topic_0075288550_row297223511416"><td class="cellrowborder" valign="top" width="33%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0079__en-us_topic_0075288550_p13595164131416">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.51%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0079__en-us_topic_0075288550_p9598741131416">OK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.49%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0079__en-us_topic_0075288550_p659994115146">The request is processed successfully.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_03_0077.html">Tag Management APIs</a></div>
|
|
</div>
|
|
</div>
|
|
|