Skip to main content

collection_usages

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

Overview

Namecollection_usages
TypeResource
Idazure.cosmos_db.collection_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, collectionRid, databaseRid, resourceGroupName, subscriptionIdRetrieves the usages (most recent storage data) for the given collection.

SELECT examples

Retrieves the usages (most recent storage data) for the given collection.

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