Describes the tags associated with the specified load balancers.
See also: AWS API Documentation
Request Syntax
response = client.describe_tags(
LoadBalancerNames=[
'string',
]
)
[REQUIRED]
The names of the load balancers.
{
'TagDescriptions': [
{
'LoadBalancerName': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
]
}
Response Structure
Contains the output for DescribeTags.
Information about the tags.
The tags associated with a load balancer.
The name of the load balancer.
The tags.
Information about a tag.
The key of the tag.
The value of the tag.
Exceptions
ElasticLoadBalancing.Client.exceptions.AccessPointNotFoundException
Examples
This example describes the tags for the specified load balancer.
response = client.describe_tags(
LoadBalancerNames=[
'my-load-balancer',
],
)
print(response)
Expected Output:
{
'TagDescriptions': [
{
'LoadBalancerName': 'my-load-balancer',
'Tags': [
{
'Key': 'project',
'Value': 'lima',
},
{
'Key': 'department',
'Value': 'digital-media',
},
],
},
],
'ResponseMetadata': {
'...': '...',
},
}