Skip to main content

database_accounts_usages

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

Overview

Namedatabase_accounts_usages
TypeResource
Idazure.cosmos_db.database_accounts_usages

Fields

NameDatatypeDescription
nameobjectA metric name.
currentValueintegerCurrent value for this metric
limitintegerMaximum value for this metric
quotaPeriodstringThe quota period used to summarize the usage values.
unitstringThe unit of the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECTaccountName, resourceGroupName, subscriptionIdRetrieves the usages (most recent data) for the given database account.

SELECT examples

Retrieves the usages (most recent data) for the given database account.

SELECT
name,
currentValue,
limit,
quotaPeriod,
unit
FROM azure.cosmos_db.database_accounts_usages
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';