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 0d474b2e619f..0b0a927322ad 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 @@ -1423,6 +1423,27 @@ ], "description": "The parameters supplied to the create or update configuration operation." }, + "DscConfigurationUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets configuration create or update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets name of the resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the tags attached to the resource." + } + }, + "description": "The parameters supplied to the create or update configuration operation." + }, "DscMetaConfiguration": { "properties": { "configurationModeFrequencyMins": { 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 11043b7a0d59..cb9f8f22bc3b 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 @@ -212,6 +212,68 @@ } } } + }, + "patch": { + "tags": [ + "DscConfiguration" + ], + "operationId": "DscConfiguration_Update", + "description": "Create the configuration identified by configuration name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/configurationoperations" + }, + "x-ms-examples": { + "Create or Update Configuration": { + "$ref": "./examples/updateDscConfiguration.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "automationAccountName", + "in": "path", + "required": true, + "type": "string", + "description": "The automation account name." + }, + { + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The create or update parameters for configuration." + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "./definitions.json#/definitions/DscConfigurationUpdateParameters" + }, + "description": "The create or update parameters for configuration." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./definitions.json#/definitions/DscConfiguration" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}/content": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateDscConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateDscConfiguration.json new file mode 100644 index 000000000000..d2903cb94e53 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateDscConfiguration.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount18", + "configurationName": "SetupServer", + "api-version": "2015-10-31", + "parameters": { + "name": "SetupServer", + "tags": { + "Hello": "World" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SetupServer", + "name": "SetupServer", + "type": "Microsoft.Automation/AutomationAccounts/Configurations", + "location": "eastus2", + "tags": { + "Hello": "World" + }, + "etag": "\"636572843399170000\"", + "properties": { + "provisioningState": "Succeeded", + "jobCount": 0, + "parameters": {}, + "description": "sample configuration", + "state": null, + "creationTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "0001-01-01T00:00:00+00:00", + "logVerbose": false + } + } + } + } +} \ No newline at end of file