---
title: "GET /policy/generation"
method: GET
path: "/policy/generation"
---

# GET /policy/generation

`GET /policy/generation`

Lists all of the policy generations requested in the last seven days.

## Query parameters

- `principalArn` string
- `maxResults` integer
- `nextToken` string

## Response `200`

Success

- ListPolicyGenerationsResponse
  - `policyGenerations` PolicyGeneration[], required — A <code>PolicyGeneration</code> object that contains details about the generated policy.
    - `jobId` string, required — The <code>JobId</code> that is returned by the <code>StartPolicyGeneration</code> operation. The <code>JobId</code> can be used with <code>GetGeneratedPolicy</code> to retrieve the generated policies or used with <code>CancelPolicyGeneration</code> to cancel the policy generation request.
    - `principalArn` string, required — The ARN of the IAM entity (user or role) for which you are generating a policy.
    - `status` 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELED', required — The status of the policy generation request.
    - `startedOn` string, date-time, required — A timestamp of when the policy generation started.
    - `completedOn` string, date-time — A timestamp of when the policy generation was completed.
  - `nextToken` string — A token used for pagination of results returned.

## Other responses

- `480` — ValidationException
- `481` — InternalServerException
- `482` — ThrottlingException
- `483` — AccessDeniedException

---

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