Overview
Scenarios
A tag identifies an ECS. Adding tags to an ECS facilitates ECS identification and management.
You can add a tag to an ECS during the ECS creation or after the ECS is created. You can add a maximum of 10 tags to each ECS.
Tags added during the ECS creation will also be added to the EIP and EVS disks (including the system disk and data disks) of the ECS. If the ECS uses an existing EIP, the tags will not be added to the EIP.
After creating the ECS, you can view the tags on the pages providing details about the ECS, EIP, and EVS disks.
Basics of Tags
Tags are used to identify cloud resources. When you have many cloud resources of the same type, you can use tags to classify cloud resources by dimension (for example, use, owner, or environment).
Figure 1 shows how tags work. In this example, you assign two tags to each cloud resource. Each tag contains a key and a value that you define. The key of one tag is Owner, and the key of another tag is Usage. Each tag has a value.
You can quickly search for and filter specific cloud resources based on the tags added to them. For example, you can define a set of tags for cloud resources in an account to track the owner and usage of each cloud resource, making resource management easier.
Tag Naming Rules
- Each tag consists of a key-value pair.
- A maximum of 10 tags can be added to an ECS.
- For each resource, a tag key must be unique and can have only one tag value.
- A tag consists of a tag key and a tag value. Table 1 lists the tag key and value requirements.
Table 1 Tag key and value requirements Parameter
Requirement
Example Value
Key
- Cannot be left blank.
- The key value must be unique for an ECS.
- Can contain a maximum of 36 characters.
- Can only consist of digits, letters, hyphens (-), and underscores (_).
- Cannot contain the following special characters: =*<>\,|/
- Cannot be started or ended with a space.
Organization
Value
- Can contain a maximum of 43 characters.
- Can only consist of digits, letters, hyphens (-), underscores (_), and periods (.).
- Cannot contain the following special characters: =*<>\,|/
- Cannot be started or ended with a space.
Apache
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot