:doc:`QuickSight <../../quicksight>` / Client / list_templates

**************
list_templates
**************



.. py:method:: QuickSight.Client.list_templates(**kwargs)

  

  Lists all the templates in the current Amazon Quick Sight account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplates>`_  


  **Request Syntax**
  ::

    response = client.list_templates(
        AwsAccountId='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The ID of the Amazon Web Services account that contains the templates that you're listing.

    

  
  :type NextToken: string
  :param NextToken: 

    The token for the next set of results, or null if there are no more results.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to be returned per request.

    

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

    
    ::

      {
          'TemplateSummaryList': [
              {
                  'Arn': 'string',
                  'TemplateId': 'string',
                  'Name': 'string',
                  'LatestVersionNumber': 123,
                  'CreatedTime': datetime(2015, 1, 1),
                  'LastUpdatedTime': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string',
          'Status': 123,
          'RequestId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TemplateSummaryList** *(list) --* 

        A structure containing information about the templates in the list.

        
        

        - *(dict) --* 

          The template summary.

          
          

          - **Arn** *(string) --* 

            A summary of a template.

            
          

          - **TemplateId** *(string) --* 

            The ID of the template. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

            
          

          - **Name** *(string) --* 

            A display name for the template.

            
          

          - **LatestVersionNumber** *(integer) --* 

            A structure containing a list of version numbers for the template summary.

            
          

          - **CreatedTime** *(datetime) --* 

            The last time that this template was created.

            
          

          - **LastUpdatedTime** *(datetime) --* 

            The last time that this template was updated.

            
      
    
      

      - **NextToken** *(string) --* 

        The token for the next set of results, or null if there are no more results.

        
      

      - **Status** *(integer) --* 

        The HTTP status of the request.

        
      

      - **RequestId** *(string) --* 

        The Amazon Web Services request ID for this operation.

        
  
  **Exceptions**
  
  *   :py:class:`QuickSight.Client.exceptions.ThrottlingException`

  
  *   :py:class:`QuickSight.Client.exceptions.InvalidParameterValueException`

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

  
  *   :py:class:`QuickSight.Client.exceptions.InvalidNextTokenException`

  
  *   :py:class:`QuickSight.Client.exceptions.UnsupportedUserEditionException`

  
  *   :py:class:`QuickSight.Client.exceptions.InternalFailureException`

  