This topic describes how to create, update, and delete tags and how to search for
services by using tags in the Function Compute console.
Create tags
- Log on to the Function Compute console.
- In the top navigation bar, select a region.
- In the left-side navigation pane, click Service/Function.
- Move the pointer over the tag icon of the target service and click Edit Tags.
- In the Edit Tags dialog box, click Create Tag.
- Enter a key-value pair and click OK.
To create multiple tags for the target service, repeat this step and enter multiple
key-value pairs. For instructions and limits of tags, see
Overview.
- Click OK.
Move the pointer over the tag icon of the target service. You can view the created
tags.

Update tags
For a resource, each tag key must be unique. If a new tag has the same key as an existing
tag, the new tag overwrites the existing tag. Therefore, you can update tags by overwriting
existing tags.
For example, the key:value tag exists. If you want to update the tag value to value1,
you can create the key:value1 tag. This new tag overwrites the key:value tag.
Note A new tag overwrites an existing tag only when they have the same key.
- Log on to the Function Compute console.
- In the top navigation bar, select a region.
- In the left-side navigation pane, click Service/Function.
- Move the pointer over the tag icon of the target service and click Edit Tags.
- In the Edit Tags dialog box, click Create Tag.
- Enter the key and new value and click OK.
- Click OK.
Delete tags
- Log on to the Function Compute console.
- In the top navigation bar, select a region.
- In the left-side navigation pane, click Service/Function.
- Move the pointer over the tag icon of the target service and click Edit Tags.
- Click Delete next to one or more tags that you want to delete, and then click Save.
Query services by tag
- Log on to the Function Compute console.
- In the top navigation bar, select a region.
- In the left-side navigation pane, click Service/Function.
- In the search box above the service list, select Tag from the drop-down list, enter
a key or key-value pair, and then click the search icon.
Services that match the search conditions are displayed.
