Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding patch API for Configurations #2688

Merged
merged 1 commit into from
Mar 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
}