Manage tags

更新时间:
复制 MD 格式

Tags let you categorize Anycast EIP instances for easier searching and filtering.

How tags work

As your Anycast EIP instance count grows, tags help you organize, search, and filter instances by group.

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.

Limitations

You can attach a maximum of 20 tags to each Anycast EIP instance. This quota cannot be increased.

Add tags to an instance

Add tags to a single instance

  1. Log on to the Anycast EIP console.
  2. On the Anycast Elastic IP Addresses page, find the instance, hover over the 标签..png icon in the Tags column, and then click Edit or Edit in the tooltip.

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

  3. In the Configure Tags dialog box, set the tag key and value, and then click OK.

    Parameter

    Description

    Tag Key

    Select an existing tag key or enter a new one.

    A tag key can be up to 64 characters long, cannot start with aliyun or acs:, and cannot contain http:// or https://.

    Tag Value

    Select an existing tag value or enter a new one.

    A tag value can be up to 128 characters long, cannot start with aliyun or acs:, and cannot contain http:// or https://.

  4. In the Configure Tags successfully dialog box, review the changes and then click Close.

Add tags to multiple instances

  1. Log on to the Anycast EIP console.
  2. On the Anycast Elastic IP Addresses page, select the instances you want to tag, and then in the lower-left corner, choose Configure Tags>Batch Add Tags.

  3. In the Configure Tags dialog box, set the Tag Key and Tag Value, and then click OK.

  4. In the Configure Tags successfully dialog box, review the changes and then click Close.

Search for instances by tag

After you tag instances, you can filter the instance list by tag.

  1. Log on to the Anycast EIP console.
  2. On the Anycast Elastic IP Addresses page, click Filter by Tag.

  3. In the Filter by Tag list, select a tag key and a corresponding tag value.

    The instance list displays the Anycast EIP instances that match the filter criteria.

  4. Optional: Above the instance list, click Clear conditions to clear the tag filter.

Remove tags from an instance

Removing a tag from one instance does not affect other instances that share the same tag.

Remove tags from a single instance

  1. Log on to the Anycast EIP console.
  2. On the Anycast Elastic IP Addresses page, find the instance, hover over the 标签..png icon in the Tags column, and then click Edit in the tooltip.

  3. In the Configure Tags dialog box, find the key-value pair to remove, click the 删除..png icon next to it, and then click OK.

  4. In the Configure Tags successfully dialog box, review the changes and then click Close.

Remove tags from multiple instances

  1. Log on to the Anycast EIP console.
  2. On the Anycast Elastic IP Addresses page, select the instances from which to remove tags. Then, in the lower-left corner, choose Configure Tags>Batch Delete Tags.

  3. In the Delete Tags for Multiple Resources dialog box, select the key-value pairs that you want to remove, and then click Unbind N tags.

    Here, N is the number of tags you selected to unbind.

  4. In the Configure Tags successfully dialog box, review the changes and then click Close.

References