nav-img
Advanced

Managing VPC Tags

Scenarios

Tags help you identify, classify, and search for VPCs. You can perform the following operations to manage VPC tags:

  • Add tags to a VPC.
  • Modify a VPC tag.
  • Delete a VPC tag.

For details about VPC tag requirements, see Table 1.

Table 1 VPC tag key and value requirements

Parameter

Requirements

Example Value

Key

  • Cannot be left blank.
  • Must be unique for each VPC and can be the same for different VPCs.
  • Can contain a maximum of 36 characters.
  • Can contain letters, digits, underscores (_), and hyphens (-).

vpc_key1

Value

  • Can contain a maximum of 43 characters.
  • Can contain letters, digits, underscores (_), periods (.), and hyphens (-).

vpc-01

Notes and Constraints

Each cloud resource can have a maximum of 10 tags.

Procedure

Search for VPCs by tag key or value on the VPC list page.

  1. Log in to the management console.
  2. Click in the upper left corner and choose Network > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the search box above the VPC list, click anywhere in the search box.

    Click the tag key and then the value as required. The system filters resources based on the tag you select.

    Click anywhere in the search box to add the next tag key and value.

Add, delete, edit, and view tags on the Tags tab of a VPC.

  1. Log in to the management console.
  2. Click in the upper left corner and choose Network > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. On the Virtual Private Cloud page, locate the VPC whose tags are to be managed and click the VPC name.

    The page showing details about the particular VPC is displayed.

  4. Click the Tags tab and perform desired operations on tags.
    • View tags.

      On the Tags tab, you can view details about tags added to the current VPC, including the number of tags and the key and value of each tag.

    • Add a tag.

      Click Add Tag in the upper left corner. In the displayed Add Tag dialog box, enter the tag key and value, and click OK.

    • Edit a tag.

      Locate the row that contains the tag you want to edit and click Edit in the Operation column. In the Edit Tag dialog box, change the tag value and click OK.

    • Delete a tag.

      Locate the tag you want to delete and click Delete in the Operation column. In the displayed dialog box, click OK.