Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For new API versions, please copy a prior reviewed API version as the first commit, and then commit the changes. It makes it easier to review deltas in Github natively. Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first commit should be a copy of the 2019-03-01 API. The subsequent commits have the proposed changes for version 2019-10-01.

"parameters": {
"api-version": "2019-03-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "DefaultRuleSet_1.0",
"id": "/subscriptions/subid/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets",
"type": "Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets",
"properties": {
"provisioningState": "Succeeded",
"ruleSetType": "DefaultRuleSet",
"ruleSetVersion": "1.0",
"ruleGroups": [
{
"ruleGroupName": "Group1",
"description": "Description for rule group 1.",
"rules": [
{
"ruleId": "GROUP1-0001",
"description": "Generic managed web application firewall rule.",
"defaultState": "Enabled",
"defaultAction": "Block"
},
{
"ruleId": "GROUP1-0002",
"description": "Generic managed web application firewall rule.",
"defaultState": "Disabled",
"defaultAction": "Block"
}
]
},
{
"ruleGroupName": "Group2",
"description": "Description for rule group 2.",
"rules": [
{
"ruleId": "GROUP2-0001",
"description": "Generic managed web application firewall rule.",
"defaultState": "Enabled",
"defaultAction": "Allow"
}
]
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"parameters": {
"api-version": "2019-03-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Policy1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
"type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
"tags": {
"key1": "value1",
"key2": "value2"
},
"location": "WestUs",
"properties": {
"resourceState": "Enabled",
"provisioningState": "Succeeded",
"policySettings": {
"enabledState": "Enabled",
"mode": "Prevention",
"redirectUrl": "http://www.bing.com",
"customBlockResponseStatusCode": 499,
"customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
},
"customRules": {
"rules": [
{
"name": "Rule1",
"priority": 1,
"enabledState": "Enabled",
"ruleType": "RateLimitRule",
"rateLimitDurationInMinutes": 0,
"rateLimitThreshold": 1000,
"matchConditions": [
{
"matchVariable": "RemoteAddr",
"selector": null,
"operator": "IPMatch",
"negateCondition": false,
"matchValue": [
"192.168.1.0/24",
"10.0.0.0/24"
],
"transforms": []
}
],
"action": "Block"
},
{
"name": "Rule2",
"priority": 2,
"enabledState": "Enabled",
"ruleType": "MatchRule",
"rateLimitDurationInMinutes": 0,
"rateLimitThreshold": 0,
"matchConditions": [
{
"matchVariable": "RemoteAddr",
"selector": null,
"operator": "GeoMatch",
"negateCondition": false,
"matchValue": [
"CH"
]
},
{
"matchVariable": "RequestHeader",
"selector": "UserAgent",
"operator": "Contains",
"negateCondition": false,
"matchValue": [
"windows"
],
"transforms": [
"Lowercase"
]
}
],
"action": "Block"
}
]
},
"managedRules": {
"managedRuleSets": [
{
"ruleSetType": "DefaultRuleSet",
"ruleSetVersion": "preview-1.0",
"ruleGroupOverrides": [
{
"ruleGroupName": "Group1",
"rules": [
{
"ruleId": "GROUP1-0001",
"enabledState": "Enabled",
"action": "Redirect"
},
{
"ruleId": "GROUP1-0002",
"enabledState": "Disabled"
}
]
}
]
}
]
},
"frontendEndpointLinks": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontdoors/fd1/frontendendpoints/fd1-azurefd-net"
}
]
}
}
]
}
}
}
}
Loading