Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.storage.usages

Fields

The following fields are returned by SELECT queries:

OK -- current usage count and limit retrieved and returned successfully.

NameDatatypeDescription
nameobjectGets the name of the type of usage.
currentValueinteger (int32)Gets the current count of the allocated resources in the subscription.
limitinteger (int32)Gets the maximum count of the resources that can be allocated in the subscription.
unitstringGets the unit of measurement.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_locationselectsubscriptionId, locationGets 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.

NameDatatypeDescription
locationstringThe location of the Azure Storage resource.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

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
;