forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
149 lines
10 KiB
HTML
149 lines
10 KiB
HTML
<a name="css_03_0078"></a><a name="css_03_0078"></a>
|
|
|
|
<h1 class="topictitle1">Querying Tags of a Specified Cluster</h1>
|
|
<div id="body1566786660934"><div class="section" id="css_03_0078__section75737501719"><h4 class="sectiontitle">Function</h4><p id="css_03_0078__p36983521712">This API is used to query the tag information about a specified cluster.</p>
|
|
</div>
|
|
<div class="section" id="css_03_0078__section115741054178"><h4 class="sectiontitle">URI</h4><pre class="screen" id="css_03_0078__screen110063710489">GET /v1.0/{project_id}/css-cluster/{cluster_id}/tags</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0078__table85787561718" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="css_03_0078__row196991518175"><th align="left" class="cellrowborder" valign="top" width="19.830000000000002%" id="mcps1.3.2.3.2.5.1.1"><p id="css_03_0078__p12699185101719">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.4%" id="mcps1.3.2.3.2.5.1.2"><p id="css_03_0078__p1269975161713">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.73%" id="mcps1.3.2.3.2.5.1.3"><p id="css_03_0078__p469911514175">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="39.04%" id="mcps1.3.2.3.2.5.1.4"><p id="css_03_0078__p1869911561716">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0078__row10699115191716"><td class="cellrowborder" valign="top" width="19.830000000000002%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0078__p146994513174">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.4%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0078__p2699135131720">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.73%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0078__p1769911516173">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.04%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0078__p1869916551714">Project ID. For details, see <a href="css_03_0071.html">Obtaining a Project ID and Name</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0078__row1969995191712"><td class="cellrowborder" valign="top" width="19.830000000000002%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0078__p369914511174">cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.4%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0078__p136997512171">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.73%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0078__p14699135121714">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.04%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0078__p14699185101713">ID of the cluster to be queried.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0078__section258613510176"><h4 class="sectiontitle">Request</h4><p id="css_03_0078__p47016351695">None</p>
|
|
</div>
|
|
<div class="section" id="css_03_0078__section86215510171"><h4 class="sectiontitle">Response</h4><p id="css_03_0078__p187506323315"><a href="#css_03_0078__table12361175012485">Table 2</a> describes the response parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="css_03_0078__table12361175012485"></a><a name="table12361175012485"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0078__table12361175012485" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response</caption><thead align="left"><tr id="css_03_0078__row8361650124819"><th align="left" class="cellrowborder" valign="top" width="29.792979297929794%" id="mcps1.3.4.3.2.4.1.1"><p id="css_03_0078__p13361185020486">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.542154215421544%" id="mcps1.3.4.3.2.4.1.2"><p id="css_03_0078__p7361650104811">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="48.66486648664866%" id="mcps1.3.4.3.2.4.1.3"><p id="css_03_0078__p113611750144815">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0078__row19361650194812"><td class="cellrowborder" valign="top" width="29.792979297929794%" headers="mcps1.3.4.3.2.4.1.1 "><p id="css_03_0078__p103611550124811">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.542154215421544%" headers="mcps1.3.4.3.2.4.1.2 "><p id="css_03_0078__p33611150194815">Array of <a href="#css_03_0078__table0621135181710">tag</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.66486648664866%" headers="mcps1.3.4.3.2.4.1.3 "><p id="css_03_0078__p1736111504487">Tags in a cluster.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="css_03_0078__table0621135181710"></a><a name="table0621135181710"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0078__table0621135181710" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="css_03_0078__b76211985114">tags</strong> field description</caption><thead align="left"><tr id="css_03_0078__row17701135201711"><th align="left" class="cellrowborder" valign="top" width="30.083008300830084%" id="mcps1.3.4.4.2.4.1.1"><p id="css_03_0078__p18701455173">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.822182218221823%" id="mcps1.3.4.4.2.4.1.2"><p id="css_03_0078__p137016514178">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="48.09480948094809%" id="mcps1.3.4.4.2.4.1.3"><p id="css_03_0078__p9701165181715">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0078__row37013531713"><td class="cellrowborder" valign="top" width="30.083008300830084%" headers="mcps1.3.4.4.2.4.1.1 "><p id="css_03_0078__p3701559179">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.822182218221823%" headers="mcps1.3.4.4.2.4.1.2 "><p id="css_03_0078__p107015513172">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.09480948094809%" headers="mcps1.3.4.4.2.4.1.3 "><p id="css_03_0078__p170110515176">Tag key.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0078__row1162612171411"><td class="cellrowborder" valign="top" width="30.083008300830084%" headers="mcps1.3.4.4.2.4.1.1 "><p id="css_03_0078__p1162717216142">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.822182218221823%" headers="mcps1.3.4.4.2.4.1.2 "><p id="css_03_0078__p86273210147">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.09480948094809%" headers="mcps1.3.4.4.2.4.1.3 "><p id="css_03_0078__p1162762171419">Tag value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0078__section1516452839"><h4 class="sectiontitle">Examples</h4><p id="css_03_0078__p157006513176">Example request</p>
|
|
<pre class="screen" id="css_03_0078__screen1700357178">GET v1.0/458d905f22da49c39f609e3347d65723/css-cluster/4f3deec3-efa8-4598-bf91-560aad1377a3/tags</pre>
|
|
<p id="css_03_0078__p1370116581710">Example response</p>
|
|
<pre class="screen" id="css_03_0078__screen147011957173">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"value": "value1"
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"value": "value3"
|
|
}
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="css_03_0078__section262385181716"><h4 class="sectiontitle">Status Code</h4><p id="css_03_0078__p46921709171"><a href="#css_03_0078__table12321369178">Table 4</a> describes the status code.</p>
|
|
|
|
<div class="tablenoborder"><a name="css_03_0078__table12321369178"></a><a name="table12321369178"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0078__table12321369178" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Status code</caption><thead align="left"><tr id="css_03_0078__en-us_topic_0075288550_row1972183521418"><th align="left" class="cellrowborder" valign="top" width="25.240000000000002%" id="mcps1.3.6.3.2.4.1.1"><p id="css_03_0078__en-us_topic_0075288550_p14560134151414">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.21%" id="mcps1.3.6.3.2.4.1.2"><p id="css_03_0078__en-us_topic_0075288550_p5563194141411">Message</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="41.55%" id="mcps1.3.6.3.2.4.1.3"><p id="css_03_0078__en-us_topic_0075288550_p256616411143">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0078__en-us_topic_0075288550_row129720356144"><td class="cellrowborder" valign="top" width="25.240000000000002%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0078__en-us_topic_0075288550_p1957004131410">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.21%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0078__en-us_topic_0075288550_p165731141171419">BadRequest</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41.55%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0078__en-us_topic_0075288550_p65778413148">Invalid request.</p>
|
|
<p id="css_03_0078__en-us_topic_0075288550_p1557974171415">The client should not repeat the request without modifications.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0078__en-us_topic_0075288550_row8972103517147"><td class="cellrowborder" valign="top" width="25.240000000000002%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0078__en-us_topic_0075288550_p75841441191410">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.21%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0078__en-us_topic_0075288550_p258716416142">NotFound</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41.55%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0078__en-us_topic_0075288550_p15589154118141">The requested resource cannot be found.</p>
|
|
<p id="css_03_0078__en-us_topic_0075288550_p14590164151410">The client should not repeat the request without modifications.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0078__en-us_topic_0075288550_row297223511416"><td class="cellrowborder" valign="top" width="25.240000000000002%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0078__en-us_topic_0075288550_p13595164131416">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.21%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0078__en-us_topic_0075288550_p9598741131416">OK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41.55%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0078__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>
|
|
|