All Products
Search
Document Center

CDN:Use tags to manage domain names

Last Updated:Jun 21, 2026

CDN and let you use tags to categorize accelerated domain names. You can add the same tag to multiple domain names that have similar properties to simplify management and search.

Limitations

You can add a maximum of 20 tags to each domain name.

Tagging rules

Each tag is a key-value pair in the format Key:Value. The following rules apply to tags:

  • Tags are case-sensitive.

  • The following rules apply to the key:

    • The key cannot start with aliyun or acs:, contain http:// or https://, or be an empty string.

    • The key cannot contain the following special characters: -.!@#$%?/^&*)(+={}[]",'<>~·`?:;_..

    • The key can be up to 64 Unicode characters in length.

    • A tag key must be unique for a given cloud resource.

  • The following rules apply to the value:

    • The value cannot contain http:// or https://. The value can be an empty string.

    • The value can be up to 128 Unicode characters in length.

Add tags

Add a tag to a single domain name

  1. Log on to the CDN console.

  2. In the left navigation pane, click Domain Names.

  3. Use one of the following methods to open the Edit Tag dialog box.

    • Method 1: Move the pointer over the 1 icon in the Tags column for the target domain name. In the pop-up window, click Bind.

    • Method 2: On the Domain Names page, find the domain name that you want to tag and click Manage. On the Basics tab, click the 1 icon next to Tags.

  4. In the Edit label dialog box, create and add a new tag, or select an existing tag.

    Note

    For information about the rules for creating a new tag, see Tagging rules.

    • Tag Key: Select an existing key or enter a new one. Prefix-based fuzzy search is supported. You can add up to 20 tags at a time.

    • Tag Value: Select an existing value or enter a new one. The value can be an empty string.

  5. Click OK.

Add tags to multiple domain names

  1. Select the domain names to which you want to add tags, and then choose Manage Tags > Add Tags.

  2. In the Edit label dialog box, create and add a new tag, or select an existing tag.

    Note

    For information about the rules for creating a new tag, see Tagging rules.

    • Tag Key: Select an existing key or enter a new one. Prefix-based fuzzy search is supported. You can add up to 20 tags at a time.

    • Tag Value: Select an existing value or enter a new one. The value can be an empty string.

  3. Click OK.

Remove a tag

If a tag is no longer needed for a domain name, you can remove it.

  1. Select the domain names that you want to untag, and then choose Manage Tags > Delete Tags.

  2. On the Untag Resources in Batches page, select the tags that you want to remove.

  3. Click Untag n Tags.

  4. On the Domain Names page, click the refresh icon to verify that the tags have been removed.

Use tags

Note
  • If you select multiple tags, the query returns only the domain names that have all the selected tags.

  • If you filter by tags that have the same key but different values, the last selected value for that key is used for filtering. For example, if you first filter by the tag Key1:Value1 and then add a filter for Key1:Value2, the final result includes only domain names with the tag Key1:Value2.

Filter domain names by tag

  1. On the Domain Names page, click Filter by Tag.

    A dropdown panel appears. In the Search Tag Key input box, you can search for a target tag key and then select the key to filter domain names.

  2. Select the tags that you want to use for filtering. The list updates to show only domain names that have all the selected tags.

Filter resource monitoring data by tag

  1. In the left-side navigation pane, choose Monitoring & Usage Analytics > Resource Monitoring.

  2. On the Data Transfer/Bandwidth of Requests tab, click Filter by Tag.

  3. Select the desired tags and click Search. In the drop-down list, you can use the Search Tag Key field to find keys and expand them to select values. A Manage Tags link is also available at the bottom.

Filter usage data by tag

  1. In the left-side navigation pane, click Usage.

  2. On the Usage page, click Filter by Tag.

  3. Select the desired tags and click Search. In the drop-down panel, use the Search Tag Key field to find and select tags. The Manage Tags link at the bottom of the panel redirects you to the tag management page.

Related documents

  • Tags are labels that help you categorize, search for, and aggregate cloud resources with shared characteristics, which simplifies resource management. For more information, see Tag overview.

  • To query all tags in your account, use the DescribeUserTags API operation.

  • For an example of how to use tags to group and manage domain names, see Use cases.