v2

latestSwagger 2.0raw.githubusercontent.com2021-04-273265113.0 KB
GET

Get the statistics from an IoT hub

Get the statistics from an IoT hub.

get/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats

Path parameters

subscriptionIdstring required

The subscription identifier.

resourceGroupNamestring required

The name of the resource group that contains the IoT hub.

resourceNamestring required

The name of the IoT hub.

Query parameters

api-versionstring required

The version of the API.

Response

This is a synchronous operation. The body contains JSON-serialized statistics from the identity registry in the IoT hub.

totalDeviceCountinteger

The total count of devices in the identity registry.

enabledDeviceCountinteger

The count of enabled devices in the identity registry.

disabledDeviceCountinteger

The count of disabled devices in the identity registry.