This topic describes how to add tags to a Virtual Private Cloud (VPC). You can use tags to label and classify VPCs, route tables, and VSwitches, which facilitates resource search and aggregation. The operation for adding tags to a route table or a VSwitch is similar to the procedure described in this topic.

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, find the target VPC instance, then move the pointer over the Tag icon icon in the Tags column. Then click Add in the bubble that appears.
  4. In the Configure Tags dialog box, configure the tag according to the following information, 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 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://.