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
aliyunoracs:, containhttp://orhttps://, 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://orhttps://. 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
-
Log on to the CDN console.
-
In the left navigation pane, click Domain Names.
-
Use one of the following methods to open the Edit Tag dialog box.
-
Method 1: Move the pointer over the
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
icon next to Tags.
-
-
In the Edit label dialog box, create and add a new tag, or select an existing tag.
NoteFor 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.
-
-
Click OK.
Add tags to multiple domain names
-
Select the domain names to which you want to add tags, and then choose Manage Tags > Add Tags.
-
In the Edit label dialog box, create and add a new tag, or select an existing tag.
NoteFor 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.
-
-
Click OK.
Remove a tag
If a tag is no longer needed for a domain name, you can remove it.
-
Select the domain names that you want to untag, and then choose Manage Tags > Delete Tags.
-
On the Untag Resources in Batches page, select the tags that you want to remove.
-
Click Untag n Tags.
-
On the Domain Names page, click the refresh icon to verify that the tags have been removed.
Use tags
-
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:Value1and then add a filter forKey1:Value2, the final result includes only domain names with the tagKey1:Value2.
Filter domain names by tag
-
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.
-
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
-
In the left-side navigation pane, choose Monitoring & Usage Analytics > Resource Monitoring.
-
On the Data Transfer/Bandwidth of Requests tab, click Filter by Tag.
-
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
-
In the left-side navigation pane, click .
-
On the Usage page, click Filter by Tag.
-
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.