AddTags
Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.
Each tag consists of a key and an optional value. If a tag with the same key is already associated
with the load balancer, AddTags
updates its value.
For more information, see Tag your Classic Load Balancer in the User Guide for Classic Load Balancers.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- LoadBalancerNames.member.N
-
The name of the load balancer. You can specify one load balancer only.
Type: Array of strings
Required: Yes
- Tags.member.N
-
The tags.
Type: Array of Tag objects
Array Members: Minimum number of 1 item.
Required: Yes
Errors
For information about the errors that are common to all actions, see Common Errors.
- DuplicateTagKeys
-
A tag key was specified more than once.
HTTP Status Code: 400
- LoadBalancerNotFound
-
The specified load balancer does not exist.
HTTP Status Code: 400
- TooManyTags
-
The quota for the number of tags that can be assigned to a load balancer has been reached.
HTTP Status Code: 400
Examples
Add tags
This example adds tags to the specified load balancer.
Sample Request
https://elasticloadbalancing.amazonaws.com/?Action=AddTags
&LoadBalancerNames.member.1=my-loadbalancer
&Tags.member.1.Key=project
&Tags.member.1.Value=lima
&Version=2012-06-01
&AUTHPARAMS
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: