Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Patch call for DDoS Protection plan
  • Loading branch information
Manchit Gupta committed Mar 14, 2019
commit 990e67dd2440455b0163f05cce65cef344d2d5f2
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,64 @@
"$ref": "./examples/DdosProtectionPlanCreate.json"
}
}
},
"patch": {
"tags": [
"DdosProtectionPlans"
],
"operationId": "DdosProtectionPlans_UpdateTags",
"description": "Update a DDoS protection plan tags",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "ddosProtectionPlanName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the DDoS protection plan."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "./network.json#/definitions/TagsObject"
},
"description": "Parameters supplied to the update DDoS protection plan resource tags."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Update successful. The operation returns the resulting DDoS protection plan resource.",
"schema": {
"$ref": "#/definitions/DdosProtectionPlan"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"DDoS protection plan Update tags": {
"$ref": "./examples/DdosProtectionPlanUpdateTags.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans": {
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",
"ddosProtectionPlanName": "test-plan",
"parameters": {
"tags": {
"tag1": "value1",
"tag2": "value2"
}
}
},
"responses": {
"200": {
"body": {
"name": "test-plan",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/test-plan",
"type": "Microsoft.Network/ddosProtectionPlans",
"location": "westus",
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"virtualNetworks": []
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,64 @@
"$ref": "./examples/DdosProtectionPlanCreate.json"
}
}
},
"patch": {
"tags": [
"DdosProtectionPlans"
],
"operationId": "DdosProtectionPlans_UpdateTags",
"description": "Update a DDoS protection plan tags",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "ddosProtectionPlanName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the DDoS protection plan."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "./network.json#/definitions/TagsObject"
},
"description": "Parameters supplied to the update DDoS protection plan resource tags."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Update successful. The operation returns the resulting DDoS protection plan resource.",
"schema": {
"$ref": "#/definitions/DdosProtectionPlan"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"DDoS protection plan Update tags": {
"$ref": "./examples/DdosProtectionPlanUpdateTags.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2018-12-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"ddosProtectionPlanName": "test-plan",
"parameters": {
"tags": {
"tag1": "value1",
"tag2": "value2"
}
}
},
"responses": {
"200": {
"body": {
"name": "test-plan",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/test-plan",
"type": "Microsoft.Network/ddosProtectionPlans",
"location": "westus",
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"virtualNetworks": []
}
}
}
}
}