Statistics - List By Automation Account
Retrieve the statistics for the account.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/statistics?api-version=2021-06-22
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/statistics?$filter={$filter}&api-version=2021-06-22
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
automation
|
path | True |
string |
The name of the automation account. |
resource
|
path | True |
string |
Name of an Azure Resource group. Regex pattern: |
subscription
|
path | True |
string |
Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client Api Version. |
$filter
|
query |
string |
The filter to apply on the operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get statistics of an automation account
Sample Request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics?api-version=2021-06-22
Sample Response
{
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/New",
"counterProperty": "New",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Activating",
"counterProperty": "Activating",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Running",
"counterProperty": "Running",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Completed",
"counterProperty": "Completed",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Failed",
"counterProperty": "Failed",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopped",
"counterProperty": "Stopped",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Blocked",
"counterProperty": "Blocked",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspended",
"counterProperty": "Suspended",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Disconnected",
"counterProperty": "Disconnected",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspending",
"counterProperty": "Suspending",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopping",
"counterProperty": "Stopping",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Resuming",
"counterProperty": "Resuming",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Removing",
"counterProperty": "Removing",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
}
]
}
Definitions
Name | Description |
---|---|
Error |
Error response of an operation failure |
Statistics |
Definition of the statistic. |
Statistics |
The response model for the list statistics operation. |
ErrorResponse
Error response of an operation failure
Name | Type | Description |
---|---|---|
code |
string |
Error code |
message |
string |
Error message indicating why the operation failed. |
Statistics
Definition of the statistic.
Name | Type | Description |
---|---|---|
counterProperty |
string |
Gets the property value of the statistic. |
counterValue |
integer |
Gets the value of the statistic. |
endTime |
string |
Gets the endTime of the statistic. |
id |
string |
Gets the id. |
startTime |
string |
Gets the startTime of the statistic. |
StatisticsListResult
The response model for the list statistics operation.
Name | Type | Description |
---|---|---|
value |
Gets or sets a list of statistics. |