Managing AS Group Tags
Scenarios
If you have many resources of the same type, you can use tags to manage resources flexibly. You can identify specified resources quickly using the tags allocated to them.
Using a tag, you can assign custom data to each AS group. You can organize and manage AS groups, for example, classify AS group resources by usage, owner, or environment.
Each tag contains a key and a value. You can specify the key and value for each tag. A key can be a category associated with certain values, such as usage, owner, and environment.
For example, if you want to distinguish between the test environment and production environment, you can allocate a tag with the key environment to each AS group. For the test environment, the key value is test and for the production environment, the key value is production. You are advised to use one or more groups of consistent tags to manage your AS group resources.
After you allocate a tag to an AS group, the system will automatically add the tag to the instances automatically created in the AS group. If you add a tag to an AS group or modify the tag, the new tag will be added to the ECSs automatically created in the AS group. Creating, deleting, or modifying the tag of an AS group will have no impact on the ECSs in the AS group.
Constraints on Using Tags
- A maximum of 20 tags can be added to an AS group by default. You can check on the console how many tags you can add.
- Each tag contains a key and a value.
- You can set the tag value to an empty character string.
- If you delete an AS group, all tags of the group will also be deleted.
- If you have configured tag policies for AS, add tags to AS groups based on the tag policies. If you add a tag that does not comply with the tag policies, AS groups may fail to be created or the tags may fail to be added or modified. Contact your administrator to learn more about tag policies.
Adding Tags to an AS Group
- Log in to the AS console.
- Click the name of the target AS group. The AS group overview page is displayed.
- Click the Tags tab and click Edit Tag.
- On the displayed page, click Add. Set tag parameters as required based on the tag naming rules listed in Table 1.Figure 1 Adding tags
- Click OK.
| Parameter | Requirement | Example Value |
|---|---|---|
| Tag Key |
| Organization |
| Tag Value |
| Apache |
Modifying or Deleting Tags of an AS Group
- Log in to the AS console.
- Click the name of the target AS group. The AS group overview page is displayed.
- Click the Tags tab and click Edit Tag.
- On the displayed page, modify or delete the target tag.
- Click
in the tag key or tag value text box and modify the tag parameters based on the rules listed in Table 1. Figure 2 Editing tags
- Click Delete to delete the target tag. Figure 3 Deleting a tag
- Click
- Click OK.
Searching for AS Groups by Tag
- Log in to the AS console.
- Click the search box above the AS group list. In the displayed dialog box, select the key and value of the resource tag. Then, the system searches for the target AS group based on the tag key and value. Figure 4 Searching for AS groups by resource tag
- You can only select existing keys and values from the tag list.
- You can select multiple tags to search for AS groups. If you select more than one tag, an OR relationship applies between them. AS groups with any of the specified tags will be returned.
- You can search by combining tags with other search criteria. When combined, an "OR" relationship applies between the tags and other criteria.
What is your overall rating for this page?
Thank 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