:doc:`IoT <../../iot>` / Client / list_provisioning_templates

***************************
list_provisioning_templates
***************************



.. py:method:: IoT.Client.list_provisioning_templates(**kwargs)

  

  Lists the provisioning templates in your Amazon Web Services account.

   

  Requires permission to access the `ListProvisioningTemplates <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/ListProvisioningTemplates>`_  


  **Request Syntax**
  ::

    response = client.list_provisioning_templates(
        maxResults=123,
        nextToken='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return at one time.

    

  
  :type nextToken: string
  :param nextToken: 

    A token to retrieve the next set of results.

    

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

    
    ::

      {
          'templates': [
              {
                  'templateArn': 'string',
                  'templateName': 'string',
                  'description': 'string',
                  'creationDate': datetime(2015, 1, 1),
                  'lastModifiedDate': datetime(2015, 1, 1),
                  'enabled': True|False,
                  'type': 'FLEET_PROVISIONING'|'JITP'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **templates** *(list) --* 

        A list of provisioning templates

        
        

        - *(dict) --* 

          A summary of information about a provisioning template.

          
          

          - **templateArn** *(string) --* 

            The ARN of the provisioning template.

            
          

          - **templateName** *(string) --* 

            The name of the provisioning template.

            
          

          - **description** *(string) --* 

            The description of the provisioning template.

            
          

          - **creationDate** *(datetime) --* 

            The date when the provisioning template summary was created.

            
          

          - **lastModifiedDate** *(datetime) --* 

            The date when the provisioning template summary was last modified.

            
          

          - **enabled** *(boolean) --* 

            True if the fleet provision template is enabled, otherwise false.

            
          

          - **type** *(string) --* 

            The type you define in a provisioning template. You can create a template with only one type. You can't change the template type after its creation. The default value is ``FLEET_PROVISIONING``. For more information about provisioning template, see: `Provisioning template <https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html>`__.

            
      
    
      

      - **nextToken** *(string) --* 

        A token to retrieve the next set of results.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoT.Client.exceptions.UnauthorizedException`

  