---
title: "Retrieves policy definitions in a subscription"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions"
tags: ["PolicyDefinitions"]
---

# Retrieves policy definitions in a subscription

`GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions`

This operation retrieves a list of all the policy definitions in a given subscription.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK - Returns an array of policy definitions.

- PolicyDefinitionListResult — List of policy definitions.
  - `value` PolicyDefinition[] — An array of policy definitions.
    - `properties` PolicyDefinitionProperties — The policy definition properties.
      - `policyType` 'NotSpecified' | 'BuiltIn' | 'Custom' — The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom.
      - `mode` string — The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
      - `displayName` string — The display name of the policy definition.
      - `description` string — The policy definition description.
      - `policyRule` object — The policy rule.
      - `metadata` object — The policy definition metadata.
      - `parameters` object — Required if a parameter is used in policy rule.
    - `id` string — The ID of the policy definition.
    - `name` string — The name of the policy definition.
    - `type` string — The type of the resource (Microsoft.Authorization/policyDefinitions).
  - `nextLink` string — The URL to use for getting the next set of results.

---

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