Managing NAT Gateway Tags

Application Scenarios

A NAT gateway tag identifies the NAT gateway. Tags can be added to NAT gateways to ease NAT gateway identification and administration. You can add a tag to a NAT gateway when creating the NAT gateway. Alternatively, you can add a tag to a created NAT gateway on the NAT gateway details page. A maximum of 20 tags can be added to each NAT gateway.

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

Table 1 Tag requirements

Parameter

Requirement

Key

  • Cannot be left blank.

  • Must be unique for each NAT gateway.

  • Contains a maximum of 36 characters.

  • Contains only letters, digits, hyphens (-), underscores (_), and at signs (@).

Value

  • Can contain a maximum of 43 characters.

  • Contains only letters, digits, hyphens (-), underscores (_), and at signs (@).

Procedure

Search for NAT gateways by tag key and value on the page showing the NAT gateway List.

  1. Log in to the management console.

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

  3. Under Network, click NAT Gateway.

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

  5. In the displayed area, enter the tag key and value of the NAT gateway you are looking for. Both the tag key and value must be specified.

  6. Click + to specify additional tag keys and values.

    You can add a maximum of 20 tags to refine your search results. If you add more than one tag to search for NAT gateways, the tags are automatically joined with AND.

  7. Click Search.

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

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

  1. Log in to the management console.

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

  3. Under Network, click NAT Gateway.

  4. On the displayed page, locate the NAT gateway whose tags are to be managed and click the NAT gateway name. The page showing details about the NAT gateway is displayed.

  1. Click the Tags tab and perform desired operations on tags.

    • View a tag.

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

      Note

      You can use the predefined tags as prompted to simplify tag adding operations. For more information about predefined tags, see the Tag Management Service User Guide.

    • Modify 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.