:doc:`ElasticsearchService <../../es>` / Client / list_tags

*********
list_tags
*********



.. py:method:: ElasticsearchService.Client.list_tags(**kwargs)

  

  Returns all tags for the given Elasticsearch domain.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListTags>`_  


  **Request Syntax**
  ::

    response = client.list_tags(
        ARN='string'
    )
    
  :type ARN: string
  :param ARN: **[REQUIRED]** 

    Specify the ``ARN`` for the Elasticsearch domain to which the tags are attached that you want to view.

    

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

    
    ::

      {
          'TagList': [
              {
                  'Key': 'string',
                  'Value': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The result of a ``ListTags`` operation. Contains tags for all requested Elasticsearch domains.

      
      

      - **TagList** *(list) --* 

        List of ``Tag`` for the requested Elasticsearch domain.

        
        

        - *(dict) --* 

          Specifies a key value pair for a resource tag.

          
          

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

            Specifies the ``TagKey``, the name of the tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.

            
          

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

            Specifies the ``TagValue``, the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of ``project : Trinity`` and ``cost-center : Trinity``

            
      
    
  
  **Exceptions**
  
  *   :py:class:`ElasticsearchService.Client.exceptions.BaseException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.ValidationException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.InternalException`

  