Help Center/ NAT Gateway/ User Guide/ Tag Management
Updated on 2024-12-24 GMT+08:00

Tag Management

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.

If you have configured tag policies for public NAT gateways, you need to add tags to your public NAT gateways based on the tag policies. If you add a tag that does not comply with the tag policies, public NAT gateways may fail to be created. Contact your administrator to learn more about tag policies.

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.

Managing NAT Gateway Tags

You can manage tags for NAT gateways in either of the following ways:

  • Add tags when you create a NAT gateway.

    For detailed operations, see Buying a Public NAT Gateway and Buying a Private NAT Gateway.

  • Modify tags for an existing NAT gateway.
    1. Go to the NAT gateway list page.
    2. In the public or private NAT gateway list, click the target NAT gateway.
    3. Under Tags, click Edit Tag.
    4. The Edit Tag dialog box is displayed.
      1. Adding a tag: On the Edit Tag page, click Add Tag and enter a tag key and tag value.
      2. Modifying a tag: On the Edit Tag page, locate the target tag and enter a new value.
    5. Click OK.
      • A maximum of 20 tags can be added to a NAT gateway.
      • Each tag is a key-value pair, and the tag key is unique.

Managing Transit IP Address Tags

You can manage tags for transit IP addresses in either of the following ways:

  • Add tags when you assign a transit IP address.

    For details, see Assigning a Transit IP Address.

  • Modify tags for an existing transit IP address.
    1. Go to the transit IP address list page.
    2. In the transit IP address list of the private NAT gateway, click the target transit IP address.
    3. Click Edit Tag.
    4. The Edit Tag dialog box is displayed.
      1. Adding a tag: On the Edit Tag page, click Add Tag and enter a tag key and tag value.
      2. Modifying a tag: On the Edit Tag page, locate the target tag and enter a new value.
    5. Click OK.
      • A maximum of 20 tags can be added to a transit IP address.
      • Each tag is a key-value pair, and the tag key is unique.