doc-exports/docs/fg/umn/functiongraph_01_1839.html
Chen, Junjie dac566cf2f FG UMN 20230725 version
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-04-03 10:30:56 +00:00

44 lines
7.5 KiB
HTML

<a name="functiongraph_01_1839"></a><a name="functiongraph_01_1839"></a>
<h1 class="topictitle1">Configuring Tags</h1>
<div id="body32001227"><div class="section" id="functiongraph_01_1839__en-us_topic_0000001461837116_section02011481676"><h4 class="sectiontitle">Introduction</h4><p id="functiongraph_01_1839__en-us_topic_0000001461837116_p931554765918">Tags help you identify your cloud resources. When you have many cloud resources of the same type, you can use tags to classify them by dimension (for example, use, owner, or environment).</p>
<p id="functiongraph_01_1839__en-us_topic_0000001461837116_p192701607101">Add tags for a function on the <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_b13832048117">Configuration</strong> tab page. Each function can have a maximum of 20 tags.</p>
</div>
<div class="section" id="functiongraph_01_1839__en-us_topic_0000001461837116_section40131015512"><h4 class="sectiontitle">Scenario</h4><p id="functiongraph_01_1839__en-us_topic_0000001461837116_p164821613145510">Tags help you identify and manage your function resources. For example, you can define a set of tags for function resources in your account to track the owner and usage of each function resource.</p>
</div>
<div class="section" id="functiongraph_01_1839__en-us_topic_0000001461837116_section953320491718"><h4 class="sectiontitle">Adding a Tag</h4><ol id="functiongraph_01_1839__en-us_topic_0000001461837116_ol13922947173218"><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li1492244763210">Log in to the FunctionGraph console. In the navigation pane, choose <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_en-us_topic_0000001251907924_b033610517502">Functions</strong> &gt; <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_en-us_topic_0000001251907924_b183361950502">Function List</strong>.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li16939810113319">Click the function to be configured to go to the function details page.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li081265343">Choose <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_b83391166186">Configuration</strong> &gt; <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_b197801317181815">Tag</strong>, and click <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_b394951951818">Add Tag</strong>.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li1585195012357">Add a tag key and value that meet the following rules:<ul id="functiongraph_01_1839__en-us_topic_0000001461837116_ul9431191775020"><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li14431101765012">Each tag consists of a key-value pair. Each key must be unique and have only one value.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li62961448135012">Each function can have a maximum of 20 tags.<div class="note" id="functiongraph_01_1839__en-us_topic_0000001461837116_note228871993410"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="functiongraph_01_1839__en-us_topic_0000001461837116_p1730042173412">If your organization has configured tag policies for FunctionGraph, add tags to functions based on the policies. If a tag does not comply with the tag policies, function creation may fail. Contact your administrator to learn more about tag policies.</p>
</div></div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_01_1839__en-us_topic_0000001461837116_table165896617243" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Tag naming rules</caption><thead align="left"><tr id="functiongraph_01_1839__en-us_topic_0000001461837116_row2588268240"><th align="left" class="cellrowborder" valign="top" width="36.61%" id="mcps1.3.3.2.4.1.2.2.2.3.1.1"><p id="functiongraph_01_1839__en-us_topic_0000001461837116_p195882610246">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="63.39%" id="mcps1.3.3.2.4.1.2.2.2.3.1.2"><p id="functiongraph_01_1839__en-us_topic_0000001461837116_p175881560245">Rule</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_01_1839__en-us_topic_0000001461837116_row658817616243"><td class="cellrowborder" valign="top" width="36.61%" headers="mcps1.3.3.2.4.1.2.2.2.3.1.1 "><p id="functiongraph_01_1839__en-us_topic_0000001461837116_p10588166202419">Key</p>
</td>
<td class="cellrowborder" valign="top" width="63.39%" headers="mcps1.3.3.2.4.1.2.2.2.3.1.2 "><ul id="functiongraph_01_1839__en-us_topic_0000001461837116_ul6588760246"><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li1804556184919">Cannot be empty.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li1867714717584">Cannot start with <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_b238773982118">_sys_</strong> or a space, or end with a space.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li114112613507">Can contain UTF-8 letters, digits, spaces, and these characters: _.:=+-@</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li175543342524">Must be unique and cannot exceed 128 characters.</li></ul>
</td>
</tr>
<tr id="functiongraph_01_1839__en-us_topic_0000001461837116_row145892612243"><td class="cellrowborder" valign="top" width="36.61%" headers="mcps1.3.3.2.4.1.2.2.2.3.1.1 "><p id="functiongraph_01_1839__en-us_topic_0000001461837116_p258820616241">Value</p>
</td>
<td class="cellrowborder" valign="top" width="63.39%" headers="mcps1.3.3.2.4.1.2.2.2.3.1.2 "><ul id="functiongraph_01_1839__en-us_topic_0000001461837116_ul125891614245"><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li1283910367">Can be an empty string.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li1758815682417">Can contain UTF-8 letters, digits, spaces, and these characters: _.:/=+-@</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li671133213916">Max. 255 characters.</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li134599264170">Click <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_b6632715172418">Save</strong>.<p id="functiongraph_01_1839__en-us_topic_0000001461837116_p1711112831720">Tag values can be modified but tag keys cannot.</p>
</li></ol>
</div>
<div class="section" id="functiongraph_01_1839__en-us_topic_0000001461837116_section1166217465526"><h4 class="sectiontitle">Searching for Functions by Tag</h4><ol id="functiongraph_01_1839__en-us_topic_0000001461837116_ol1446322145311"><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li786815416541">Return to the FunctionGraph console. In the navigation pane, choose <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_b153247805591516">Functions</strong> &gt; <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_b122753129391516">Function List</strong>.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li6917033165319">In the search box, select the <strong id="functiongraph_01_1839__en-us_topic_0000001461837116_b5813143716267">Tag</strong> filter, and then select one or more key-value pairs.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li18981486207">(Optional) Add more filters, such as runtime and package type.</li><li id="functiongraph_01_1839__en-us_topic_0000001461837116_li593195255015">View the search result in the function list.</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_01_0300.html">Configuring Functions</a></div>
</div>
</div>