forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
53 lines
7.9 KiB
HTML
53 lines
7.9 KiB
HTML
<a name="as_06_0104"></a><a name="as_06_0104"></a>
|
|
|
|
<h1 class="topictitle1">Adding Tags to AS Groups and Instances</h1>
|
|
<div id="body1500376665684"><div class="section" id="as_06_0104__section2495449014355"><h4 class="sectiontitle">Scenarios</h4><p id="as_06_0104__p1622395820217">If you have many resources of the same type, you can use a tag to manage resources flexibly. You can identify specified resources quickly using the tags allocated to them.</p>
|
|
<p id="as_06_0104__p152183534">Using a tag, you can assign custom data to each AS group. You can organize and manage AS groups, for example, classify AS group resources by usage, owner, or environment.</p>
|
|
<p id="as_06_0104__p16708589317">Each tag contains a key and a value. You can specify the key and value for each tag. A key can be a category associated with certain values, such as usage, owner, and environment.</p>
|
|
<p id="as_06_0104__p57613131331">For example, if you want to distinguish between the test environment and production environment, you can allocate a tag with the key <strong id="as_06_0104__b84235270616226">environment</strong> to each AS group. For the test environment, the key value is <strong id="as_06_0104__b842352706162244">test</strong> and for the production environment, the key value is <strong id="as_06_0104__b84235270616239">production</strong>. You are advised to use one or more groups of consistent tags to manage your AS group resources.</p>
|
|
<p id="as_06_0104__p12289145174811">After you allocate a tag to an AS group, the system will automatically add the tag to the instances automatically created in the AS group. If you add a tag to an AS group or modify the tag, the new tag will be added to the ECSs automatically created in the AS group. Creating, deleting, or modifying the tag of an AS group will have no impact on the ECSs in the AS group.</p>
|
|
</div>
|
|
<div class="section" id="as_06_0104__section7355112104225"><h4 class="sectiontitle">Restrictions of Using Tags</h4><div class="p" id="as_06_0104__p11616132104242">You must observe the following rules when using tags:<ul id="as_06_0104__ul37436328104242"><li id="as_06_0104__li1382640104242">Each AS group can have a maximum of 10 tags added to it.</li><li id="as_06_0104__li29817215105124">Each tag contains a key and a value.</li><li id="as_06_0104__li11807385104242">You can set the tag value to an empty character string.</li><li id="as_06_0104__li16874151104242">If you delete an AS group, all tags of it will also be deleted.</li></ul>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="as_06_0104__section12477432195230"><h4 class="sectiontitle">Adding a Tag to an AS Group</h4><ol id="as_06_0104__ol25260342102011"><li id="as_06_0104__en-us_topic_0118498861_l67f1c4bb070b4f3d9b83021e83da345b">Log in to the management console.</li><li id="as_06_0104__li5914166211049">Click <span><img id="as_06_0104__image1670633316277" src="en-us_image_0210485079.png"></span> in the upper left corner to select a region and a project.</li><li id="as_06_0104__li17729115711396">Under <strong id="as_06_0104__b389015642212">Computing</strong>, click <strong id="as_06_0104__b18901155612216">Auto Scaling</strong>. In the navigation pane on the left, choose <strong id="as_06_0104__b10901105616227">Instance Scaling</strong>. Then click the <strong id="as_06_0104__b169022056202219">AS Groups</strong> tab.</li><li id="as_06_0104__li50956687151314">Click the AS group name. On the AS group details page, click the <strong id="as_06_0104__b842352706231413">Tags</strong> tab and then click <strong id="as_06_0104__b842352706231419">Add Tag</strong>.</li><li id="as_06_0104__li30720917102023">Set the parameters listed in <a href="#as_06_0104__table1794599823119">Table 1</a>.
|
|
<div class="tablenoborder"><a name="as_06_0104__table1794599823119"></a><a name="table1794599823119"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0104__table1794599823119" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Tag naming rules</caption><thead align="left"><tr id="as_06_0104__row2997812223119"><th align="left" class="cellrowborder" valign="top" width="18.54%" id="mcps1.3.3.2.5.2.2.4.1.1"><p id="as_06_0104__p4367076523119">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.39%" id="mcps1.3.3.2.5.2.2.4.1.2"><p id="as_06_0104__p4767111023119">Requirement</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.07%" id="mcps1.3.3.2.5.2.2.4.1.3"><p id="as_06_0104__p3615470723119">Example Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="as_06_0104__row5695691323119"><td class="cellrowborder" valign="top" width="18.54%" headers="mcps1.3.3.2.5.2.2.4.1.1 "><p id="as_06_0104__p5010724023119">Tag Key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.39%" headers="mcps1.3.3.2.5.2.2.4.1.2 "><ul id="as_06_0104__ul2321196023222"><li id="as_06_0104__li400332623222">The value cannot be empty.</li><li id="as_06_0104__li56235771151321">An AS group has a unique key.</li><li id="as_06_0104__li173982819418">A key can contain a maximum of 36 characters, including only digits, letters, hyphens (-), and underscores (_).</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.07%" headers="mcps1.3.3.2.5.2.2.4.1.3 "><p id="as_06_0104__p5438834323119">Organization</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0104__row1973304523119"><td class="cellrowborder" valign="top" width="18.54%" headers="mcps1.3.3.2.5.2.2.4.1.1 "><p id="as_06_0104__p5487280123119">Tag Value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.39%" headers="mcps1.3.3.2.5.2.2.4.1.2 "><ul id="as_06_0104__ul6706750105539"><li id="as_06_0104__li64806765101310">The value can be an empty character string.</li><li id="as_06_0104__li26634116105411">A key can have only one value.</li><li id="as_06_0104__li1177715241344">A tag value can contain a maximum of 43 characters, including only digits, letters, hyphens (-), and underscores (_).</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.07%" headers="mcps1.3.3.2.5.2.2.4.1.3 "><p id="as_06_0104__p4850087723119">Apache</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="as_06_0104__li39846552175450">Click <strong id="as_06_0104__b1570856957172655">OK</strong>.</li></ol>
|
|
</div>
|
|
<div class="section" id="as_06_0104__section8057725103917"><h4 class="sectiontitle">Modifying or Deleting Tags of an AS Group</h4><ol id="as_06_0104__ol62220677"><li id="as_06_0104__li9869732999">Log in to the management console.</li></ol>
|
|
<ol id="as_06_0104__ol2830085105211"><li id="as_06_0104__li53599395154535">Click <span><img id="as_06_0104__image18815121619297" src="en-us_image_0210485079.png"></span> in the upper left corner to select a region and a project.</li><li id="as_06_0104__li10136163984010">Under <strong id="as_06_0104__b11908359202214">Computing</strong>, click <strong id="as_06_0104__b9910259142216">Auto Scaling</strong>. In the navigation pane on the left, choose <strong id="as_06_0104__b16910155919224">Instance Scaling</strong>. Then click the <strong id="as_06_0104__b5911155932218">AS Groups</strong> tab.</li><li id="as_06_0104__li49866103105211">Click the AS group name. On the <strong id="as_06_0104__b84235270623139">Overview</strong> page, click the <strong id="as_06_0104__b858851897">Tags</strong> tab.</li><li id="as_06_0104__li2425833410547">Locate the row that contains the tag and click <strong id="as_06_0104__b84235270617366">Edit</strong> or <strong id="as_06_0104__b84235270617369">Delete</strong> in the <strong id="as_06_0104__b842352706173621">Operation</strong> column.<p id="as_06_0104__p1677314711125">After clicking <strong id="as_06_0104__b324261571173649">Edit</strong>, configure required parameters. For details, see <a href="#as_06_0104__table1794599823119">Table 1</a>.</p>
|
|
<p id="as_06_0104__p5990166611137">After you click <strong id="as_06_0104__b260932618173735">Delete</strong>, the added tag will be deleted.</p>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="as_06_0100.html">AS Group and Instance Monitoring</a></div>
|
|
</div>
|
|
</div>
|
|
|