forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: gtema <artem.goncharov@gmail.com> Co-committed-by: gtema <artem.goncharov@gmail.com>
91 lines
8.5 KiB
HTML
91 lines
8.5 KiB
HTML
<a name="en_topic_0093011487"></a><a name="en_topic_0093011487"></a>
|
|
|
|
<h1 class="topictitle1">Querying VPN Resource Tags</h1>
|
|
<div id="body1538044062050"><div class="section" id="en_topic_0093011487__en-us_topic_0103470567_section5346624101819"><h4 class="sectiontitle"><strong id="en_topic_0093011487__en-us_topic_0053740021_b842352706112523">Function</strong></h4><p id="en_topic_0093011487__en-us_topic_0103470567_p3422824111814">This interface is used to query tags of a specified VPN resource.</p>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011487__en-us_topic_0103470567_section7346122401818"><h4 class="sectiontitle">URI</h4><p id="en_topic_0093011487__p12802122618">GET /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags</p>
|
|
<div class="note" id="en_topic_0093011487__note84751754104310"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en_topic_0093011487__p1847515412435">In the URI, <strong id="en_topic_0093011487__b84235270692710">project_id</strong> indicates the project ID, and <strong id="en_topic_0093011487__b84235270692722">resource_id</strong> indicates the target resource ID.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011487__en-us_topic_0103470567_section113551624161816"><h4 class="sectiontitle">Request Message</h4><p id="en_topic_0093011487__en-us_topic_0103470567_p6424624151811">None</p>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011487__en-us_topic_0103470567_section1635502415182"><h4 class="sectiontitle">Response Message</h4><p id="en_topic_0093011487__p8787101474414"><a href="#en_topic_0093011487__en-us_topic_0103470567_table1135702419184">Table 1</a> describes the response parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="en_topic_0093011487__en-us_topic_0103470567_table1135702419184"></a><a name="en-us_topic_0103470567_table1135702419184"></a><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011487__en-us_topic_0103470567_table1135702419184" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response parameter</caption><thead align="left"><tr id="en_topic_0093011487__en-us_topic_0103470567_row7424152414187"><th align="left" class="cellrowborder" valign="top" width="22.097790220977902%" id="mcps1.3.4.3.2.4.1.1"><p id="en_topic_0093011487__en-us_topic_0103470567_p14424202481810"><strong id="en_topic_0093011487__b842352706172115">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.417158284171585%" id="mcps1.3.4.3.2.4.1.2"><p id="en_topic_0093011487__en-us_topic_0103470567_p1442492451817"><strong id="en_topic_0093011487__b84235270610412">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="49.48505149485052%" id="mcps1.3.4.3.2.4.1.3"><p id="en_topic_0093011487__en-us_topic_0103470567_p18424202481819"><strong id="en_topic_0093011487__b842352706151625">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en_topic_0093011487__en-us_topic_0103470567_row14424192461816"><td class="cellrowborder" valign="top" width="22.097790220977902%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011487__en-us_topic_0103470567_p1942472411816">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.417158284171585%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011487__en-us_topic_0103470567_p10424324181820">List<resource_tag></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.48505149485052%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011487__en-us_topic_0103470567_p742482418183">Specifies the tag list.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="en_topic_0093011487__p146181934183913">Description of field <strong id="en_topic_0093011487__b1964617420162043">resource_tag</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011487__table13242848193719" frame="border" border="1" rules="all"><thead align="left"><tr id="en_topic_0093011487__row13343144812379"><th align="left" class="cellrowborder" valign="top" width="25.82%" id="mcps1.3.4.5.1.4.1.1"><p id="en_topic_0093011487__p15343174853715"><strong id="en_topic_0093011487__b84235270617246">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.28%" id="mcps1.3.4.5.1.4.1.2"><p id="en_topic_0093011487__p15643121154020"><strong id="en_topic_0093011487__b84235270610412_1">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="48.9%" id="mcps1.3.4.5.1.4.1.3"><p id="en_topic_0093011487__p11344748183719"><strong id="en_topic_0093011487__b842352706151625_1">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en_topic_0093011487__row103449487379"><td class="cellrowborder" valign="top" width="25.82%" headers="mcps1.3.4.5.1.4.1.1 "><p id="en_topic_0093011487__p183469482373">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.28%" headers="mcps1.3.4.5.1.4.1.2 "><p id="en_topic_0093011487__p18712165919401">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.9%" headers="mcps1.3.4.5.1.4.1.3 "><p id="en_topic_0093011487__p11346184819376">Specifies the tag key.</p>
|
|
<p id="en_topic_0093011487__p166179282045">The parameter constraints are as follows:</p>
|
|
<ul id="en_topic_0093011487__ul1419712461348"><li id="en_topic_0093011487__li241518499415">Must be unique for a resource.</li><li id="en_topic_0093011487__en-us_topic_0013935842_en-us_topic_0067805752_en-us_topic_0013859511_li400332623222">Cannot be left blank.</li><li id="en_topic_0093011487__en-us_topic_0013935842_en-us_topic_0067805752_en-us_topic_0013859511_li583414621171">Can contain a maximum of 36 characters.</li><li id="en_topic_0093011487__li420364612412">Can contain only the following character types:<ul id="en_topic_0093011487__ul14203124611419"><li id="en_topic_0093011487__en-us_topic_0013935842_en-us_topic_0067805752_en-us_topic_0013859511_li17531722105252">Uppercase letters</li><li id="en_topic_0093011487__en-us_topic_0013935842_en-us_topic_0067805752_en-us_topic_0013859511_li11960040105258">Lowercase letters</li><li id="en_topic_0093011487__en-us_topic_0013935842_en-us_topic_0067805752_en-us_topic_0013859511_li674166910530">Digits</li><li id="en_topic_0093011487__li1920319461447">Special characters, including hyphens (-) and underscores (_)</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011487__row2346548163714"><td class="cellrowborder" valign="top" width="25.82%" headers="mcps1.3.4.5.1.4.1.1 "><p id="en_topic_0093011487__p1134624816377">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.28%" headers="mcps1.3.4.5.1.4.1.2 "><p id="en_topic_0093011487__p81671306414">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.9%" headers="mcps1.3.4.5.1.4.1.3 "><p id="en_topic_0093011487__p534634813374">Specifies the tag value.</p>
|
|
<p id="en_topic_0093011487__p9993105613416">The parameter constraints are as follows:</p>
|
|
<ul id="en_topic_0093011487__ul1692049519"><li id="en_topic_0093011487__li13912413519">Can contain a maximum of 43 characters.</li><li id="en_topic_0093011487__li4954158">Can contain only the following character types:<ul id="en_topic_0093011487__ul5918412520"><li id="en_topic_0093011487__li391444515">Uppercase letters</li><li id="en_topic_0093011487__li18171746514">Lowercase letters</li><li id="en_topic_0093011487__li161744858">Digits</li><li id="en_topic_0093011487__li917541753">Special characters, including hyphens (-) and underscores (_)</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011487__en-us_topic_0103470567_section1836772481820"><h4 class="sectiontitle">Example</h4><ul id="en_topic_0093011487__ul22751646104411"><li id="en_topic_0093011487__li1227512462441">Example Request<pre class="screen" id="en_topic_0093011487__screen1070173514328">GET /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags</pre>
|
|
</li></ul>
|
|
</div>
|
|
<ul id="en_topic_0093011487__ul5136353194414"><li id="en_topic_0093011487__li413613539449">Example Response<pre class="screen" id="en_topic_0093011487__screen750172134510">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"value": "value1"
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"value": "value3"
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
<div class="section" id="en_topic_0093011487__section14121248103610"><h4 class="sectiontitle">Returned Values</h4><p id="en_topic_0093011487__p2590175117365">For details, see section <a href="en_topic_0093011522.html">Common Returned Values</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en_topic_0093011483.html">Tag Management</a></div>
|
|
</div>
|
|
</div>
|
|
|