forked from docs/doc-exports
move doc sources to other location Reviewed-by: OpenTelekomCloud Bot <None>
112 lines
8.6 KiB
HTML
112 lines
8.6 KiB
HTML
<a name="EN-US_TOPIC_0000001207783562"></a><a name="EN-US_TOPIC_0000001207783562"></a>
|
|
|
|
<h1 class="topictitle1">Querying Tags of an ECS (Discarded)</h1>
|
|
<div id="body0000001207783562"><div class="section" id="EN-US_TOPIC_0000001207783562__section192222559445"><h4 class="sectiontitle">Function</h4><ul id="EN-US_TOPIC_0000001207783562__ul9401946101513"><li id="EN-US_TOPIC_0000001207783562__li23991146171520">This API is used to query the tags of a specified ECS.</li><li id="EN-US_TOPIC_0000001207783562__li5401124615158">The Tag Management Service (TMS) uses this API to query all tags of an ECS.</li></ul>
|
|
<div class="note" id="EN-US_TOPIC_0000001207783562__note19426113014247"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001207783562__p154275308243">This API has been discarded. Use the API described in <a href="en-us_topic_0167811967.html">Querying Tags of an ECS</a>.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207783562__section222245513448"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000001207783562__p536313559443">GET /v1/{project_id}/servers/{server_id}/tags</p>
|
|
<div class="p" id="EN-US_TOPIC_0000001207783562__p1127133275211"><a href="#EN-US_TOPIC_0000001207783562__table431622145919">Table 1</a> lists the parameters.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001207783562__table431622145919"></a><a name="table431622145919"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001207783562__table431622145919" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001207783562__row1331652135919"><th align="left" class="cellrowborder" valign="top" width="31.25%" id="mcps1.3.2.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001207783562__p7707213">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.25%" id="mcps1.3.2.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001207783562__p20304554">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.5%" id="mcps1.3.2.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001207783562__p34056167">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001207783562__row19316172118595"><td class="cellrowborder" valign="top" width="31.25%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001207783562__p1531602118592">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.25%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001207783562__p0316521195914">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.5%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001207783562__p37593705">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001207783562__row333372112590"><td class="cellrowborder" valign="top" width="31.25%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001207783562__p2333142117596">server_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.25%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001207783562__p13333152110598">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.5%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001207783562__p16333021165919">Specifies the ECS ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207783562__section625475584419"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0000001207783562__p8776355185220">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207783562__section1825415515447"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0000001207783562__p119672012195312"><a href="#EN-US_TOPIC_0000001207783562__table725495518449">Table 2</a> describes the response parameter.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001207783562__table725495518449"></a><a name="table725495518449"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001207783562__table725495518449" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameter</caption><thead align="left"><tr id="EN-US_TOPIC_0000001207783562__row3363185511442"><th align="left" class="cellrowborder" valign="top" width="33%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000001207783562__p15806308">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0000001207783562__p21995508">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="41%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0000001207783562__p36805753">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001207783562__row4363105574411"><td class="cellrowborder" valign="top" width="33%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001207783562__p73639556446">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001207783562__p103634552442">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001207783562__p53631955194415">Specifies tags.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001207783562__table109271241135919" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="EN-US_TOPIC_0000001207783562__b84235270695528">resource_tag</strong> field description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001207783562__row14941114111598"><th align="left" class="cellrowborder" valign="top" width="25.929999999999996%" id="mcps1.3.4.4.2.4.1.1"><p id="EN-US_TOPIC_0000001207783562__p1729465314372">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.75%" id="mcps1.3.4.4.2.4.1.2"><p id="EN-US_TOPIC_0000001207783562__p14294105313378">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.32%" id="mcps1.3.4.4.2.4.1.3"><p id="EN-US_TOPIC_0000001207783562__p6294105323712">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001207783562__row39411541145917"><td class="cellrowborder" valign="top" width="25.929999999999996%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001207783562__p69411241145914">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.75%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001207783562__p19419419593">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.32%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001207783562__p39411241195914">Specifies the tag key.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001207783562__row3941204116599"><td class="cellrowborder" valign="top" width="25.929999999999996%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001207783562__p69412416595">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.75%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001207783562__p119411341165912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.32%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001207783562__p6941104116591">Specifies the tag value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207783562__section869483985113"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0000001207783562__screen1336311553442">GET https://{endpoint}/v1/{project_id}/servers/{server_id}/tags</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207783562__section3731945154014"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="EN-US_TOPIC_0000001207783562__screen581154514404">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"value": "value1"
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"value": "value3"
|
|
}
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207783562__en-us_topic_0092803065_en-us_topic_0020212692_section22960139"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0000001207783562__en-us_topic_0092803065_en-us_topic_0020212692_p23670760">See <a href="en-us_topic_0022067716.html">Returned Values for General Requests</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207783562__en-us_topic_0092803065_en-us_topic_0067161469_en-us_topic_0057973179_section23611955"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000001207783562__p20272163175210">See <a href="en-us_topic_0022067717.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001207303618.html">Tag Management</a></div>
|
|
</div>
|
|
</div>
|
|
|