list_provisioning_template_versions

list_provisioning_template_versions(**kwargs)

A list of provisioning template versions.

Requires permission to access the ListProvisioningTemplateVersions action.

See also: AWS API Documentation

Request Syntax

response = client.list_provisioning_template_versions(
    templateName='string',
    maxResults=123,
    nextToken='string'
)
Parameters
  • templateName (string) --

    [REQUIRED]

    The name of the provisioning template.

  • maxResults (integer) -- The maximum number of results to return at one time.
  • nextToken (string) -- A token to retrieve the next set of results.
Return type

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

  • IoT.Client.exceptions.InternalFailureException
  • IoT.Client.exceptions.InvalidRequestException
  • IoT.Client.exceptions.ThrottlingException
  • IoT.Client.exceptions.ResourceNotFoundException
  • IoT.Client.exceptions.UnauthorizedException