Dynamic Route for CDN (DCDN) allows you to add tags to domain names. You can use tags to mark and group domain names, and filter domain names by tag. This facilitates the management of domain names.

Overview

Tags can be used to mark domain names. Each tag consists of a key-value pair. After you add a large number of domain names to DCDN, domain names may become difficult to manage. In this case, you can use tags to group domain names. This way, you can search and filter data by tag.

Case study

Company information

A company has added 100 domain names to DCDN. These domain names are used to provide services such as marketing, Game A, Game B, and post-production. The company has three O&M engineers: Alice, Tom, and Sam.

Create tags

To facilitate the management of these domain names, the company decides to use tags to group the domain names. The following table describes the key-value pairs that are used to create tags.
Tag key Tag value
Department E-commerce, Game, and Entertainment
Service Marketing, Game A, Game B, and Post-production
Responsible engineer Alice, Tom, and Sam
The company can add the preceding key-value pairs to the domain names. The following table describes the key-value pairs that are added to each domain name.
Note The domain names used in this topic are for reference only.
Domain name Value (key is Department) Value (key is Service) Value (key is Responsible engineer)
domain1 E-commerce Marketing Sam
domain2 E-commerce Marketing Sam
domain3 Gaming Game A Alice
domain3 Gaming Game B Alice
domain4 Gaming Game B Alice
domain5 Gaming Game B Tom
domain6 Gaming Game B Tom
domain7 Gaming Game B Tom
domain8 Entertainment Post-production Sam
domain9 Entertainment Post-production Sam
domain10 Entertainment Post-production Sam
Filter domain names by tag
  • If you want to search for domain names that are managed by Sam, filter domain names by the following tag: Responsible engineer: Sam.
  • If you want to search for domain names that belong to the game department and are managed by Tom, filter domain names by the following tags: Department: Game and Responsible engineer: Tom.

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.