---
title: "Get the quota metrics for an IoT hub"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics"
tags: ["GET"]
---

# Get the quota metrics for an IoT hub

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Get the quota metrics for an IoT hub.

## Path parameters

- `subscriptionId` string, uuid, required
- `resourceGroupName` string, required
- `resourceName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Azure operation completed successfully.

- IotHubQuotaMetricInfoListResult: The JSON-serialized array of IotHubQuotaMetricInfo objects with a next link.
  - `value` IotHubQuotaMetricInfo[], required: The IotHubQuotaMetricInfo items on this page
    - `name` string: The name of the quota metric.
    - `currentValue` integer: The current value for the quota metric.
    - `maxValue` integer: The maximum value of the quota metric.
  - `nextLink` string, uri: The link to the next page of items

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/iothub-microsoft-devices-iothub.md) - [All operations](https://skmtc.dev/azure/apis/iothub-microsoft-devices-iothub/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/iothub-microsoft-devices-iothub/revisions/03e7327eb1d3?raw)
