Skip to main content

resource_quota_metrics

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

Overview

Nameresource_quota_metrics
TypeResource
Idazure.iot_hub.resource_quota_metrics

Fields

The following fields are returned by SELECT queries:

This is a synchronous operation. The response contains a JSON-serialized array of the quota metrics for the IoT hub.

NameDatatypeDescription
namestringThe name of the quota metric.
currentValueinteger (int64)The current value for the quota metric.
maxValueinteger (int64)The maximum value of the quota metric.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceNameapi-versionGet the quota metrics for an IoT hub.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group that contains the IoT hub.
resourceNamestringThe name of the IoT hub.
subscriptionIdstringThe subscription identifier.
api-versionstringThe version of the API.

SELECT examples

Get the quota metrics for an IoT hub.

SELECT
name,
currentValue,
maxValue
FROM azure.iot_hub.resource_quota_metrics
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND api-version = '{{ api-version }}'
;