Tags are used to identify cloud resources. The tags allow you to categorize, search for, and aggregate cloud resources that have the same characteristics by using different dimensions. This facilitates resource management.
You can use tags to perform the following operations:
- Search for resources.
Add tags to resources and search for resources by tag in the Resource Management console or by calling a tag-related API operation. For more information, see Use tags to query cloud resources.
- Implement automated O&M.
Add different tags to environments such as production and test environments, operating systems such as Windows and Linux, or mobile platforms such as iOS and Android. Then, create a template in Operation Orchestration Service (OOS) and execute the template to implement automated O&M for your resources. For more information, see Overview.
- Control access to resources.
You can use tags in Resource Access Management (RAM) to manage the access and operation permissions of RAM users on different resources. For more information, see Create a resource with a specific tag and Use tags to control access to ECS resources.
- Convenience: A unified, visualized console is provided to manage the resources to which tags are added.
- Flexibility: You can add, remove, modify, or query one or more tags in the console or by calling an API operation.
- Visibility: You can use tags to manage separate bills for departments, products, and projects.
A tag consists of a key-value pair.
|custom tag||A custom tag is created by a user. For more information, see Add a tag.|
|system tag||A system tag is defined by the system. You can only query system tags.|
Alibaba Cloud services that support tags
A series of core Alibaba Cloud services support tags, such as Elastic Compute Service (ECS), ApsaraDB RDS, Object Storage Service (OSS), Virtual Private Cloud (VPC), Server Load Balancer (SLB), and Container Service for Kubernetes (ACK). Alibaba Cloud intends to add tag support for other services. For more information, see Alibaba Cloud services that support tags.
|Maximum number of tags that can be added to a single resource||20|
|Whether tag information can be shared across regions||
No. For example, in the China (Shanghai) region, you cannot view tags created in the China (Hangzhou) region.
|Tag key||A tag key must be 1 to 128 characters in length and cannot contain
|Tag value||A tag value must be 1 to 128 characters in length and cannot contain
|Adding tags to resources||
Each tag key on a resource can have only one tag value. If you create a tag that has the same key as an existing tag, the value of the existing tag is overwritten.
For example, the