Dynamic Content Delivery Network (DCDN) allows you to use tags to classify accelerated domain names. If you have multiple domain names, you can add a tag to domain names that have the same attributes. This facilitates the management and search of domain names.
Limits
You can add up to 20 tags to each domain name.
Tag rules
Each tag consists of a key-value
pair. The following limits apply to tags:
Tags are case-sensitive.
The following limits apply to keys:
A key cannot start with
aliyun
oracs:
, containhttp://
orhttps://
, or be left unspecified.A key cannot contain the following special characters
-.! @#$%?/^&*)(+={}[]",'<>~ยท'?:;_.
.A key can be up to 64 Unicode characters in length.
A key must be unique for a resource.
The following limits apply to values:
A value cannot contain
http://
orhttps://
, but can be left unspecified.A value can be up to 128 Unicode characters in length.
Add tags
Add tags to a single domain name
Log on to the DCDN console.
In the left-side navigation pane, click Domain Names.
Open the Configure Tags dialog box.
Method 1: Find the domain name to which you want to add tags, move your pointer over the icon in the Tags column, and then click Edit in the tooltip.
Method 2: On the Domain Names page, find the domain name to which you want to add tags and click Configure in the Actions column. On the Basic Settings page, click the icon next to Tags.
In the Configure Tags dialog box, create a new tag or select an existing tag.
NoteFor information about rules of creating tags, see Tag rules.
Tag Key: Select an existing tag key or enter a tag key. You can use fuzzy match to search for tag keys. A maximum of 10 tag keys can be specified at a time.
Tag Value: Select an existing tag value or enter a tag value. You can leave this parameter empty.
Click OK.
Add tags to multiple domain names at a time
On the Domain Names page, select the domain names to which you want to add tags and choose Tags > Add Tag.
In the Configure Tags dialog box, create a new tag or select an existing tag.
NoteFor information about rules of creating tags, see Tag rules.
Tag Key: Select an existing tag key or enter a tag key. You can use fuzzy match to search for tag keys. A maximum of 10 tag keys can be specified at a time.
Tag Value: Select an existing tag value or enter a tag value. You can leave this parameter empty.
Click OK.
Remove tags from domain names
If a tag no longer applies to your domain name, you can remove the tag from the domain name.
Select the domain name from which you want to remove tags and choose .
In the Delete Tags for Multiple Resources dialog box, select the tags that you want to remove.
Click Unbind n tags.
On the Domain Names page, click the refresh icon to check whether the tags are removed.
Use tags
If you select multiple tags, only the domain names to which all the selected tags are added are returned.
If you query a domain name by using two tags that have the same key but different values, the new value overwrites the old value. For example, if you query a domain name by using a tag
Key1:Value1
and then using a tagKey1:Value2
, only the domain name to which the tagKey1:Value2
is added is queried.
Use tags to manage domain names
On the Domain Names page, click Filter by Tag.
Select a tag that you want to use to filter domain names. You can repeat this step to select multiple tags for filtering. This allows you to manage and configure domain names that have the same attributes.
Use tags to filter business monitoring data
In the left-side navigation pane, choose Monitoring > Monitoring or Monitoring > Real-time Monitoring.
Click Filter by Tag.
Select tags that you want to use for filtering and click Search.
References
Tags are used to identify resources. Tags allow you to categorize, search for, and aggregate resources that have the same characteristics from different dimensions. This facilitates resource management. For more information, see Tag overview.
To query all tags in an Alibaba Cloud account, you can only call DescribeDcdnUserTags.
For more information about how to use tags to group and manage domain names, see Cases.