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
| Name | Datatype | Description |
|---|---|---|
name | object | Gets the name of the type of usage. |
currentValue | integer | Gets the current count of the allocated resources in the subscription. |
limit | integer | Gets the maximum count of the resources that can be allocated in the subscription. |
unit | string | Gets the unit of measurement. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountsPerSecond", and "BytesPerSecond". (Count, Bytes, Seconds, Percent, CountsPerSecond, BytesPerSecond) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_location | select | location, subscription_id | 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 name. Required. |
subscription_id | string |
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 location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;