All Products
Search
Document Center

Elastic IP Address:Manage tags

Last Updated:Jan 24, 2024

Elastic IP Address (EIP) supports tag management. You can tag EIPs to facilitate resource search and aggregation.

Overview

标签图解

As shown in the preceding figure, it is difficult to manage a large number of EIPs. You can use tags to group EIPs. This allows you to search and filter EIPs in a more efficient way.

Tags are used to classify instances. Each tag consists of a key-value pair. Before you use tags, take note of the following limits:

  • Each tag key added to an instance must be unique.

  • You cannot create tags without adding them to instances. All tags must be added to instances.

  • Tag information is not shared across regions.

    For example, tags created in the China (Hangzhou) region are not displayed in the China (Shanghai) region.

  • You can modify the key and value of a tag or remove a tag from an instance. If you delete an instance, all tags added to the instance are deleted. This operation does not affect the tags added to other instances.

Limits

You can add up to 20 tags to each EIP. You cannot increase the quota.

Add tags

Add tags to an EIP

  1. Log on to the Elastic IP Address console .
  2. In the top navigation bar, select the region of the EIP.

  3. On the Elastic IP Addresses page, find the EIP, move the pointer over 标签.png in the Tags column, and then click Bind or Edit in the pop-up box.

    If the Tags column is not displayed, click 设置.png in the upper-right corner of the EIP list.

  4. In the Configure Tags dialog box, specify the key and the value, and click OK.

    Parameter

    Description

    Tag Key

    Specify a tag key. You can select or enter a tag key.

    The key cannot exceed 64 characters in length and cannot start with aliyun or acs:. The key cannot contain http:// or https://.

    Tag Value

    Specify a tag value. You can select or enter a tag value.

    The value cannot exceed 128 characters in length and cannot start with aliyun or acs:. The value cannot contain http:// or https://.

  5. In the Configure Tags successfully message, confirm the information and click Close.

Add tags to multiple EIPs at a time

  1. Log on to the Elastic IP Address console .
  2. In the upper-left corner, select the region where the EIP is created.
  3. On the Elastic IP Addresses page, select the EIPs to which you want to add tags, and choose Configure Tags>Batch Add Tags in the lower-left corner.

  4. In the Configure Tags dialog box, select or enter a key-value pair, and then click OK.

  5. In the Configure Tags successfully message, confirm the information and click Close.

Filter EIPs by tag

You can filter EIPs by tag.

  1. Log on to the Elastic IP Address console .
  2. In the upper-left corner, select the region where the EIP is created.
  3. On the Elastic IP Addresses page, click Filter by Tag above the EIP list.

  4. In the list that appears, select or enter a key-value pair.

    The EIPs that meet the conditions are displayed in the EIP list.

  5. Optional: Click Clear Filter Condition above the EIP list to clear the conditions.

Remove tags

If a tag is added to more than one EIP and you remove the tag from an EIP, the tag is not removed from other EIPs.

Remove tags from an EIP

  1. Log on to the Elastic IP Address console .
  2. In the upper-left corner, select the region where the EIP is created.
  3. On the Elastic IP Addresses page, find the EIP, move the pointer over 标签.pngin the Tags column, and then click Edit in the pop-up box.

  4. In the Configure Tags dialog box, find the tag that you want to delete, click 删除图标 on the right side, and then click OK.

    You can also add tags in this dialog box.

  5. In the Configure Tags successfully message, confirm the information and click Close.

Remove tags from multiple EIPs at a time

  1. Log on to the Elastic IP Address console .
  2. In the upper-left corner, select the region where the EIP is created.
  3. On the Elastic IP Addresses page, select the EIP from which you want to remove tags and choose Configure Tags>Batch Delete Tags in the lower-left corner.

  4. In the Delete Tags for Multiple Resources dialog box, select the key-value pairs and click Unbind N tags.

    N indicates the number of tags to be removed.

  5. In the Configure Tags successfully message, confirm the information and click Close.

References