forked from docs/doc-exports
move doc sources to other location Reviewed-by: OpenTelekomCloud Bot <None>
115 lines
9.2 KiB
HTML
115 lines
9.2 KiB
HTML
<a name="EN-US_TOPIC_0000001207623588"></a><a name="EN-US_TOPIC_0000001207623588"></a>
|
|
|
|
<h1 class="topictitle1">Querying Project Tags (Discarded)</h1>
|
|
<div id="body0000001207623588"><div class="section" id="EN-US_TOPIC_0000001207623588__section192222559445"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001207623588__en-us_topic_0070518924_p16454058112126">Projects are used to group and isolate OpenStack resources, which include computing, storage, and network resources. A project can be a department or a team. Multiple projects can be created under one account.</p>
|
|
<p id="EN-US_TOPIC_0000001207623588__p174297413217">This API is used to query all tags used by a user in a specified project.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001207623588__note622817463448"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001207623588__p222804613447">This API has been discarded. Use the API described in <a href="en-us_topic_0167811966.html">Querying Project Tags</a>.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207623588__section222245513448"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000001207623588__p67221155165016">GET /v1/{project_id}/servers/tags</p>
|
|
<div class="p" id="EN-US_TOPIC_0000001207623588__p862375810505"><a href="#EN-US_TOPIC_0000001207623588__table144382516421">Table 1</a> lists the parameter.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001207623588__table144382516421"></a><a name="table144382516421"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001207623588__table144382516421" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001207623588__row134312517423"><th align="left" class="cellrowborder" valign="top" width="26.25%" id="mcps1.3.2.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001207623588__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_0000001207623588__p20304554">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="52.5%" id="mcps1.3.2.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001207623588__p34056167">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001207623588__row259142515428"><td class="cellrowborder" valign="top" width="26.25%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001207623588__p1859102519426">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_0000001207623588__p135962520420">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.5%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001207623588__p37593705">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207623588__section625475584419"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0000001207623588__p332814266515">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207623588__section1825415515447"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0000001207623588__p13879133385113"><a href="#EN-US_TOPIC_0000001207623588__table725495518449">Table 2</a> describes the response parameter.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001207623588__table725495518449"></a><a name="table725495518449"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001207623588__table725495518449" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameter</caption><thead align="left"><tr id="EN-US_TOPIC_0000001207623588__row3363185511442"><th align="left" class="cellrowborder" valign="top" width="27.272727272727277%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000001207623588__p15806308">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.282828282828287%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0000001207623588__p21995508">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.44444444444445%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0000001207623588__p36805753">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001207623588__row4363105574411"><td class="cellrowborder" valign="top" width="27.272727272727277%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001207623588__p73639556446">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.282828282828287%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001207623588__p103634552442">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.44444444444445%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001207623588__p53631955194415">Specifies tags.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001207623588__table207611141174713" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="EN-US_TOPIC_0000001207623588__b84235270695528">tag</strong> field description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001207623588__row157616415478"><th align="left" class="cellrowborder" valign="top" width="27%" id="mcps1.3.4.4.2.4.1.1"><p id="EN-US_TOPIC_0000001207623588__p1990563433715">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.999999999999996%" id="mcps1.3.4.4.2.4.1.2"><p id="EN-US_TOPIC_0000001207623588__p11905734183715">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44%" id="mcps1.3.4.4.2.4.1.3"><p id="EN-US_TOPIC_0000001207623588__p169051234153715">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001207623588__row1476124114474"><td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001207623588__p1048131744810">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.999999999999996%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001207623588__p5481171719487">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001207623588__p6894311152216">Specifies the tag key.</p>
|
|
<ul id="EN-US_TOPIC_0000001207623588__ul16669204222215"><li id="EN-US_TOPIC_0000001207623588__li466814217224">The key can contain a maximum of 36 Unicode characters.</li><li id="EN-US_TOPIC_0000001207623588__li46681425221">Contains only digits, letters, hyphens (-), and underscores (_).</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001207623588__row4761184174717"><td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001207623588__p048151716488">values</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.999999999999996%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001207623588__p1156632102520">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001207623588__p1662531514220">Specifies the tag value.</p>
|
|
<ul id="EN-US_TOPIC_0000001207623588__ul18894121619234"><li id="EN-US_TOPIC_0000001207623588__li389441602319">Each value contains a maximum of 43 Unicode characters.</li><li id="EN-US_TOPIC_0000001207623588__li289441620239">This field can be left blank.</li><li id="EN-US_TOPIC_0000001207623588__li5894316162318">Contains only digits, letters, hyphens (-), and underscores (_).</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207623588__section73711311115217"><h4 class="sectiontitle">Examples</h4><ul id="EN-US_TOPIC_0000001207623588__ul1536395544410"><li id="EN-US_TOPIC_0000001207623588__li1236310553448">Example Request<pre class="screen" id="EN-US_TOPIC_0000001207623588__screen1336311553442">GET https://{endpoint}/v1/{project_id}/servers/tags</pre>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001207623588__ul1443415113522"><li id="EN-US_TOPIC_0000001207623588__li15434121125215">Example Response<pre class="screen" id="EN-US_TOPIC_0000001207623588__screen7434191145217">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"values": [
|
|
"value1",
|
|
"value2"
|
|
]
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001207623588__en-us_topic_0092803065_en-us_topic_0020212692_section22960139"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0000001207623588__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_0000001207623588__en-us_topic_0092803065_en-us_topic_0067161469_en-us_topic_0057973179_section23611955"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000001207623588__p63654318524">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>
|
|
|