Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.data_migration.usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource ID of the quota object.
nameobjectThe name of the quota.
currentValuenumberThe current value of the quota. If null or missing, the current value cannot be determined in the context of the request.
limitnumberThe maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.
unitstringThe unit for the quota, such as Count, Bytes, BytesPerSecond, etc.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlocation, subscription_idGet resource quotas and usage information. This method returns region-specific quotas and resource usage information for the Azure Database Migration Service (classic).

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
locationstringThe location name. Required.
subscription_idstring

SELECT examples

Get resource quotas and usage information. This method returns region-specific quotas and resource usage information for the Azure Database Migration Service (classic).

SELECT
id,
name,
currentValue,
limit,
unit
FROM azure.data_migration.usages
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;