Skip to main content

subscription_usages

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

Overview

Namesubscription_usages
TypeResource
Idazure.sql.subscription_usages

Fields

NameDatatypeDescription
current_valuetextfield from the properties object
display_nametextfield from the properties object
limittextfield from the properties object
locationNametextfield from the properties object
subscriptionIdtextfield from the properties object
unittextfield from the properties object
usageNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationName, subscriptionId, usageNameGets a subscription usage metric.
list_by_locationSELECTlocationName, subscriptionIdGets all subscription usage metrics in a given location.

SELECT examples

Gets all subscription usage metrics in a given location.

SELECT
current_value,
display_name,
limit,
locationName,
subscriptionId,
unit,
usageName
FROM azure.sql.vw_subscription_usages
WHERE locationName = '{{ locationName }}'
AND subscriptionId = '{{ subscriptionId }}';