doc-exports/docs/dws/umn/dws_01_0105.html
Lu, Huayi c5fcb46315 DWS UMN 801 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2022-12-13 12:47:57 +00:00

70 lines
14 KiB
HTML

<a name="EN-US_TOPIC_0000001180440147"></a><a name="EN-US_TOPIC_0000001180440147"></a>
<h1 class="topictitle1">Tag Management</h1>
<div id="body1524217143605"><p id="EN-US_TOPIC_0000001180440147__p8060118">This section describes how to search for clusters based on tags and how to add, modify, and delete tags for clusters.</p>
<div class="section" id="EN-US_TOPIC_0000001180440147__section77515910494"><a name="EN-US_TOPIC_0000001180440147__section77515910494"></a><a name="section77515910494"></a><h4 class="sectiontitle">Adding a Tag to a Cluster</h4><ol id="EN-US_TOPIC_0000001180440147__ol558242211529"><li id="EN-US_TOPIC_0000001180440147__li1819481821414"><span>On the <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol440988145101024"><b>Clusters</b></span> page, click the name of the cluster to which a tag is to be added, and click the <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol2089480544101111"><b>Tags</b></span> tab.</span><p><div class="fignone" id="EN-US_TOPIC_0000001180440147__fig44818591213"><span class="figcap"><b>Figure 1 </b>Tags page</span><br><span><img id="EN-US_TOPIC_0000001180440147__image2827755112914" src="figure/en-us_image_0000001134400956.png" width="465.5" height="32.349723000000004" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="EN-US_TOPIC_0000001180440147__li1813151619381"><span>Click <strong id="EN-US_TOPIC_0000001180440147__b84235270616396">Add Tag</strong>.</span></li><li id="EN-US_TOPIC_0000001180440147__li1028738191512"><span>Configure the tag parameters in the displayed dialog box.</span><p><div class="fignone" id="EN-US_TOPIC_0000001180440147__fig1857218298273"><span class="figcap"><b>Figure 2 </b>Adding a tag to a cluster</span><br><span><img id="EN-US_TOPIC_0000001180440147__image1418311972212" src="figure/en-us_image_0000001134400958.png" width="465.5" height="305.974746" title="Click to enlarge" class="imgResize"></span></div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001180440147__table12483201713111" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Tag parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001180440147__row17486121763113"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.2.2.3.2.2.2.4.1.1"><p id="EN-US_TOPIC_0000001180440147__p12486181715313"><strong id="EN-US_TOPIC_0000001180440147__b84235270617387">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="71%" id="mcps1.3.2.2.3.2.2.2.4.1.2"><p id="EN-US_TOPIC_0000001180440147__p1191704514113"><strong id="EN-US_TOPIC_0000001180440147__b842352706101627">Description</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.2.2.3.2.2.2.4.1.3"><p id="EN-US_TOPIC_0000001180440147__p18486151713117"><strong id="EN-US_TOPIC_0000001180440147__b60793810112357">Example Value</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001180440147__row11486131733111"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001180440147__p1433134915503">Tag key</p>
</td>
<td class="cellrowborder" valign="top" width="71%" headers="mcps1.3.2.2.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001180440147__p4183104918156">You can:</p>
<ul id="EN-US_TOPIC_0000001180440147__ul149381653121514"><li id="EN-US_TOPIC_0000001180440147__li29381536159">Select a predefined tag key or an existing resource tag key from the drop-down list of the text box.<div class="note" id="EN-US_TOPIC_0000001180440147__note354311061312"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0000001180440147__p19473813185311">To add a predefined tag, you need to create one on TMS and select it from the drop-down list of <span class="parmname" id="EN-US_TOPIC_0000001180440147__parmname890218564101210"><b>Tag key</b></span>. You can click <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol141392387491"><b>View predefined tags</b></span> to enter the <span class="wintitle" id="EN-US_TOPIC_0000001180440147__wintitle8139538154918"><b>Predefined Tags</b></span> page of TMS. Then, click <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol17140203844917"><b>Create Tag</b></span> to create a predefined tag. For more information, see "Management &gt; Predefined Tags &gt; Creating Predefined Tags" in the <em id="EN-US_TOPIC_0000001180440147__i738751125416">Tag Management Service User Guide</em>.</p>
</div></div>
</li></ul>
<ul id="EN-US_TOPIC_0000001180440147__ul154819568159"><li id="EN-US_TOPIC_0000001180440147__li3543175853817">Enter a tag key in the text box. The tag key can contain a maximum of 36 characters and cannot be an empty string.<div class="p" id="EN-US_TOPIC_0000001180440147__p418051717"><a name="EN-US_TOPIC_0000001180440147__li3543175853817"></a><a name="li3543175853817"></a>Only digits, letters, underscores (_), and hyphens (-) are allowed.<div class="note" id="EN-US_TOPIC_0000001180440147__note206991233134612"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0000001180440147__p10699733104619">A key must be unique in a given cluster.</p>
</div></div>
</div>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001180440147__p848641718314">key01</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001180440147__row19486151715318"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001180440147__p1548761710317">Tag value</p>
</td>
<td class="cellrowborder" valign="top" width="71%" headers="mcps1.3.2.2.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001180440147__p34521618101419">You can:</p>
<ul id="EN-US_TOPIC_0000001180440147__ul12885203215142"><li id="EN-US_TOPIC_0000001180440147__li128852326147">Select a predefined tag value or resource tag value from the drop-down list of the text box.</li><li id="EN-US_TOPIC_0000001180440147__li423711352146">Enter a tag value in the text box. The tag key can contain a maximum of 43 characters and cannot be an empty string.<p id="EN-US_TOPIC_0000001180440147__p5529135062216"><a name="EN-US_TOPIC_0000001180440147__li423711352146"></a><a name="li423711352146"></a>Only digits, letters, underscores (_), periods (.), and hyphens (-) are allowed.</p>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001180440147__p14487201712310">value01</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="EN-US_TOPIC_0000001180440147__li542193420527"><span>Click <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol66261082112"><b>OK</b></span>.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001180440147__section20922320396"><a name="EN-US_TOPIC_0000001180440147__section20922320396"></a><a name="section20922320396"></a><h4 class="sectiontitle">Searching for Clusters Based on Tags</h4><p id="EN-US_TOPIC_0000001180440147__p12627101063910">You can quickly locate a tagged cluster using tags.</p>
<ol id="EN-US_TOPIC_0000001180440147__ol176273102390"><li id="EN-US_TOPIC_0000001180440147__li06271810143911"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001180440147__li36271310183911"><span>Click <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol44448743102053"><b>Clusters</b></span>.</span></li><li id="EN-US_TOPIC_0000001180440147__li1627171017395"><span>Click <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol158875584182"><b>Search by Tag</b></span> on the upper right of the cluster list to expand the tab page.</span><p><div class="fignone" id="EN-US_TOPIC_0000001180440147__fig1662811014396"><span class="figcap"><b>Figure 3 </b>Search by Tag</span><br><span><img id="EN-US_TOPIC_0000001180440147__image562861017390" src="figure/en-us_image_0000001180440309.png" width="465.5" height="113.28926700000001" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="EN-US_TOPIC_0000001180440147__li1962881017392"><span>In the <strong id="EN-US_TOPIC_0000001180440147__b842352706192630">Search by Tag</strong> area, click the <strong id="EN-US_TOPIC_0000001180440147__b5293213104512">Tag Key</strong> text box to select a tag key from the drop-down list and then click the <strong id="EN-US_TOPIC_0000001180440147__b29814200455">Tag Value</strong> text box to select the corresponding tag value.</span><p><p id="EN-US_TOPIC_0000001180440147__p19628191011392">You can only enter a tag key or value that exists in the drop-down list. If no tag key or value is available, create a tag for the cluster. For details, see <a href="#EN-US_TOPIC_0000001180440147__section77515910494">Adding a Tag to a Cluster</a>.</p>
</p></li><li id="EN-US_TOPIC_0000001180440147__li162812102390"><span>Click <span><img id="EN-US_TOPIC_0000001180440147__image12347516469" src="figure/en-us_image_0000001180320375.png"></span> to add the selected tag to the area under the text boxes.</span><p><ul id="EN-US_TOPIC_0000001180440147__ul13628101019390"><li id="EN-US_TOPIC_0000001180440147__li11628410143912">Select another tag in the text boxes and click <span><img id="EN-US_TOPIC_0000001180440147__image104101261376" src="figure/en-us_image_0000001180320375.png"></span> to generate a tag combination for cluster search. You can add a maximum of 10 tags to search for data warehouse clusters. If you specify more than one tag, clusters containing all the specified tags will be displayed.</li><li id="EN-US_TOPIC_0000001180440147__li1462815109395">To delete an existing tag, click <span><img id="EN-US_TOPIC_0000001180440147__image262810106390" src="figure/en-us_image_0000001134560752.png"></span> next to the tag.</li><li id="EN-US_TOPIC_0000001180440147__li36281010123920">You can click <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol139981070010524"><b>Reset</b></span> to clear all added tags.<div class="fignone" id="EN-US_TOPIC_0000001180440147__fig15629111012398"><span class="figcap"><b>Figure 4 </b>Adding the tag key and value</span><br><span><img id="EN-US_TOPIC_0000001180440147__image2062931011399" src="figure/en-us_image_0000001180320401.png" width="465.5" height="126.63368900000002" title="Click to enlarge" class="imgResize"></span></div>
</li></ul>
</p></li><li id="EN-US_TOPIC_0000001180440147__li162981013396"><span>Click <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol62092412310856"><b>Search</b></span>. The target cluster will be displayed in the cluster list.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001180440147__section52819319499"><h4 class="sectiontitle">Modifying a Tag</h4><ol id="EN-US_TOPIC_0000001180440147__ol1518102217617"><li id="EN-US_TOPIC_0000001180440147__li58132038184319"><span>On the <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol1878047046"><b>Clusters</b></span> page, click the name of the cluster for which a tag is to be modified, and click the <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol791455332"><b>Tags</b></span> tab.</span></li><li id="EN-US_TOPIC_0000001180440147__li1971122519617"><span>Locate the row that contains the tag to be modified, and click <strong id="EN-US_TOPIC_0000001180440147__b842352706194412">Edit</strong> in the <strong id="EN-US_TOPIC_0000001180440147__b842352706194420">Operation</strong> column. The <strong id="EN-US_TOPIC_0000001180440147__b842352706194428">Edit Tag</strong> dialog box is displayed.</span><p><div class="fignone" id="EN-US_TOPIC_0000001180440147__fig4728182916311"><span class="figcap"><b>Figure 5 </b>Editing a tag</span><br><span><img id="EN-US_TOPIC_0000001180440147__image186182872716" src="figure/en-us_image_0000001134400952.png" width="465.5" height="269.362373" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="EN-US_TOPIC_0000001180440147__li53417342617"><span>Enter the new key value in the <span class="parmname" id="EN-US_TOPIC_0000001180440147__parmname1742199993194532"><b>Value</b></span> text box.</span></li><li id="EN-US_TOPIC_0000001180440147__li583410326519"><span>Click <strong id="EN-US_TOPIC_0000001180440147__b84235270611586">OK</strong>.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001180440147__section882014118493"><h4 class="sectiontitle">Deleting a Tag</h4><ol id="EN-US_TOPIC_0000001180440147__ol194611475215"><li id="EN-US_TOPIC_0000001180440147__li124631941528"><span>On the <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol1377110647"><b>Clusters</b></span> page, click the name of the cluster from which a tag is to be deleted, and click the <span class="uicontrol" id="EN-US_TOPIC_0000001180440147__uicontrol843916691"><b>Tags</b></span> tab.</span></li><li id="EN-US_TOPIC_0000001180440147__li1546610410526"><span>Locate the row that contains the tag to be deleted, click <strong id="EN-US_TOPIC_0000001180440147__b1053768126">Delete</strong> in the <strong id="EN-US_TOPIC_0000001180440147__b467136700">Operation</strong> column. The <strong id="EN-US_TOPIC_0000001180440147__b1929576598">Delete Tag</strong> dialog box is displayed.</span><p><div class="fignone" id="EN-US_TOPIC_0000001180440147__fig1994815502312"><span class="figcap"><b>Figure 6 </b>Deleting a tag</span><br><span><img id="EN-US_TOPIC_0000001180440147__image96975494331" src="figure/en-us_image_0000001134560732.png" width="465.5" height="301.971047" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="EN-US_TOPIC_0000001180440147__li247217455211"><span>Click <strong id="EN-US_TOPIC_0000001180440147__b842352706194647">Yes</strong> to delete the tag.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_0103.html">Managing Tags</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>