---
title: "GET /policies/{policyName}/version"
method: GET
path: "/policies/{policyName}/version"
---

# GET /policies/{policyName}/version

`GET /policies/{policyName}/version`

Lists the versions of the specified policy and identifies the default version.

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

## Path parameters

- `policyName` string, required

## Response `200`

Success

- ListPolicyVersionsResponse — The output from the ListPolicyVersions operation.
  - `policyVersions` PolicyVersion[] — The policy versions.
    - `versionId` string — The policy version ID.
    - `isDefaultVersion` boolean — Specifies whether the policy version is the default.
    - `createDate` string, date-time — The date and time the policy was created.

## Other responses

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

---

[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/versions/deef5c4b09f0/schema)
