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>
96 lines
9.1 KiB
HTML
96 lines
9.1 KiB
HTML
<a name="en_topic_0093011486"></a><a name="en_topic_0093011486"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Tag for a VPN Resource</h1>
|
|
<div id="body1538044062050"><div class="section" id="en_topic_0093011486__en-us_topic_0103470566_section6739112719406"><h4 class="sectiontitle"><strong id="en_topic_0093011486__en-us_topic_0053740021_b842352706112523">Function</strong></h4><p id="en_topic_0093011486__en-us_topic_0103470566_p2855327124013">This interface is used to create a tag for a VPN resource.</p>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011486__en-us_topic_0103470566_section197391227124012"><h4 class="sectiontitle">URI</h4><p id="en_topic_0093011486__p920724185313">POST /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags</p>
|
|
<div class="note" id="en_topic_0093011486__note18712078394"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en_topic_0093011486__p17122718399">In the URI, <strong id="en_topic_0093011486__b84235270692710">project_id</strong> indicates the project ID, and <strong id="en_topic_0093011486__b84235270692722">resource_id</strong> indicates the target resource ID.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011486__en-us_topic_0103470566_section074912764017"><h4 class="sectiontitle">Request Message</h4><p id="en_topic_0093011486__p145653342396"><a href="#en_topic_0093011486__en-us_topic_0103470566_table14751112719406">Table 1</a> describes the request parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="en_topic_0093011486__en-us_topic_0103470566_table14751112719406"></a><a name="en-us_topic_0103470566_table14751112719406"></a><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011486__en-us_topic_0103470566_table14751112719406" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request parameters</caption><thead align="left"><tr id="en_topic_0093011486__en-us_topic_0103470566_row1085714277402"><th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.3.3.2.5.1.1"><p id="en_topic_0093011486__en-us_topic_0103470566_p48571827164012"><strong id="en_topic_0093011486__b842352706172115">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24%" id="mcps1.3.3.3.2.5.1.2"><p id="en_topic_0093011486__en-us_topic_0103470566_p685711273400"><strong id="en_topic_0093011486__b84235270610412">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.3.3.2.5.1.3"><p id="en_topic_0093011486__en-us_topic_0103470566_p118573278400"><strong id="en_topic_0093011486__b8423527061798">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43%" id="mcps1.3.3.3.2.5.1.4"><p id="en_topic_0093011486__en-us_topic_0103470566_p198576274405"><strong id="en_topic_0093011486__b842352706151625">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en_topic_0093011486__en-us_topic_0103470566_row1985711272400"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011486__en-us_topic_0103470566_p9857152794012">tag</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011486__en-us_topic_0103470566_p6857172715402">List<resource_tag></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011486__en-us_topic_0103470566_p198573277400">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011486__en-us_topic_0103470566_p188571327104019">Specifies the tag.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="en_topic_0093011486__p146181934183913">Description of field <strong id="en_topic_0093011486__b1964617420162043">resource_tag</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011486__table13242848193719" frame="border" border="1" rules="all"><thead align="left"><tr id="en_topic_0093011486__row13343144812379"><th align="left" class="cellrowborder" valign="top" width="14.649999999999999%" id="mcps1.3.3.5.1.5.1.1"><p id="en_topic_0093011486__p15343174853715"><strong id="en_topic_0093011486__b84235270617246">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.369999999999997%" id="mcps1.3.3.5.1.5.1.2"><p id="en_topic_0093011486__p15643121154020"><strong id="en_topic_0093011486__b341863433">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.990000000000002%" id="mcps1.3.3.5.1.5.1.3"><p id="en_topic_0093011486__p13431648163716"><strong id="en_topic_0093011486__b1385670838">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="36.99%" id="mcps1.3.3.5.1.5.1.4"><p id="en_topic_0093011486__p11344748183719"><strong id="en_topic_0093011486__b1398390940">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en_topic_0093011486__row103449487379"><td class="cellrowborder" valign="top" width="14.649999999999999%" headers="mcps1.3.3.5.1.5.1.1 "><p id="en_topic_0093011486__p183469482373">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.369999999999997%" headers="mcps1.3.3.5.1.5.1.2 "><p id="en_topic_0093011486__p5569213105916">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.990000000000002%" headers="mcps1.3.3.5.1.5.1.3 "><p id="en_topic_0093011486__p1434684863710">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="36.99%" headers="mcps1.3.3.5.1.5.1.4 "><p id="en_topic_0093011486__p11346184819376">Specifies the tag key.</p>
|
|
<p id="en_topic_0093011486__p154442255810">The parameter constraints are as follows:</p>
|
|
<ul id="en_topic_0093011486__ul17240515195820"><li id="en_topic_0093011486__li2216121845812">Must be unique for a resource.</li><li id="en_topic_0093011486__li2240915185819">Cannot be left blank.</li><li id="en_topic_0093011486__li224051511589">Can contain a maximum of 36 characters.</li><li id="en_topic_0093011486__li1624010151587">Can contain only the following character types:<ul id="en_topic_0093011486__ul19240161517582"><li id="en_topic_0093011486__li192401515145815">Uppercase letters</li><li id="en_topic_0093011486__li5240191510588">Lowercase letters</li><li id="en_topic_0093011486__li42406158583">Digits</li><li id="en_topic_0093011486__li1124731518580">Special characters, including hyphens (-) and underscores (_)</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011486__row2346548163714"><td class="cellrowborder" valign="top" width="14.649999999999999%" headers="mcps1.3.3.5.1.5.1.1 "><p id="en_topic_0093011486__p1134624816377">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.369999999999997%" headers="mcps1.3.3.5.1.5.1.2 "><p id="en_topic_0093011486__p183571615913">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.990000000000002%" headers="mcps1.3.3.5.1.5.1.3 "><p id="en_topic_0093011486__p234619483371">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="36.99%" headers="mcps1.3.3.5.1.5.1.4 "><p id="en_topic_0093011486__p534634813374">Specifies the tag value.</p>
|
|
<p id="en_topic_0093011486__p193981434195813">The parameter constraints are as follows:</p>
|
|
<ul id="en_topic_0093011486__ul186515095815"><li id="en_topic_0093011486__li28651750195812">Can contain a maximum of 43 characters.</li><li id="en_topic_0093011486__li9865195020584">Can contain only the following character types:<ul id="en_topic_0093011486__ul1086516509585"><li id="en_topic_0093011486__li3865145016582">Uppercase letters</li><li id="en_topic_0093011486__li38731509588">Lowercase letters</li><li id="en_topic_0093011486__li3873165015811">Digits</li><li id="en_topic_0093011486__li1687317502585">Special characters, including hyphens (-) and underscores (_)</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011486__en-us_topic_0103470566_section775782711402"><h4 class="sectiontitle">Response Message</h4><p id="en_topic_0093011486__en-us_topic_0103470566_p18577274409">None</p>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011486__en-us_topic_0103470566_section775882720405"><h4 class="sectiontitle">Example</h4><ul id="en_topic_0093011486__ul10660174104115"><li id="en_topic_0093011486__li46601742419">Example Request</li></ul>
|
|
</div>
|
|
<pre class="screen" id="en_topic_0093011486__screen59991914116">POST /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags
|
|
{
|
|
"tag": {
|
|
"key": "key1",
|
|
"value": "value1"
|
|
}
|
|
}</pre>
|
|
<ul id="en_topic_0093011486__ul17670191018118"><li id="en_topic_0093011486__li1267016108110">Example Response<p id="en_topic_0093011486__p17140516012"><a name="en_topic_0093011486__li1267016108110"></a><a name="li1267016108110"></a>None</p>
|
|
</li></ul>
|
|
<div class="section" id="en_topic_0093011486__section14121248103610"><h4 class="sectiontitle">Returned Values</h4><p id="en_topic_0093011486__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>
|
|
|