Express Connect circuits, shared ports, virtual border routers (VBRs) and VBR-to-VPC connections support tags. You can use tags to label and classify them, which facilitates resource search and aggregation. This topic describes how to manage and use tags of Express Connect circuits and shared ports.
Tag overview
Tags are used to classify instances. Each tag consists of a key-value pair. For more information about the usage and limits of tags, see Tag overview.
You can add tags to an instance during or after you create the instance. For more information about how to add tags during instance creation, see the following documents:
Add tags
Log on to the Express Connect console.
In the top navigation bar, select a region.
On the Physical Connection page, perform the following operations to add tags to Express Connect circuits:
Add tags to an instance
You can add tags to an instance by using one of the following methods.
Case
Method 1
Method 2
The instance has no existing tags.
Find the Express Connect circuit that you want to manage and move the pointer over the icon in the Tags column.
Click Add in the pop-up box.
Find the Express Connect circuit that you want to manage and click the ID of the circuit.
In the Basic Information section of the instance details page, click the icon on the right side of Tags.
The instance has no existing tags.
Find the Express Connect circuit that you want to manage and move the pointer over the icon in the Tags column.
Click Edit in the pop-up box.
In the Configure Tags dialog box, specify the key and value then 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
aliyun
oracs:
. 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
aliyun
oracs:
. It cannot containhttp://
orhttps://
.
Add tags to multiple instances
Select the instances to which you want to add tags and choose
in the lower-left corner.In the Configure Tags dialog box, specify Tag Key and Tag Value, and click OK.
Filter instances by tags
After you add tags to instances, you can filter instances by tag.
Log on to the Express Connect console.
In the top navigation bar, select a region.
On the Physical Connection page, click Filter by Tag.
In the Filter by Tag dialog box, select or enter a tag key and a tag value.
You can select or enter a key-value pair, or select or enter only a tag key.
Remove tags from instances
If a tag is added to multiple instances and then removed from one instance, the tag still remains on the other instances.
Log on to the Express Connect console.
In the top navigation bar, select a region.
On the Physical Connection page, perform the following operations to remove tags from Express Connect circuits:
Remove tags from an instance
You can find the tags that you want to remove by using one of the following methods.
Method
Procedure
Method 1
Find the Express Connect circuit that you want to manage and move the pointer over the icon in the Tags column.
Click Edit in the pop-up box.
Method 2
Find the Express Connect circuit that you want to manage and click the ID of the circuit.
In the Basic Information section of the instance details page, click the icon on the right side of Tags.
In the Configure Tags dialog box, find the key-value pairs that you want to remove, click on the right side, and then click OK.
Remove tags from multiple instances
Select the Express Connect circuits from which you want to remove tags and choose
in the lower-left corner.In the Delete Tags for Multiple Resources dialog box, find the key-value pairs that you want to remove, click the icon on the right side of the key-value pairs, and then click OK.
References
TagResourcesForExpressConnect: creates tags and adds them to one or more specified Express Connect circuits.
UntagResourcesForExpressConnect: removes tags from one or more specified Express Connect circuits.
ListTagResourcesForExpressConnect: queries tags that are added to an Express Connect circuit.