diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json index 9fdfea75afb1..ff95d7d03eb7 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json @@ -1315,6 +1315,11 @@ "description": "Gets or sets the last modified time.", "x-nullable": false }, + "nodeConfigurationCount": { + "type": "integer", + "description": "Gets the number of compiled node configurations.", + "x-nullable": false + }, "description": { "type": "string", "description": "Gets or sets the description." @@ -1354,6 +1359,10 @@ "nextLink": { "type": "string", "description": "Gets or sets the next link." + }, + "totalCount": { + "type": "integer", + "description": "Gets the total number of configurations matching filter criteria." } }, "description": "The response model for the list configuration operation." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json index 591e51adef14..dd6dcf695bc1 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagement", "version": "2015-10-31", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -348,6 +348,12 @@ "x-ms-examples": { "Get DSC Configuration": { "$ref": "./examples/getAllDscConfigurations.json" + }, + "List Paged DSC Configurations with no filter": { + "$ref": "./examples/getPagedDscConfigurationsWithNoFilter.json" + }, + "List Paged DSC Configurations with name filter": { + "$ref": "./examples/getPagedlDscConfigurationsWithNameFilter.json" } }, "parameters": [ @@ -366,6 +372,34 @@ }, { "$ref": "./definitions.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$skip", + "in": "query", + "required": false, + "type": "integer", + "description": "The number of rows to skip." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "description": "The the number of rows to take." + }, + { + "name": "$inlinecount", + "in": "query", + "required": false, + "type": "string", + "description": "Return total rows." } ], "responses": { @@ -384,7 +418,8 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" - } + }, + "x-ms-odata": "./definitions.json#/definitions/DscConfiguration" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getPagedDscConfigurationsWithNoFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getPagedDscConfigurationsWithNoFilter.json new file mode 100644 index 000000000000..d29706d11cfa --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getPagedDscConfigurationsWithNoFilter.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2015-10-31", + "$skip": 0, + "$top": 3, + "$inlinecount": "allpages" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SqlServerBig", + "location": "East US 2", + "name": "SqlServerBig", + "type": "Microsoft.Automation/AutomationAccounts/Configurations", + "properties": { + "state": "Published", + "creationTime": "2017-03-28T18:53:24.997+00:00", + "lastModifiedTime": "2017-03-28T18:53:24.997+00:00", + "nodeConfigurationCount": 1 + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SqlServerLittle", + "location": "East US 2", + "name": "SqlServerLittle", + "type": "Microsoft.Automation/AutomationAccounts/Configurations", + "properties": { + "state": "Published", + "creationTime": "2017-03-28T18:53:24.997+00:00", + "lastModifiedTime": "2017-03-28T18:53:24.997+00:00", + "nodeConfigurationCount": 1 + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SetupServer", + "location": "East US 2", + "name": "SetupServer", + "type": "Microsoft.Automation/AutomationAccounts/Configurations", + "properties": { + "state": "Published", + "creationTime": "2017-03-28T18:53:24.997+00:00", + "lastModifiedTime": "2017-03-28T18:53:24.997+00:00", + "nodeConfigurationCount": 1 + } + } + ], + "totalCount": 12 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getPagedlDscConfigurationsWithNameFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getPagedlDscConfigurationsWithNameFilter.json new file mode 100644 index 000000000000..b439d5b5cd55 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getPagedlDscConfigurationsWithNameFilter.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2015-10-31", + "$skip": 0, + "$top": 2, + "$inlinecount": "allpages", + "$filter": "contains(name,'server')" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SqlServerBig", + "location": "East US 2", + "name": "SqlServerBig", + "type": "Microsoft.Automation/AutomationAccounts/Configurations", + "properties": { + "state": "Published", + "creationTime": "2017-03-28T18:53:24.997+00:00", + "lastModifiedTime": "2017-03-28T18:53:24.997+00:00", + "nodeConfigurationCount": 1 + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SqlServerLittle", + "location": "East US 2", + "name": "SqlServerLittle", + "type": "Microsoft.Automation/AutomationAccounts/Configurations", + "properties": { + "state": "Published", + "creationTime": "2017-03-28T18:53:24.997+00:00", + "lastModifiedTime": "2017-03-28T18:53:24.997+00:00", + "nodeConfigurationCount": 1 + } + } + ], + "totalCount": 4 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json index 741f3fd8f6e2..bf76140b1551 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json @@ -310,6 +310,27 @@ "x-ms-examples": { "List DSC nodes by Automation Account": { "$ref": "./examples/listAllDscNodesByAutomationAccount.json" + }, + "List Paged DSC nodes by Automation Account with no filters": { + "$ref": "./examples/listPagedDscNodesByAutomationAccountWithNoFilter.json" + }, + "List Paged DSC nodes by Automation Account with name filter": { + "$ref": "./examples/listPagedDscNodesByAutomationAccountWithNameFilter.json" + }, + "List Paged DSC nodes by Automation Account with node status filter": { + "$ref": "./examples/listPagedDscNodesByAutomationAccountWithStatusFilter.json" + }, + "List Paged DSC nodes by Automation Account with Node Configuration Custom filter": { + "$ref": "./examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationCustomFilter.json" + }, + "List Paged DSC nodes by Automation Account where Node Configurations are not assigned filter": { + "$ref": "./examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationNotAssignedFilter.json" + }, + "List Paged DSC nodes by Automation Account with version filter": { + "$ref": "./examples/listPagedDscNodesByAutomationAccountWithVersionFilter.json" + }, + "List Paged DSC nodes with filters separated by 'and'": { + "$ref": "./examples/listPagedDscNodesByAutomationAccountWithCompositeFilter.json" } }, "parameters": [ @@ -326,6 +347,27 @@ "type": "string", "description": "The filter to apply on the operation." }, + { + "name": "$skip", + "in": "query", + "required": false, + "type": "integer", + "description": "The number of rows to skip." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "description": "The the number of rows to take." + }, + { + "name": "$inlinecount", + "in": "query", + "required": false, + "type": "string", + "description": "Return total rows." + }, { "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, @@ -849,6 +891,7 @@ "description": "Gets or sets the account id of the node." }, "nodeConfiguration": { + "x-nullable": true, "x-ms-client-flatten": true, "$ref": "#/definitions/DscNodeConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." @@ -865,6 +908,10 @@ "type": "string", "description": "Gets or sets the etag of the resource." }, + "totalCount": { + "type": "integer", + "description": "Gets the total number of records matching filter criteria." + }, "extensionHandler": { "type": "array", "description": "Gets or sets the list of extensionHandler properties for a Node.", @@ -945,6 +992,10 @@ "nextLink": { "type": "string", "description": "Gets or sets the next link." + }, + "totalCount": { + "type": "integer", + "description": "Gets the total number of nodes matching filter criteria." } }, "description": "The response model for the list dsc nodes operation." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json index 2cbee5bccf5f..b44e424090cb 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json @@ -211,6 +211,12 @@ "x-ms-examples": { "List DSC node configurations by Automation Account": { "$ref": "./examples/listDscNodeConfigurations.json" + }, + "List Paged DSC node configurations by Automation Account with no filter": { + "$ref": "./examples/listPagedDscNodeConfigurationsWithNoFilter.json" + }, + "List Paged DSC node configurations by Automation Account with name filter": { + "$ref": "./examples/listPagedDscNodeConfigurationsWithNameFilter.json" } }, "parameters": [ @@ -232,6 +238,27 @@ "required": false, "type": "string", "description": "The filter to apply on the operation." + }, + { + "name": "$skip", + "in": "query", + "required": false, + "type": "integer", + "description": "The number of rows to skip." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "description": "The the number of rows to take." + }, + { + "name": "$inlinecount", + "in": "query", + "required": false, + "type": "string", + "description": "Return total rows." } ], "responses": { @@ -364,6 +391,10 @@ "nextLink": { "type": "string", "description": "Gets or sets the next link." + }, + "totalCount": { + "type": "integer", + "description": "Gets or sets the total rows in query." } }, "description": "The response model for the list job operation." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json new file mode 100644 index 000000000000..13552a598ae3 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json @@ -0,0 +1,149 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2018-01-15", + "x-ms-code-generation-settings": { + "useDateTimeOffset": true + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType}": { + "get": { + "tags": [ + "NodeCountInformation" + ], + "operationId": "NodeCountInformation_Get", + "description": "Retrieve counts for Dsc Nodes.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/nodecounts" + }, + "x-ms-examples": { + "Get node's status counts": { + "$ref": "./examples/listPagedDscNodeStatusCounts.json" + }, + "Get node's node configuration counts": { + "$ref": "./examples/listPagedDscNodeConfigurationCounts.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "automationAccountName", + "in": "path", + "required": true, + "type": "string", + "description": "The automation account name." + }, + { + "$ref": "#/parameters/CountTypeParameter" + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NodeCounts" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "NodeCounts": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NodeCount" + }, + "description": "Gets an array of counts" + }, + "totalCount": { + "type": "integer", + "description": "Gets the total number of records matching countType criteria." + } + }, + "description": "Gets the count of nodes by count type" + }, + "NodeCount": { + "properties": { + "name": { + "description": "Gets the name of a count type", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/NodeCountProperties" + } + } + }, + "NodeCountProperties": { + "properties": { + "count": { + "description": "Gets the count for the name", + "type": "integer" + } + } + } + }, + "parameters": { + "CountTypeParameter": { + "name": "countType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of counts to retrieve", + "enum": [ + "status", + "nodeconfiguration" + ], + "x-ms-enum": { + "name": "CountType", + "modelAsString": true + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeConfigurationCounts.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeConfigurationCounts.json new file mode 100644 index 000000000000..b1c05e9c00ca --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeConfigurationCounts.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "countType": "nodeconfiguration", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 2, + "$inlinecount": "allpages" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "client.localhost", + "properties": { + "count": 24 + } + }, + { + "name": "server.localhost", + "properties": { + "count": 3 + } + } + ], + "totalCount": 16 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeConfigurationsWithNameFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeConfigurationsWithNameFilter.json new file mode 100644 index 000000000000..28514b23fcb0 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeConfigurationsWithNameFilter.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 2, + "$inlinecount": "allpages", + "$filter": "contains('.localhost',name)" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupServer.localhost", + "type": "Microsoft.Automation/AutomationAccounts/nodeConfigurations", + "name": "server.localhost", + "properties": { + "configuration": { + "name": "SetupServer" + }, + "creationTime": "2017-03-28T23:17:06.8901968+00:00", + "lastModifiedTime": "2017-03-28T23:17:06.8901968+00:00", + "nodeCount": 2 + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupClient.localhost", + "type": "Microsoft.Automation/AutomationAccounts/nodeConfigurations", + "name": "SetupClient.localhost", + "properties": { + "configuration": { + "name": "SetupClient" + }, + "creationTime": "2017-03-28T23:17:06.8901968+00:00", + "lastModifiedTime": "2017-03-28T23:17:06.8901968+00:00", + "nodeCount": 6 + } + } + ], + "totalCount": 6 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeConfigurationsWithNoFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeConfigurationsWithNoFilter.json new file mode 100644 index 000000000000..753bbbca7276 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeConfigurationsWithNoFilter.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 4, + "$inlinecount": "allpages" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupServer.localhost", + "type": "Microsoft.Automation/AutomationAccounts/nodeConfigurations", + "name": "server.localhost", + "properties": { + "configuration": { + "name": "SetupServer" + }, + "creationTime": "2017-03-28T23:17:06.8901968+00:00", + "lastModifiedTime": "2017-03-28T23:17:06.8901968+00:00", + "nodeCount": 2 + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupClient.localhost", + "type": "Microsoft.Automation/AutomationAccounts/nodeConfigurations", + "name": "SetupClient.localhost", + "properties": { + "configuration": { + "name": "SetupClient" + }, + "creationTime": "2017-03-28T23:17:06.8901968+00:00", + "lastModifiedTime": "2017-03-28T23:17:06.8901968+00:00", + "nodeCount": 6 + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/webServer.localhost", + "type": "Microsoft.Automation/AutomationAccounts/nodeConfigurations", + "name": "webServer.localhost", + "properties": { + "configuration": { + "name": "webServer" + }, + "creationTime": "2017-03-28T23:17:06.8901968+00:00", + "lastModifiedTime": "2017-03-28T23:17:06.8901968+00:00", + "nodeCount": 5 + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SqlServer.localhost", + "type": "Microsoft.Automation/AutomationAccounts/nodeConfigurations", + "name": "SqlServer.localhost", + "properties": { + "configuration": { + "name": "SqlServer" + }, + "creationTime": "2017-03-28T23:17:06.8901968+00:00", + "lastModifiedTime": "2017-03-28T23:17:06.8901968+00:00", + "nodeCount": 1 + } + } + ], + "totalCount": 12 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeReportsByNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeReportsByNode.json new file mode 100644 index 000000000000..72002d34a646 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeReportsByNode.json @@ -0,0 +1,253 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "nodeId": "nodeId", + "reportId": "903a5ead-140c-11e7-a943-000d3a6140c9", + "api-version": "2018-01-15" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5ead-140c-11e7-a943-000d3a6140c9", + "reportId": "903a5ead-140c-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T23:16:27.587+00:00", + "endTime": "2017-03-28T23:16:27.587+00:00", + "lastModifiedTime": "2017-03-28T23:16:29.4440401+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5eac-140c-11e7-a943-000d3a6140c9", + "reportId": "903a5eac-140c-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T23:16:26.015+00:00", + "endTime": "2017-03-28T23:16:27.015+00:00", + "lastModifiedTime": "2017-03-28T23:16:28.3813034+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/77c280c2-140a-11e7-a943-000d3a6140c9", + "reportId": "77c280c2-140a-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T23:01:25.986+00:00", + "endTime": "2017-03-28T23:01:26.986+00:00", + "lastModifiedTime": "2017-03-28T23:01:28.216963+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/5f4f5382-1408-11e7-a943-000d3a6140c9", + "reportId": "5f4f5382-1408-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:46:27.668+00:00", + "endTime": "2017-03-28T22:46:28.668+00:00", + "lastModifiedTime": "2017-03-28T22:46:29.0439184+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/5f4f5381-1408-11e7-a943-000d3a6140c9", + "reportId": "5f4f5381-1408-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:46:25.957+00:00", + "endTime": "2017-03-28T22:46:26.957+00:00", + "lastModifiedTime": "2017-03-28T22:46:27.9498533+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/46d97d6a-1406-11e7-a943-000d3a6140c9", + "reportId": "46d97d6a-1406-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:31:25.941+00:00", + "endTime": "2017-03-28T22:31:26.941+00:00", + "lastModifiedTime": "2017-03-28T22:31:27.6825492+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/48c8e301-1404-11e7-a943-000d3a6140c9", + "reportId": "48c8e301-1404-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:17:10.163+00:00", + "endTime": "2017-03-28T22:17:10.163+00:00", + "lastModifiedTime": "2017-03-28T22:17:11.0040472+00:00", + "status": "Failed", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/2e63fdbc-1404-11e7-a943-000d3a6140c9", + "reportId": "2e63fdbc-1404-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:16:25.897+00:00", + "endTime": "2017-03-28T22:17:09.897+00:00", + "lastModifiedTime": "2017-03-28T22:16:27.3128731+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/15ee63e4-1402-11e7-a943-000d3a6140c9", + "reportId": "15ee63e4-1402-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:01:25.899+00:00", + "endTime": "2017-03-28T22:01:27.899+00:00", + "lastModifiedTime": "2017-03-28T22:01:26.6282252+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/0508f316-1400-11e7-a943-000d3a6140c9", + "reportId": "0508f316-1400-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:46:38.511+00:00", + "endTime": "2017-03-28T21:46:39.511+00:00", + "lastModifiedTime": "2017-03-28T21:46:40.577983+00:00", + "status": "Failed", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/fd799a51-13ff-11e7-a943-000d3a6140c9", + "reportId": "fd799a51-13ff-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:46:25.843+00:00", + "endTime": "2017-03-28T21:46:37.843+00:00", + "lastModifiedTime": "2017-03-28T21:46:28.4660077+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/e504ae1b-13fd-11e7-a943-000d3a6140c9", + "reportId": "e504ae1b-13fd-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:31:25.818+00:00", + "endTime": "2017-03-28T21:31:27.818+00:00", + "lastModifiedTime": "2017-03-28T21:31:28.1503168+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/cd3ed224-13fb-11e7-a943-000d3a6140c9", + "reportId": "cd3ed224-13fb-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:16:35.538+00:00", + "endTime": "2017-03-28T21:16:59.538+00:00", + "lastModifiedTime": "2017-03-28T21:16:37.1768158+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/cd3ed223-13fb-11e7-a943-000d3a6140c9", + "reportId": "cd3ed223-13fb-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:16:26.956+00:00", + "endTime": "2017-03-28T21:16:34.956+00:00", + "lastModifiedTime": "2017-03-28T21:16:29.2370664+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/b6915efa-13f9-11e7-a943-000d3a6140c9", + "reportId": "b6915efa-13f9-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:01:29.916+00:00", + "endTime": "2017-03-28T21:02:02.916+00:00", + "lastModifiedTime": "2017-03-28T21:01:31.875597+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/a3560dca-13f7-11e7-a943-000d3a6140c9", + "reportId": "a3560dca-13f7-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T20:46:38.626+00:00", + "endTime": "2017-03-28T20:46:44.626+00:00", + "lastModifiedTime": "2017-03-28T20:46:39.749649+00:00", + "status": "Failed", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/9b9bb016-13f7-11e7-a943-000d3a6140c9", + "reportId": "9b9bb016-13f7-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T20:46:25.676+00:00", + "endTime": "2017-03-28T20:46:37.676+00:00", + "lastModifiedTime": "2017-03-28T20:46:27.2602881+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/833bd89b-13f5-11e7-a943-000d3a6140c9", + "reportId": "833bd89b-13f5-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T20:31:25.805+00:00", + "endTime": "2017-03-28T20:40:24.805+00:00", + "lastModifiedTime": "2017-03-28T20:31:27.1356547+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeStatusCounts.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeStatusCounts.json new file mode 100644 index 000000000000..76b9b893c433 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodeStatusCounts.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 20, + "$inlinecount": "allpages", + "countType": "status" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "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 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithCompositeFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithCompositeFilter.json new file mode 100644 index 000000000000..66f1e11caede --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithCompositeFilter.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 10, + "$inlinecount": "allpages", + "$filter": "properties/extensionHandler/any(eh: eh/version gt '2.70') and contains(name,'sql') and contains(properties/nodeConfiguration/name,'$$Not$$Configured$$')" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Sql1", + "name": "Sql1", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "01D64CDE-85DD-4C9B-B8F1-2F725348FDEC", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupSqlServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.70.0.1" + } + ] + } + } + ], + "totalCount": 1 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNameFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNameFilter.json new file mode 100644 index 000000000000..2d112be9fd62 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNameFilter.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 6, + "$inlinecount": "allpages", + "$filter": "contains('DSCCOMP',name)" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/DSCCOMP", + "name": "DSCCOMP", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "708D250A-2169-4B54-89FF-76F5F71C252A", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/DSCCOMP2", + "name": "DSCCOMP2", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "3B4BB31A-5132-4669-A15F-A17E234D1634", + "status": "Failed", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + } + ], + "totalCount": 2 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNoFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNoFilter.json new file mode 100644 index 000000000000..7f4a0bf15d1b --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNoFilter.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 2, + "$inlinecount": "allpages" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId", + "name": "DSCCOMP", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "FCC20208-E781-41C4-A757-17AA0429B3A4", + "status": "Pending", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId2", + "name": "DSCCOMP2", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "A63C781C-0C50-4825-B295-B7F8ECFD0DBC", + "status": "Pending", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + } + ], + "totalCount": 152 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationCustomFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationCustomFilter.json new file mode 100644 index 000000000000..1f2dc35f87f3 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationCustomFilter.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 4, + "$inlinecount": "allpages", + "$filter": "contains(properties/nodeConfiguration/name,'SetupServer.localhost,SetupClient.localhost,$$Not$$Configured$$')" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node32", + "name": "Node32", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "477F9596-92F3-479A-82F2-9EE149F2C6B0", + "status": "Compliant", + "nodeConfiguration": { + "name": "" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node33", + "name": "Node33", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "E5D5D0B5-400D-48F7-A791-612945DAC5EB", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node34", + "name": "Node34", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "Node34", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupClient.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node35", + "name": "Node35", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "Node35", + "status": "NotCompliant", + "nodeConfiguration": { + "name": "SetupClient.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + } + ], + "totalCount": 12 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationNotAssignedFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationNotAssignedFilter.json new file mode 100644 index 000000000000..fb062228fd8c --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationNotAssignedFilter.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 20, + "$inlinecount": "allpages", + "$filter": "properties/nodeConfiguration/name eq ''" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node60", + "name": "Node60", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "477F9596-92F3-479A-82F2-9EE149F2C6B0", + "status": "Compliant", + "nodeConfiguration": { + "name": "" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node61", + "name": "Node61", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "E5D5D0B5-400D-48F7-A791-612945DAC5EB", + "status": "Compliant", + "nodeConfiguration": { + "name": "" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + } + ], + "totalCount": 2 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithStatusFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithStatusFilter.json new file mode 100644 index 000000000000..d0332846cd8b --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithStatusFilter.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 4, + "$inlinecount": "allpages", + "$filter": "contains(properties/status,'Compliant,NotCompliant')" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node12", + "name": "Node12", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "01D64CDE-85DD-4C9B-B8F1-2F725348FDEC", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node13", + "name": "Node13", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "E13076D7-A959-4067-B02F-4F014AAD22D7", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node14", + "name": "Node14", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "4289B441-B9A0-4309-93FC-0C5100CFBE46", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node15", + "name": "Node15", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "CBD2212B-8F4C-4049-98E7-1DBCBED7343B", + "status": "NotCompliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.75.0.0" + } + ] + } + } + ], + "totalCount": 67 + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithVersionFilter.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithVersionFilter.json new file mode 100644 index 000000000000..a86f8501745d --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listPagedDscNodesByAutomationAccountWithVersionFilter.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-01-15", + "$skip": 0, + "$top": 4, + "$inlinecount": "allpages", + "$filter": "properties/extensionHandler/any(eh: eh/version le '2.70')" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node62", + "name": "Node62", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "01D64CDE-85DD-4C9B-B8F1-2F725348FDEC", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node63", + "name": "Node63", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "E13076D7-A959-4067-B02F-4F014AAD22D7", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.70.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node64", + "name": "Node64", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "4289B441-B9A0-4309-93FC-0C5100CFBE46", + "status": "Compliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": [ + { + "name": "Microsoft.Powershell.DSC", + "version": "2.70.0.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node65", + "name": "Node65", + "type": "Microsoft.Automation/AutomationAccounts/Nodes", + "properties": { + "lastSeen": "2018-03-22T22:25:39.0963773+00:00", + "registrationTime": "2018-03-10T00:51:12.5393083+00:00", + "ip": "ip", + "nodeId": "CBD2212B-8F4C-4049-98E7-1DBCBED7343B", + "status": "NotCompliant", + "nodeConfiguration": { + "name": "SetupServer.localhost" + }, + "extensionHandler": null + } + } + ], + "totalCount": 7 + } + } + } +} \ No newline at end of file