Skip to main content

resource_stats

Creates, updates, deletes, gets or lists a resource_stats resource.

Overview

Nameresource_stats
TypeResource
Idazure.iot_hub.resource_stats

Fields

NameDatatypeDescription
disabledDeviceCountintegerThe count of disabled devices in the identity registry.
enabledDeviceCountintegerThe count of enabled devices in the identity registry.
totalDeviceCountintegerThe total count of devices in the identity registry.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGet the statistics from an IoT hub.

SELECT examples

Get the statistics from an IoT hub.

SELECT
disabledDeviceCount,
enabledDeviceCount,
totalDeviceCount
FROM azure.iot_hub.resource_stats
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';