Tags are used to mark domain names. You can filter domain names by tag. If a domain name no longer needs a tag, you can remove the tag from the domain name.

Limits

Each tag is a key-value pair. Tags have the following limits:
  • You can add at most 20 tags to each domain name.
  • The keys of tags that are added to the same domain name must be unique.

    If two tags added to the same domain name have the same key but different values, the tag added later overwrites the one added earlier. For example, if you add tags Key1:Value1 and Key1:Value2 to the domain name test.example.com, only the tag Key1:Value2 is added to the domain name test.example.com.

Add tags to domain names

You can add tags to domain names to facilitate the management of domain names.

  1. Log on to the DCDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. Add tags to domain names.
    • Add tags to an individual domain name
      1. On the Domain Names page, find the domain name to which you want to add tags and move your pointer over the Tag icon.
      2. In the message that appears, click Edit.
      3. In the Edit Tag dialog box, set the tag key and value, and click OK
        You can Select Tag or Create Tag.
        Parameter Description
        Key The tag key can be up to 64 Unicode characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs:, or be an empty string.
        Value The value can be up to 128 Unicode characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs: but can be an empty string.
    • Add tags to multiple domain names at a time
      1. On the Domain Names page, select the domain names to which you want to add tags and choose Tags > Add Tag.
      2. In the Add Tags dialog box, set the tag key and value, and click OK.
        You can Select Tag or Create Tag.
        Parameter Description
        Key The tag key can be up to 64 Unicode characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs:, or be an empty string.
        Value The value can be up to 128 Unicode characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs: but can be an empty string.

Use tags to manage domain names

After you add tags to domain names, you can filter domain names by tag.

  1. Log on to the DCDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. On the Domain Names page, click the Select Tag tab.
  4. Select one or more tags to filter domain names.

Query data of domain names by tag

After you add tags to domain names, you can use tags to filter domain names and query data such as data usage of the domain names.

  1. Log on to the DCDN console.
  2. Filter domain names and query data.
    1. In the left-side navigation pane, click Monitoring.
    2. After you click Monitoring, you can choose to go to the Resource Usage, Real-time Monitoring, or Statistics Analysis page and then query data.
      Note If you select multiple tags, only the domain names that contain all the selected tags are returned by the system.
    1. View the data returned.

Remove tags from domain names

If a domain name no longer needs a tag, you can remove the tag from the domain name.

  1. Log on to the DCDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. Select the domain name from which you want to remove tags and choose Tags > Delete Tag.
  4. In the Delete Tags dialog box, select the tags that you want to remove and click OK.
    Note You can remove at most 20 tags from domain names at a time.
  5. On the Domain Names page, click the Refresh icon to check whether the tags are removed from the domain names.

Related API operations

The following table describes the API operations that you can perform to manage tags.
Feature Description API
Add tags Adds tags to domain names to mark or group the domain names. TagDcdnResources
Use tags to manage domain names Filters domain names by tag. You can use tags to group and manage domain names. DescribeDcdnTagResources
Removes tags Removes tags from one or more domain names. UntagDcdnResources