Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.network.usages

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns a list of Usage resources.

NameDatatypeDescription
idstringResource identifier.
nameobjectThe name of the type of usage.
currentValueinteger (int64)The current value of the usage.
limitinteger (int64)The limit of usage.
unitstringAn enum describing the unit of measurement.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlocation, subscriptionIdList network usages for a 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 where resource usage is queried.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

List network usages for a subscription.

SELECT
id,
name,
currentValue,
limit,
unit
FROM azure.network.usages
WHERE location = '{{ location }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;