---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.Peering/legacyPeerings"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/legacyPeerings"
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.Peering/legacyPeerings

`GET /subscriptions/{subscriptionId}/providers/Microsoft.Peering/legacyPeerings`

Lists all of the legacy peerings under the given subscription matching the specified kind and location.

## Query parameters

- `peeringLocation` string, required
- `kind` 'Direct' | 'Exchange', required
- `asn` integer
- `directPeeringType` 'Edge' | 'Transit' | 'Cdn' | 'Internal' | 'Ix' | 'IxRs' | 'Voice' | 'EdgeZoneForOperators' | 'PeerProp'

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Response `200`

The request has succeeded.

- PeeringListResult — The response of a Peering list operation.
  - `value` Peering[], required — The Peering items on this page — unresolved $ref
  - `nextLink` string, uri — The link to the next page of items

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/peering-microsoft-peering-peering.md) · [All operations](https://skmtc.net/azure/apis/peering-microsoft-peering-peering/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/peering-microsoft-peering-peering/revisions/70552cead4fe/schema)
