Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure_isv.vmwarecloudsimple.usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nameobjectUsage name value and localized name.
currentValueintegerThe current usage value. Required.
limitintegerlimit of a given sku in a region for a subscription. The maximum permitted value for the usage quota. If there is no limit, this value will be -1. Required.
unitstringThe usages' unit. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountPerSecond", and "BytesPerSecond".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectregion_id, subscription_id$filterImplements Usages List method. Returns list of usage in region.

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
region_idstringThe region Id (westus, eastus). Required.
subscription_idstring
$filterstringThe filter to apply on the list operation. only name.value is allowed here as a filter e.g. $filter=name.value eq 'xxxx'. Default value is None.

SELECT examples

Implements Usages List method. Returns list of usage in region.

SELECT
name,
currentValue,
limit,
unit
FROM azure_isv.vmwarecloudsimple.usages
WHERE region_id = '{{ region_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
;