This topic provides an overview of the tagging function of Virtual Private Cloud (VPC). You can use tags to label and classify VPCs, route tables, and VSwitches, which facilitates resource search and aggregation.
As shown in the preceding figure, as the number of VPCs, route tables, and VSwitches increases, it is more difficult to manage these instances. Tags can be used to categorize and manage resources by group to help query and filter instances.
- The key of each tag on an instance must be unique.
- Tags must be associated with instances.
- Tag information cannot be shared across regions.
For example, tags created in the China (Hangzhou) region are not visible to the China (Shanghai) region.
- The tags of VPCs, route tables, VSwitches, and Elastic IP Addresses (EIPs) in the
same region and under the same account are interconnected.
For example, if a tag is associated with a VPC, in order to associate this tag with the VSwitches, route tables, or EIPs which are in the same region and under the same account, you can go to the tag configuring pages of these resources and select this tag for association, instead of entering the tag key and value information manually.
- You can modify the key and value of a tag or delete a tag of an instance at any time. If you delete an instance, all tags associated with the instance are also deleted.
You can only associate up to 20 tags with an instance. Quota increases are not currently supported.
|Add tags||Add tags to a VPC||TagResources|
|Add tags to multiple instances at a time|
|Search for instances by tag||Search cloud instances by tag||ListTagResources|
|Delete tags||Remove tags from an instance||UnTagResources|
|Remove tags from multiple instances at a time|