Skip to main content

usages

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

Overview​

Nameusages
TypeResource
Idazure_extras.lab_services.usages

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe fully qualified arm resource id.
nameobjectThe name.
currentValueintegerThe current usage.
limitintegerThe limit integer.
unitstringThe unit details. "Count"

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_locationselectlocation, subscription_id$filterGets the list of usages. Returns list of usage per SKU family for the specified subscription in the specified region.

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 name. Required.
subscription_idstring
$filterstringThe filter to apply to the operation. Default value is None.

SELECT examples​

Gets the list of usages. Returns list of usage per SKU family for the specified subscription in the specified region.

SELECT
id,
name,
currentValue,
limit,
unit
FROM azure_extras.lab_services.usages
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
;