forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
108 lines
8.6 KiB
HTML
108 lines
8.6 KiB
HTML
<a name="rds_06_0039"></a><a name="rds_06_0039"></a>
|
|
|
|
<h1 class="topictitle1">Querying Project Tags</h1>
|
|
<div id="body1574152200239"><div class="section" id="rds_06_0039__section61759636"><h4 class="sectiontitle">Function</h4><p id="rds_06_0039__p33831530">This API is used to query project tags.</p>
|
|
<ul id="rds_06_0039__ul12259155218373"><li id="rds_06_0039__en-us_topic_0240111818_li836513175363">Before calling an API, you need to understand the API in <a href="rds_03_0001.html">Authentication</a>.</li><li id="rds_06_0039__en-us_topic_0240111818_li1991981933613">Before calling this API, obtain the required <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">region and endpoint</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0039__section18965813"><h4 class="sectiontitle">URI</h4><ul id="rds_06_0039__ul13194498"><li id="rds_06_0039__li41603465301">URI format<p id="rds_06_0039__p11160246123012"><a name="rds_06_0039__li41603465301"></a><a name="li41603465301"></a>GET https://{<em id="rds_06_0039__i11252164981618">Endpoint</em>}/v3/{project_id}/tags</p>
|
|
</li></ul>
|
|
<ul id="rds_06_0039__ul55999443"><li id="rds_06_0039__li21405046">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_06_0039__table65777232" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rds_06_0039__row46529701"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.1.1.2.4.1.1"><p id="rds_06_0039__p10809459"><strong id="rds_06_0039__b187019143305">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.1.1.2.4.1.2"><p id="rds_06_0039__p3150961"><strong id="rds_06_0039__b19488131511308">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.1.1.2.4.1.3"><p id="rds_06_0039__p53901255"><strong id="rds_06_0039__b1131015162308">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_06_0039__row3925534"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.1.1.2.4.1.1 "><p id="rds_06_0039__p49532829">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.1.1.2.4.1.2 "><p id="rds_06_0039__p52736237">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.1.1.2.4.1.3 "><p id="rds_06_0039__p43776822">Specifies the project ID of a tenant in a region.</p>
|
|
<p id="rds_06_0039__p186761044260">For details about how to obtain the project ID, see <a href="rds_03_0002.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0039__section36474591"><h4 class="sectiontitle">Request</h4><p id="rds_06_0039__p1916651614521">None</p>
|
|
</div>
|
|
<div class="section" id="rds_06_0039__section59835867"><h4 class="sectiontitle">Response</h4><ul id="rds_06_0039__ul66273227"><li id="rds_06_0039__li59588135">Normal response
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_06_0039__table29752153" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="rds_06_0039__row62070345"><th align="left" class="cellrowborder" valign="top" width="23.880000000000003%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="rds_06_0039__p61642077"><strong id="rds_06_0039__b1532763217309">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.119999999999997%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="rds_06_0039__p26952341"><strong id="rds_06_0039__b71301733193011">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="rds_06_0039__p35656026"><strong id="rds_06_0039__b1110513412301">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_06_0039__row49943891183823"><td class="cellrowborder" valign="top" width="23.880000000000003%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="rds_06_0039__p186111553257">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.119999999999997%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="rds_06_0039__p28299952183823">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="rds_06_0039__p9886152615558">Specifies the tag list. If there is no tag in the list, an empty array is returned.</p>
|
|
<p id="rds_06_0039__p135166102018">For details, see <a href="#rds_06_0039__table136451019132019">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_06_0039__table136451019132019"></a><a name="table136451019132019"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_06_0039__table136451019132019" frame="border" border="1" rules="all"><caption><b>Table 3 </b>tags field data structure description</caption><thead align="left"><tr id="rds_06_0039__row166461119162020"><th align="left" class="cellrowborder" valign="top" width="23.880000000000003%" id="mcps1.3.4.2.1.2.2.4.1.1"><p id="rds_06_0039__p1064681915209"><strong id="rds_06_0039__b493552118316">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.119999999999997%" id="mcps1.3.4.2.1.2.2.4.1.2"><p id="rds_06_0039__p19646171992011"><strong id="rds_06_0039__b165052220316">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.4.2.1.2.2.4.1.3"><p id="rds_06_0039__p16461119122018"><strong id="rds_06_0039__b1430310230314">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_06_0039__row16465196207"><td class="cellrowborder" valign="top" width="23.880000000000003%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="rds_06_0039__p166464198203">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.119999999999997%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="rds_06_0039__p1764691942013">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="rds_06_0039__p16646111922010">Specifies the tag key.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0039__row69991455218"><td class="cellrowborder" valign="top" width="23.880000000000003%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="rds_06_0039__p1401367212">values</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.119999999999997%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="rds_06_0039__p120769211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="rds_06_0039__p505632115">Specifies the lists the tag values.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="rds_06_0039__ul20857481860"><li id="rds_06_0039__li4411135064210">Example<p id="rds_06_0039__p1454414211213"><a name="rds_06_0039__li4411135064210"></a><a name="li4411135064210"></a>GET https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/tags</p>
|
|
</li></ul>
|
|
<ul id="rds_06_0039__ul26818564"><li id="rds_06_0039__li40040492">Example normal response<pre class="codeblock" id="rds_06_0039__codeblock121903247">{
|
|
"tags": [{
|
|
"key": "key1",
|
|
"values": ["value1"]
|
|
}, {
|
|
"key": "key2",
|
|
"values": ["value2"]
|
|
}]
|
|
}</pre>
|
|
</li><li id="rds_06_0039__li1953636143515">Abnormal Response<p id="rds_06_0039__p46896054"><a name="rds_06_0039__li1953636143515"></a><a name="li1953636143515"></a>For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0039__section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="rds_06_0039__en-us_topic_0032347778_ul7858132212142"><li id="rds_06_0039__en-us_topic_0032347778_li58581622171411">Normal<p id="rds_06_0039__en-us_topic_0032347778_p1040982941020"><a name="rds_06_0039__en-us_topic_0032347778_li58581622171411"></a><a name="en-us_topic_0032347778_li58581622171411"></a>200</p>
|
|
</li><li id="rds_06_0039__en-us_topic_0032347778_li11583183218149">Abnormal<p id="rds_06_0039__en-us_topic_0032347778_p0723374409"><a name="rds_06_0039__en-us_topic_0032347778_li11583183218149"></a><a name="en-us_topic_0032347778_li11583183218149"></a>For details, see <a href="en-us_topic_0032488240.html">Status Codes</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0039__section1183074220016"><h4 class="sectiontitle">Error Code</h4><p id="rds_06_0039__en-us_topic_0032347778_p19357163913406">For details, see <a href="en-us_topic_0032488241.html">Error Codes</a>.</p>
|
|
</div>
|
|
<p id="rds_06_0039__p8060118"></p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_06_0036.html">Tag Management</a></div>
|
|
</div>
|
|
</div>
|
|
|