usages
Creates, updates, deletes, gets or lists a usages
resource.
Overview
Name | usages |
Type | Resource |
Id | azure.quota.usages |
Fields
The following fields are returned by SELECT
queries:
- get
- list
OK. The usage information will be returned in the response.
Name | Datatype | Description |
---|---|---|
id | string | The resource ID. |
name | string | The resource name. |
properties | object | Usage properties for the specified resource. |
type | string | The resource type. |
OK. Usage information will be returned in the response with pagination.
Name | Datatype | Description |
---|---|---|
id | string | The resource ID. |
name | string | The resource name. |
properties | object | Usage properties for the specified resource. |
type | string | The resource type. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceName , scope | Get the current usage of a resource. | |
list | select | scope | Get a list of current usage for all resources for the scope specified. |
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 |
---|---|---|
resourceName | string | Resource name for a given resource provider. For example: - SKU name for Microsoft.Compute - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses. |
scope | string | The target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/ . This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas , then it's the target Azure resource URI in the GET operation for the specific resource. |
SELECT
examples
- get
- list
Get the current usage of a resource.
SELECT
id,
name,
properties,
type
FROM azure.quota.usages
WHERE resourceName = '{{ resourceName }}' -- required
AND scope = '{{ scope }}' -- required
;
Get a list of current usage for all resources for the scope specified.
SELECT
id,
name,
properties,
type
FROM azure.quota.usages
WHERE scope = '{{ scope }}' -- required
;