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

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Service/Function.
  4. Move the pointer over the tag icon of the target service and click Edit Tags.
    edit-tag
  5. In the Edit Tags dialog box, click Create Tag.
  6. 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.
  7. Click OK.
    Move the pointer over the tag icon of the target service. You can view the created tags.result-tag-icon

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.
  1. Log on to the Function Compute console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Service/Function.
  4. Move the pointer over the tag icon of the target service and click Edit Tags.
    edit-tag
  5. In the Edit Tags dialog box, click Create Tag.
  6. Enter the key and new value and click OK.
  7. Click OK.

Delete tags

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Service/Function.
  4. Move the pointer over the tag icon of the target service and click Edit Tags.
    edit-tag
  5. Click × next to one or more tags that you want to delete, and then click OK.
    delete-tag

Query services by tag

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Service/Function.
  4. 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.
    search-tag
    Services that match the search conditions are displayed.service-list