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.

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.

  • 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 (@).

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 Creating a Public NAT Gateway and Creating a Private NAT Gateway.

  • Modify tags for an existing NAT gateway.

    1. Log in to the management console.

    2. In the upper left corner of the page, click image1 and select the desired region and project.

    3. Click image2 in the upper left corner of the page and choose Network > NAT Gateway.

    4. In the public or private NAT gateway list, click the target NAT gateway.

    5. Under Tags, click Edit Tag.

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

    7. Click OK.

      Note

      • 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. Log in to the management console.

    2. In the upper left corner of the page, click image3 and select the desired region and project.

    3. Click image4 in the upper left corner of the page and choose Network > NAT Gateway.

    4. In the transit IP address list of the private NAT gateway, click the target transit IP address.

    5. Click Edit Tag.

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

    7. Click OK.

      Note

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