---
title: "GET /provisioning-templates/{templateName}"
method: GET
path: "/provisioning-templates/{templateName}"
---

# GET /provisioning-templates/{templateName}

`GET /provisioning-templates/{templateName}`

Returns information about a provisioning template.

Requires permission to access the [DescribeProvisioningTemplate](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Path parameters

- `templateName` string, required

## Response `200`

Success

- DescribeProvisioningTemplateResponse
  - `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` string, date-time — The date when the provisioning template was created.
  - `lastModifiedDate` string, date-time — The date when the provisioning template was last modified.
  - `defaultVersionId` integer — The default fleet template version ID.
  - `templateBody` string — The JSON formatted contents of the provisioning template.
  - `enabled` boolean — True if the provisioning template is enabled, otherwise false.
  - `provisioningRoleArn` string — The ARN of the role associated with the provisioning template. This IoT role grants permission to provision a device.
  - `preProvisioningHook` object — Gets information about a pre-provisioned hook.
    - `payloadVersion` string — <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only Lambda functions are currently supported.</p>
    - `targetArn` string, required — <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions are currently supported.</p>
  - `type` 'FLEET_PROVISIONING' | 'JITP' — 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 <code>FLEET_PROVISIONING</code>. For more information about provisioning template, see: <a href="https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html">Provisioning template</a>.

## Other responses

- `480` — InternalFailureException
- `481` — InvalidRequestException
- `482` — ResourceNotFoundException
- `483` — ThrottlingException
- `484` — UnauthorizedException

---

[API](https://skmtc.net/aws/apis/iot.md) · [All operations](https://skmtc.net/aws/apis/iot/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iot/revisions/deef5c4b09f0/schema)
