---
title: "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies"
tags: ["Policy"]
---

# GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Lists all the Global Policy definitions of the Api Management service.

## Path parameters

- `resourceGroupName` string, required
- `serviceName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Returns an array of Policy Contracts.

- PolicyCollection: The response of the list policy operation.
  - `value` PolicyContract[]: Policy Contract value.
    - `id` string: Resource ID.
    - `name` string: Resource name.
    - `type` string: Resource type for API Management resource.
    - `properties` PolicyContractProperties: Policy contract Properties.
      - `value` string, required: Contents of the Policy as defined by the format.
      - `format` 'xml' | 'xml-link' | 'rawxml' | 'rawxml-link': Format of the policyContent.
  - `nextLink` string: Next page link if any.

## Other responses

- `default`: Error response describing why the operation failed.

## Changes

- **2019-06-12** (2019-01-01) `90f67ef4dbc1`: 4 breaking
  - added the new path request parameter `resourceGroupName`
  - added the new path request parameter `serviceName`
  - added the new path request parameter `subscriptionId`
  - added the new required `query` request parameter `api-version`

[Operation history](https://skmtc.dev/azure/apis/apimanagementclient-20/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.ApiManagement/service/:serviceName/policies/get.md)

---

[API](https://skmtc.dev/azure/apis/apimanagementclient-20.md) - [All operations](https://skmtc.dev/azure/apis/apimanagementclient-20/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/apimanagementclient-20/revisions/90f67ef4dbc1?raw)
