Updated on 2024-04-25 GMT+08:00

Tag Management

You can use tags to customize resource categories, add tags to domain names, and manage resources with ease.

Scenarios

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). You can quickly search for specific cloud resources based on the tags added to them. For example, you can define a set of tags for cloud resources in an account to track the owner and usage of each cloud resource, making resource management easier.

Restrictions

  • You can add up to 20 tags to each domain name.
  • If your organization has set CDN tag policies, you need to add tags to domain names based on the tag policies. Contact your organization administrator to learn about the tag policy details.

Adding a Tag in the Domain Name List

  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.
  3. Click in the Tags column in the row containing the target domain name.
    Figure 1 Editing a tag
    Table 1 Parameter description

    Parameter

    Description

    Example

    Tag key

    • Enter 1 to 128 characters
    • Enter letters, digits, spaces, and special characters (_.:=+-@). Do not start or end with a space.
    • Do not start with _sys_.

    Protocol

    Tag value

    • Enter 1 to 255 characters.
    • Enter letters, digits, spaces, and special characters (_.:=+-@/). Do not start or end with a space.

    HTTPS

  4. Enter the tag key and value and click Add.

    The tag is added to the text box above.

  5. Click OK.

Adding a Tag on the Configuration Page

  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.
  3. In the domain list, click the target domain name or click Configure in the Operation column. Click the Tags tab and click Edit Tag.
    Figure 2 Editing tags
    Table 2 Parameter description

    Parameter

    Description

    Example

    Tag key

    • Enter 1 to 128 characters
    • Enter letters, digits, spaces, and special characters (_.:=+-@). Do not start or end with a space.
    • Do not start with _sys_.

    Protocol

    Tag value

    • Enter 1 to 255 characters.
    • Enter letters, digits, spaces, and special characters (_.:=+-@/). Do not start or end with a space.

    HTTPS

  4. Click Add Tag, enter a tag key and value, and click OK.

Deleting a Tag

  • On the Domains page
    1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

      The CDN console is displayed.

    2. In the navigation pane, choose Domains.
    3. Click in the Tags column in the row containing the target domain name.
    4. Delete the tag key-value pair in the text box and click OK.
  • On the domain name configuration page
    1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

      The CDN console is displayed.

    2. In the navigation pane, choose Domains.
    3. In the domain list, click the target domain name or click Configure in the Operation column.
    4. Click the Tags tab.
    5. Click Edit Tag.
    6. Click Delete next to the tag to be deleted and click OK.

Searching for Resources by Tag

You can use tags to search for resources.

  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.
  3. Enter one or more tag key-value pairs into the text box and press Enter to search for domain names with the specified tags.