usages
Creates, updates, deletes, gets or lists a usages resource.
Overview
| Name | usages |
| Type | Resource |
| Id | azure.storage.usages |
Fields
The following fields are returned by SELECT queries:
- list_by_location
OK -- current usage count and limit retrieved and returned successfully.
| Name | Datatype | Description |
|---|---|---|
name | object | Gets the name of the type of usage. |
currentValue | integer (int32) | Gets the current count of the allocated resources in the subscription. |
limit | integer (int32) | Gets the maximum count of the resources that can be allocated in the subscription. |
unit | string | Gets the unit of measurement. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_location | select | subscriptionId, location | Gets the current usage count and the limit for the resources of the location under the subscription. |
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 |
|---|---|---|
location | string | The location of the Azure Storage resource. |
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
SELECT examples
- list_by_location
Gets the current usage count and the limit for the resources of the location under the subscription.
SELECT
name,
currentValue,
limit,
unit
FROM azure.storage.usages
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
;