Iot Hub Resource - Get Stats
Get the statistics from an IoT hub.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats?api-version={api-version}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
subscriptionId
|
path | True |
|
The subscription identifier. |
|
resourceGroupName
|
path | True |
|
The name of the resource group that contains the IoT hub. |
|
resourceName
|
path | True |
|
The name of the IoT hub. |
|
api-version
|
query | True |
|
The version of the API. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
This is a synchronous operation. The body contains JSON-serialized statistics from the identity registry in the IoT hub. |
|
| Other Status Codes |
DefaultErrorResponse |
Definitions
| ErrorDetails | |
| RegistryStatistics |
| Name | Type | Description |
|---|---|---|
| Code |
|
The error code. |
| Details |
|
The error details. |
| HttpStatusCode |
|
The HTTP status code. |
| Message |
|
The error message. |
| Name | Type | Description |
|---|---|---|
| disabledDeviceCount |
|
The count of disabled devices in the identity registry. |
| enabledDeviceCount |
|
The count of enabled devices in the identity registry. |
| totalDeviceCount |
|
The total count of devices in the identity registry. |