---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.Peering/lookingGlass"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/lookingGlass"
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.Peering/lookingGlass

`POST /subscriptions/{subscriptionId}/providers/Microsoft.Peering/lookingGlass`

Run looking glass functionality

## Query parameters

- `command` 'Traceroute' | 'Ping' | 'BgpRoute', required
- `sourceType` 'EdgeSite' | 'AzureRegion', required
- `sourceLocation` string, required
- `destinationIP` string, required

## 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.

- LookingGlassOutput — Looking glass output model
  - `command` 'Traceroute' | 'Ping' | 'BgpRoute' — Invoked command
  - `output` string — Output of the command

## 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)
