You can add tags to virtual private clouds (VPCs), route tables, and vSwitches as required. Tags facilitate resource search and management. This topic describes how to add tags to multiple VPCs at a time. You can add tags to route tables and vSwitches in a similar way.

Background information

You can only associate up to 20 tags with an instance. Tags are described as follows:
  • 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.

Procedure

  1. Log on to the VPC console.
  2. In the top navigation bar, select the region of the VPC.
  3. On the VPCs page, select the VPCs to which you want to add tags, and choose Configure Tags > Add Tags.
  4. In the Configure Tags for Multiple Resources dialog box, set the following parameters 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 aliyun or acs:. It cannot contain http:// or https://.

    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 or acs:. It cannot contain http:// or https://.