Node Count Information - Get
Retrieve counts for Dsc Nodes.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType}?api-version=2019-06-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
automation
|
path | True |
string |
The name of the automation account. |
count
|
path | True |
The type of counts to retrieve |
|
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. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Automation 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 node's node configuration counts |
Get node's status counts |
Get node's node configuration counts
Sample request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodecounts/nodeconfiguration?api-version=2019-06-01
Sample response
{
"value": [
{
"name": "client.localhost",
"properties": {
"count": 24
}
},
{
"name": "server.localhost",
"properties": {
"count": 3
}
}
],
"totalCount": 16
}
Get node's status counts
Sample request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodecounts/status?api-version=2019-06-01
Sample response
{
"value": [
{
"name": "Compliant",
"properties": {
"count": 10
}
},
{
"name": "Failed",
"properties": {
"count": 1
}
},
{
"name": "InProgress",
"properties": {
"count": 1
}
},
{
"name": "NotCompliant",
"properties": {
"count": 3
}
},
{
"name": "Pending",
"properties": {
"count": 0
}
},
{
"name": "Unresponsive",
"properties": {
"count": 4
}
}
],
"totalCount": 6
}
Definitions
Name | Description |
---|---|
Count |
The type of counts to retrieve |
Error |
Error response of an operation failure |
Node |
Number of nodes based on the Filter |
Node |
|
Node |
Gets the count of nodes by count type |
CountType
The type of counts to retrieve
Name | Type | Description |
---|---|---|
nodeconfiguration |
string |
|
status |
string |
ErrorResponse
Error response of an operation failure
Name | Type | Description |
---|---|---|
code |
string |
Error code |
message |
string |
Error message indicating why the operation failed. |
NodeCount
Number of nodes based on the Filter
Name | Type | Description |
---|---|---|
name |
string |
Gets the name of a count type |
properties |
NodeCountProperties
Name | Type | Description |
---|---|---|
count |
integer |
Gets the count for the name |
NodeCounts
Gets the count of nodes by count type
Name | Type | Description |
---|---|---|
totalCount |
integer |
Gets the total number of records matching countType criteria. |
value |
Gets an array of counts |