Updated on 2024-03-15 GMT+08:00

Tag

Scenarios

If you have a large number of cloud resources, you can add different tags to the resources to quickly identify them and use these tags to easily manage your resources.

If your organization has configured tag policies for ELB, add tags to load balancers based on the tag policies. If you add a tag that does not comply with the tag policies, load balancers may fail to be created. Contact your organization administrator to learn more about tag policies.

Adding a Tag to a Load Balancer

You can add a tag to a load balancer in the following method:

  • Add a tag when you create a load balancer.

    For detailed operations, see Creating a Dedicated Load Balancer and Creating a Shared Load Balancer.

  • Add a tag to an existing load balancer.
    1. Log in to the management console.
    2. In the upper left corner of the page, click and select the desired region and project.
    3. Hover on in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
    4. Locate the load balancer and click its name.
    5. Under Tags, click Add Tag.
    6. In the Add Tag dialog box, enter a tag key and value and click OK.
      • A maximum of 10 tags can be added to a load balancer.
      • Each tag is a key-value pair, and the tag key is unique.

Adding a Tag to a Listener

To add a tag to an existing listener, perform the following steps:

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Hover on in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. Locate the load balancer and click its name.
  5. Click Listeners, locate the listener, and click its name.
  6. Under Tags, click Add Tag.
  7. In the Add Tag dialog box, enter a tag key and value and click OK.
    • A maximum of 10 tags can be added to a listener.
    • Each tag is a key-value pair, and the tag key is unique.

Modifying a Tag

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Hover on in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. Locate the load balancer and click its name.
  5. Click Tags, select the tag to be edited, and click Edit in the Operation column. In the Edit Tag dialog box, change the tag value.

    The tag key cannot be changed.

  6. Click OK.

The operations for modifying a listener tag are not detailed here. Refer to the operations of modifying a load balancer tag.

Deleting a Tag

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Hover on in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. Locate the load balancer and click its name.
  5. Click Tags, select the tag to be deleted, and click Delete in the Operation column.
  6. In the displayed dialog box, click Yes.

The operations for deleting a listener tag are not detailed here. Refer to the operations of deleting a load balancer tag.