:doc:`ElasticLoadBalancing <../../elb>` / Client / describe_tags

*************
describe_tags
*************



.. py:method:: ElasticLoadBalancing.Client.describe_tags(**kwargs)

  

  Describes the tags associated with the specified load balancers.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags>`_  


  **Request Syntax**
  ::

    response = client.describe_tags(
        LoadBalancerNames=[
            'string',
        ]
    )
    
  :type LoadBalancerNames: list
  :param LoadBalancerNames: **[REQUIRED]** 

    The names of the load balancers.

    

  
    - *(string) --* 

    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'TagDescriptions': [
              {
                  'LoadBalancerName': 'string',
                  'Tags': [
                      {
                          'Key': 'string',
                          'Value': 'string'
                      },
                  ]
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Contains the output for DescribeTags.

      
      

      - **TagDescriptions** *(list) --* 

        Information about the tags.

        
        

        - *(dict) --* 

          The tags associated with a load balancer.

          
          

          - **LoadBalancerName** *(string) --* 

            The name of the load balancer.

            
          

          - **Tags** *(list) --* 

            The tags.

            
            

            - *(dict) --* 

              Information about a tag.

              
              

              - **Key** *(string) --* 

                The key of the tag.

                
              

              - **Value** *(string) --* 

                The value of the tag.

                
          
        
      
    
  
  **Exceptions**
  
  *   :py:class:`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': {
            '...': '...',
        },
    }

  