This topic shows you how to create, update, and delete tags, and query services by tag 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 Services and Functions.
  4. On the Services and Functions page, click the service that you require. Then, click Edit Tags in the upper-right corner.
    edit-tag
  5. In the Tags panel, click Create Tag.
  6. In the Create Tag dialog box, enter the tag name and value, and click OK.
    add-editTo create multiple tags for the service, repeat this step and enter multiple key-value pairs. For more information about the instructions and limits of tags, see Overview.
  7. In the Tags panel, click Save.
    Move the pointer over the service to 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 need 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 Services and Functions.
  4. On the Services and Functions page, click the service that you require. Then, click Edit Tags in the upper-right corner.
    edit-tag
  5. In the Tags panel, click Create Tag.
  6. In the Create Tag dialog box, enter the new key-value pair and click OK.
  7. In the Tags panel, click Save.

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 Services and Functions.
  4. On the Services and Functions page, click the service that you require. Then, click Edit Tags in the upper-right corner.
    edit-tag
  5. In the Tags panel, find the tag that you want to delete and click Delete in the Actions column. Then, click Save.
    delete-tag