usages
Creates, updates, deletes, gets or lists a usages resource.
Overview
| Name | usages |
| Type | Resource |
| Id | azure_isv.vmwarecloudsimple.usages |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
name | object | Usage name value and localized name. |
currentValue | integer | The current usage value. Required. |
limit | integer | limit 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. |
unit | string | The usages' unit. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountPerSecond", and "BytesPerSecond". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | region_id, subscription_id | $filter | Implements 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.
| Name | Datatype | Description |
|---|---|---|
region_id | string | The region Id (westus, eastus). Required. |
subscription_id | string | |
$filter | string | The 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
- list
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 }}'
;