# Tag

#### Scenarios

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

#### Adding a Tag to a Load Balancer

You can add a tag to a load balancer in either of the following scenarios:

- Add a tag when you create a load balancer.

  For detailed operations, see 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 Network > Elastic Load Balancing.
  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 20 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

You can add tags when you add listeners.

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 Network > Elastic Load Balancing.
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 20 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 Network > Elastic Load Balancing.
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 Network > Elastic Load Balancing.
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 Delete Tag 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.