Managing VPN Tags

Application Scenarios

A VPN tag identifies a VPN. Tags can be added to VPNs to facilitate VPN identification and administration. You can add a tag to a VPN when creating the VPN. Alternatively, you can add a tag to a created VPN on the VPN details page. A maximum of ten tags can be added to each VPN.

A tag consists of a key and value pair. Table 1 lists the tag key and value requirements.

Table 1 VPN tag key and value requirements

Parameter

Requirement

Example Value

Key

  • Cannot be left blank.

  • Must be unique for the same VPN and can be the same for different VPNs.

  • Contains a maximum of 36 characters.

  • Can contain only the following character types:

    • Uppercase letters

    • Lowercase letters

    • Digits

    • Special characters, including hyphens (-) and underscores (_)

vpn_key1

Value

  • Can contain a maximum of 43 characters.

  • Can contain only the following character types:

    • Uppercase letters

    • Lowercase letters

    • Digits

    • Special characters, including hyphens (-) and underscores (_)

vpn-01

Procedure

Search for VPNs by Tag Key and Value on the Page Showing the VPN List.

  1. Log in to the management console.

  2. Click image1 in the upper left corner and select a region and project.

  3. On the console homepage, under Network, click Virtual Private Network.

  4. In the upper right corner of the VPN list, click Search by Tag.

  5. In the displayed area, enter the tag key and value of the VPN you are looking for.

    Both the tag key and value must be specified.

  6. Click + to add the entered tag key and value.

    You can add multiple tag keys and values to refine your search results. If you add more than one tag to search for VPCs, the VPCs containing all specified tags will be displayed.

  7. Click Search.

    The system displays the VPNs you are looking for based on the entered tag keys and values.

Add, Delete, Edit, and View Tags on the Tags Tab of a VPN.

  1. Log in to the management console.

  2. Click image2 in the upper left corner and select a region and project.

  3. On the console homepage, under Network, click Virtual Private Network.

  4. On the Virtual Private Network page, locate the VPN whose tags are to be managed and click the VPN name.

    The page showing details about the particular VPN is displayed.

  5. 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 VPN, 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 dialog box, enter the key and value of the tag to be added, and click OK.

    • Edit a tag.

      Locate the row that contains the tag to be edited 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 row that contains the tag to be deleted, and click Delete in the Operation column. In the displayed Delete Tag dialog box, click Yes.