resource_quota_metrics
Creates, updates, deletes, gets or lists a resource_quota_metrics
resource.
Overview
Name | resource_quota_metrics |
Type | Resource |
Id | azure.iot_hub.resource_quota_metrics |
Fields
The following fields are returned by SELECT
queries:
- get
This is a synchronous operation. The response contains a JSON-serialized array of the quota metrics for the IoT hub.
Name | Datatype | Description |
---|---|---|
name | string | The name of the quota metric. |
currentValue | integer (int64) | The current value for the quota metric. |
maxValue | integer (int64) | The maximum value of the quota metric. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , resourceName | api-version | Get 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.
Name | Datatype | Description |
---|---|---|
resourceGroupName | string | The name of the resource group that contains the IoT hub. |
resourceName | string | The name of the IoT hub. |
subscriptionId | string | The subscription identifier. |
api-version | string | The version of the API. |
SELECT
examples
- get
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 }}'
;