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.
currentValueintegerCurrent value of usage.
limitintegerLimit of usage.
nextResetTimestring (date-time)Next reset time of usage.
quotaPeriodstringQuota period of usage.
unitstringUnit of the usage. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountPerSecond", and "BytesPerSecond". (Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_vaultsselectresource_group_name, vault_name, subscription_idFetches 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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vault_namestringThe name of the Vault. Required.

SELECT examples

Fetches the usages of the vault.

SELECT
name,
currentValue,
limit,
nextResetTime,
quotaPeriod,
unit
FROM azure.recovery_services.usages
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;