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:

Quotas returned

NameDatatypeDescription
idstringThe resource ID of the quota object
nameobjectThe name of the quota
currentValuenumber (double)The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.
limitnumber (double)The 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
listselectsubscriptionId, locationapi-versionThis 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 Azure region of the operation
subscriptionIdstringSubscription ID that identifies an Azure subscription.
api-versionstringVersion of the API

SELECT examples

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 subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
AND api-version = '{{ api-version }}'
;