usages
Creates, updates, deletes, gets or lists a usages
resource.
Overview
Name | usages |
Type | Resource |
Id | azure.automation.usages |
Fields
The following fields are returned by SELECT
queries:
- list_by_automation_account
Name | Datatype | Description |
---|---|---|
id | string | Gets or sets the id of the resource. |
name | object | Gets or sets the usage counter name. |
currentValue | number (double) | Gets or sets the current usage value. |
limit | integer (int64) | Gets or sets max limit. -1 for unlimited |
throttleStatus | string | Gets or sets the throttle status. |
unit | string | Gets or sets the usage unit name. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list_by_automation_account | select | resourceGroupName , automationAccountName , subscriptionId | Retrieve the usage for the account id. |
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 |
---|---|---|
automationAccountName | string | The name of the automation account. |
resourceGroupName | string | Name of an Azure Resource group. |
subscriptionId | string | Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
SELECT
examples
- list_by_automation_account
Retrieve the usage for the account id.
SELECT
id,
name,
currentValue,
limit,
throttleStatus,
unit
FROM azure.automation.usages
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND automationAccountName = '{{ automationAccountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;