Skip to content

Commit 0550d23

Browse files
committed
clarified url format
1 parent 6b4b724 commit 0550d23

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/azure-monitor/essentials/rest-api-walkthrough.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,15 @@ The result should be similar to the following example:
174174
>
175175
---
176176

177+
## API endpoints
178+
179+
The API endpoints use the following pattern:
180+
`/<resource URI>/providers/microsoft.insights/<metrics|metricDefinitions>?api-version=<apiVersion>`
181+
The `resource URI` is comprised of the following:
182+
`/subscriptions/<subscription id>/resourcegroups/<resourceGroupName>/providers/<resourceProviderNamespace>/<resourceType>/<resourceName>/`
183+
184+
> [!IMPORTANT]
185+
> Be sure to include `/providers/microsoft.insights/` after the resource URI when you make an API call to retrieve metrics or metric definitions.
177186
## Retrieve metric definitions
178187

179188
Use the [Azure Monitor Metric Definitions REST API](/rest/api/monitor/metricdefinitions) to access the list of metrics that are available for a service.

0 commit comments

Comments
 (0)