Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.recovery_services.usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nameobjectName of usage.
currentValueinteger (int64)Current value of usage.
limitinteger (int64)Limit of usage.
nextResetTimestring (date-time)Next reset time of usage.
quotaPeriodstringQuota period of usage.
unitstringUnit of the usage.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_vaultsselectsubscriptionId, resourceGroupName, vaultNameFetches the usages of the vault.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
vaultNamestringThe name of the recovery services vault.

SELECT examples

Fetches the usages of the vault.

SELECT
name,
currentValue,
limit,
nextResetTime,
quotaPeriod,
unit
FROM azure.recovery_services.usages
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND vaultName = '{{ vaultName }}' -- required
;