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

***********************************
list_provisioning_template_versions
***********************************



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

  

  A list of provisioning template versions.

   

  Requires permission to access the `ListProvisioningTemplateVersions <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/ListProvisioningTemplateVersions>`_  


  **Request Syntax**
  ::

    response = client.list_provisioning_template_versions(
        templateName='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type templateName: string
  :param templateName: **[REQUIRED]** 

    The name of the provisioning template.

    

  
  :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**

    
    ::

      {
          'versions': [
              {
                  'versionId': 123,
                  'creationDate': datetime(2015, 1, 1),
                  'isDefaultVersion': True|False
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **versions** *(list) --* 

        The list of provisioning template versions.

        
        

        - *(dict) --* 

          A summary of information about a fleet provision template version.

          
          

          - **versionId** *(integer) --* 

            The ID of the fleet provisioning template version.

            
          

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

            The date when the provisioning template version was created

            
          

          - **isDefaultVersion** *(boolean) --* 

            True if the provisioning template version is the default version, otherwise false.

            
      
    
      

      - **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.ResourceNotFoundException`

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

  