This topic provides an overview of domain name tags. Tags do not carry special definitions. Each tag is a key-value pair that is used to mark or filter domain names. You can use tags to mark, group, filter, and manage domain names.
Limits
Each tag consists of a key-value
pair. The following limits apply to tags:
- You can add up to 20 tags to each domain name.
- 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 can be up to 64 Unicode characters in length.
- A key must be unique:
- If you add two tags that have the same key but different values to a domain name, the later one overwrites the earlier one. For example, if you add
Key1:Value1
and thenKey1:Value2
to the domain nametest.example.com
, only the tagKey1:Value2
is added to the domain nametest.example.com
. - If you query a domain name by using two tags that have the same key but different values, the later one overwrites the earlier one. 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.
- If you add two tags that have the same key but different values to a domain name, the later one overwrites the earlier one. For example, if you add
- A key cannot start with
- 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.
- A value cannot contain
Features
You can use tags to manage domain names, as described in the following table.
Feature | Description |
---|---|
Add tags to domain names | Add tags to one or more domain names to group and manage the domain names. |
Remove tags from domain names | Remove tags from domain names if the tags are no longer suitable for managing or filtering domain names. |
Use tags to manage domain names | Filter or group domain names based on specific tags. |
Query data of domain names by tag | Use tags to filter monitoring data such as bandwidth values and cache hit ratios of a specified group of domain names. |
Tag use case | Cases on how to manage domain names by using tags. |