You can add tags to Global Accelerator instances, bandwidth plans, endpoint groups, and access control lists (ACLs) of standard GA instances to categorize, search for, and aggregate resources. This topic uses a standard GA instance as an example.
Background information
As your Global Accelerator resources grow, managing them becomes more complex. Tags let you group, search for, and filter resources.
A tag is a label assigned to a resource. Each tag consists of a key-value pair. Note the following when you use tags:
-
Each tag key must be unique for a resource.
-
A tag must be added to at least one resource.
-
You can edit the key and value of a tag, or remove a tag from a resource at any time.
-
When you delete a resource, all its tags are also deleted. Tags on other resources are not affected.
-
You can add a maximum of 20 tags to a single resource. This quota cannot be increased.
Add tags to a standard GA instance
Log on to the GA console.
-
On the Instances page, follow these steps to add tags to a standard GA instance.
-
Add tags to a single instance
-
Find the target standard GA instance, hover over the
icon in the Tag column, and then click Bind or Edit in the displayed tooltip.If the Tag column is not displayed, click the
icon in the upper-right corner of the instance list and select Tag to display the column. -
In the Edit labels dialog box, configure the tags as described in the following table and click OK.
Parameter Description Tag Key You can select or enter a tag key. The tag key must be 1 to 64 characters in length, and cannot start with
aliyunoracs:. It cannot containhttp://orhttps://.Tag Value You can select or enter a tag value. The tag value can be 1 to 128 characters in length, but cannot start with
aliyunoracs:. It cannot containhttp://orhttps://. -
In the Configure Tags successfully dialog box, confirm the instance information and the changes, and then click Close.
-
-
Add tags to multiple instances
-
Select the standard GA instances that you want to tag, and then choose in the lower-left corner of the page.
-
In the Edit labels dialog box, specify a Key and a Value, and then click OK.
-
In the Configure Tags successfully dialog box, confirm the information about the instances and tags, and then click Close.
-
-
Search for instances by tag
After you add tags, you can use them to search for and filter instances.
Log on to the GA console.
-
On the Instances page, click Filter by Tag.
-
From the Filter by Tag list, select a tag key and value.
The list displays the standard GA instances that match the selected tag.
-
Optional: Click Clear Search Condition above the instance list to clear the tag filter.
Remove tags from an instance
Removing a tag from an instance does not affect tags on other instances.
Log on to the GA console.
-
On the Instances page, follow these steps to remove tags from a standard GA instance.
-
Remove tags from a single instance
-
Find the target standard GA instance, hover over the
icon in the Tag column, and then click Edit in the displayed tooltip. -
In the Edit labels dialog box, find the key-value pair that you want to remove, click the
icon next to it, and then click OK. -
In the Configure Tags successfully dialog box, confirm the instance information and the changes, and then click Close.
-
-
Remove tags from multiple instances
-
Select the standard GA instances from which to remove tags, and then choose in the lower-left corner of the page.
-
In the Delete Tags for Multiple Resources dialog box, select the key-value pairs that you want to remove, and then click Unbind N Tags.
Here, N is the number of tags you selected.
-
In the Configure Tags successfully dialog box, confirm the information about the instances and tags, and then click Close.
-
-
Related APIs
-
TagResources: Adds tags to Global Accelerator resources.
-
ListTagResources: Lists the tags on Global Accelerator resources.
-
UntagResources: Removes tags from Global Accelerator resources.