Skip to content
Merged
Prev Previous commit
Next Next commit
Exposing PATCH for ASGs (#4951)
  • Loading branch information
rupalivohra authored and dsgouda committed Dec 21, 2018
commit f2683c831058159bc8e1c84a8a3508592a65e51c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,56 @@
"x-ms-examples": {
"Create application security group": { "$ref": "./examples/ApplicationSecurityGroupCreate.json" }
}
},
"patch": {
"tags": [
"applicationSecurityGroups"
],
"operationId": "ApplicationSecurityGroups_UpdateTags",
"description": "Updates an application security group's tags.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "applicationSecurityGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the application security group."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "./network.json#/definitions/TagsObject"
},
"description": "Parameters supplied to update application security group tags."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Update successful. The operation returns the resulting ApplicationSecurityGroup resource.",
"schema": {
"$ref": "#/definitions/ApplicationSecurityGroup"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Update application security group tags": { "$ref": "./examples/ApplicationSecurityGroupUpdateTags.json" }
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters" : {
"api-version": "2018-11-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"applicationSecurityGroupName" : "test-asg",
"location": "westus",
"parameters": {
"tags": {
"tag1": "value1",
"tag2": "value2"
}
}
},
"responses" : {
"200" : {
"body" : {
"name" : "test-asg",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/test-asg",
"type" : "Microsoft.Network/applicationSecurityGroups",
"location" : "westus",
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties" : {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000"
}
}
}
}
}