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 a VPC. You can use the procedure described in the topic to add tags to a route table or a vSwitch.

Background information

You can add up to 20 tags to each instance. Before you start, take note of the following limits:
  • The keys of tags that are added to the same instance must be unique.
  • You cannot create tags without adding them to instances. All tags must be added to instances.
  • Tag information is not shared across regions.

    For example, if you are in the China (Shanghai) region, you cannot view the tags of instances that are created in the China (Hangzhou) region.

  • You can modify the key and value of a tag or remove a tag from an instance.
  • If you delete an instance, all tags added to the instance are deleted. This operation does not affect the tags added to other instances.

Procedure

  1. Log on to the VPC console.
  2. In the top navigation bar, select the region where the VPC is deployed.
  3. On the VPCs page, find the VPC that you want to manage, move the pointer over Tag in the Tags column, and then click Edit in the pop-up message.
  4. In the Configure Tags 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://.