Skip to main content

usage

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

Overview

Nameusage
TypeResource
Idazure_extras.testbase.usage

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified ARM resource id.
nameobjectLocalizable String object containing the name and a localized value.
currentValueintegerCurrent value for the usage quota.
limitintegerThe maximum permitted value for the usage quota. If there is no limit, this value will be -1.
unitstringRepresenting the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresource_group_name, test_base_account_name, subscription_id$filterLists the usage data of a Test Base Account.

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
resource_group_namestringThe name of the resource group that contains the resource. Required.
subscription_idstring
test_base_account_namestringThe resource name of the Test Base Account. Required.
$filterstringOdata filter. Default value is None.

SELECT examples

Lists the usage data of a Test Base Account.

SELECT
id,
name,
currentValue,
limit,
unit
FROM azure_extras.testbase.usage
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND test_base_account_name = '{{ test_base_account_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
;