Help Center/ NAT Gateway/ User Guide/ Managing NAT Gateway Tags
Updated on 2024-03-15 GMT+08:00

Managing NAT Gateway Tags

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 ten tags can be added to each NAT gateway.

Only public NAT gateways support tag management.

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.
  • Can contain a maximum of 36 characters.
  • Cannot contain equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (\), commas (,), vertical bars (|), and slashes (/), and the first and last characters cannot be spaces.

Value

  • Can contain a maximum of 43 characters.
  • Cannot contain equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (\), commas (,), vertical bars (|), and slashes (/), and the first and last characters cannot be spaces.

Procedure

Search for public NAT gateways by tag key or tag value on the page listing the public NAT gateways.

  1. Log in to the management console.
  2. Click Service List in the upper left corner. Under Networking, select NAT Gateway.
  3. In the upper right corner of the public NAT gateway list, click Search by Tag.
  4. In the displayed area, enter the tag key and tag value of the public NAT gateway you are searching for. Both the tag key and value must be specified.
  5. Click + to specify additional tag keys and values.

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

  6. Click Search.

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

Add, delete, edit, and view tags of a public NAT gateway on the Tags tab.
  1. Log in to the management console.
  2. Click Service List in the upper left corner. Under Networking, select NAT Gateway.
  3. In the public NAT gateway list, locate the public NAT gateway whose tags you want to manage and click its name.

    The page showing details about the public 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 tag details of the current public NAT gateway, 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.

      You can use the predefined tags as prompted to simplify tag adding operations. For details, see Predefined Tags.

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