diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafListAllPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafListAllPolicies.json index d97dc5b93f9e..2196b2a83529 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafListAllPolicies.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafListAllPolicies.json @@ -23,69 +23,65 @@ "enabledState": "Enabled", "mode": "Prevention" }, - "customRules": { - "rules": [ - { + "customRules": [ + { "name": "Rule1", "priority": 1, "ruleType": "MatchRule", "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ], - "transforms": [] - } + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } ], "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "10.0.0.0/24" - ], - "transforms": [] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ], - "transforms": [] - } - ], - "action": "Block" - } - ] - } + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] } } ] diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafListPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafListPolicies.json index 84dc0e323da4..f305326f3bc4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafListPolicies.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafListPolicies.json @@ -24,66 +24,65 @@ "enabledState": "Enabled", "mode": "Prevention" }, - "customRules": { - "rules": [ - { + "customRules": [ + { "name": "Rule1", "priority": 1, "ruleType": "MatchRule", "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ] - } + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } ], "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "10.0.0.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" - } - ] - } + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] } } ] diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafPolicyCreateOrUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafPolicyCreateOrUpdate.json index 3de6268bc718..428219061f7a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafPolicyCreateOrUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafPolicyCreateOrUpdate.json @@ -1,233 +1,228 @@ { + "parameters": { + "api-version": "2018-12-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "policyName": "Policy1", "parameters": { - "api-version": "2018-12-01", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "policyName": "Policy1", - "parameters": { - "location": "WestUs", - "properties": { - "customRules": { - "rules": [ - { - "name": "Rule1", - "priority": 1, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ] - } - ], - "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "matchValues": [ - "192.168.1.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" - } - ] - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "Policy1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", - "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "location": "WestUs", - "properties": { - "resourceState": "Enabled", - "provisioningState": "Succeeded", - "policySettings": { - "enabledState": "Enabled", - "mode": "Prevention" - }, - "customRules": { - "rules": [ - { - "name": "Rule1", - "priority": 1, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ], - "transforms": [] - } - ], - "action": "Block" - }, + "location": "WestUs", + "properties": { + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "action": "Block", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ] + } + ] + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" + "variableName": "RemoteAddr", + "selector": null } - ] + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] } + ], + "action": "Block" } + ] + } + } + }, + "201": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" }, - "201": { - "body": { - "name": "Policy1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", - "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "location": "WestUs", - "properties": { - "resourceState": "Enabled", - "provisioningState": "Succeeded", - "policySettings": { - "enabledState": "Enabled", - "mode": "Prevention" - }, - "customRules": { - "rules": [ + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ { - "name": "Rule1", - "priority": 1, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ] - } - ], - "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" + "variableName": "RemoteAddr", + "selector": null } - ] + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] } + ], + "action": "Block" } + ] } + } } + } } \ No newline at end of file diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafPolicyGet.json index f79ef3e73136..d14d19242284 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/WafPolicyGet.json @@ -23,67 +23,65 @@ "enabledState": "Enabled", "mode": "Prevention" }, - "customRules": { - "rules": [ - { + "customRules": [ + { "name": "Rule1", "priority": 1, "ruleType": "MatchRule", "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ], - "transforms": [] - } + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } ], "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" - } - ] - } + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafListAllPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafListAllPolicies.json index de0f6f15a8fb..eed224479818 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafListAllPolicies.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafListAllPolicies.json @@ -23,69 +23,65 @@ "enabledState": "Enabled", "mode": "Prevention" }, - "customRules": { - "rules": [ - { + "customRules": [ + { "name": "Rule1", "priority": 1, "ruleType": "MatchRule", "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ], - "transforms": [] - } + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } ], "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "10.0.0.0/24" - ], - "transforms": [] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ], - "transforms": [] - } - ], - "action": "Block" - } - ] - } + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] } } ] diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafListPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafListPolicies.json index d28786740618..ae8992d52c1c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafListPolicies.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafListPolicies.json @@ -24,66 +24,65 @@ "enabledState": "Enabled", "mode": "Prevention" }, - "customRules": { - "rules": [ - { + "customRules": [ + { "name": "Rule1", "priority": 1, "ruleType": "MatchRule", "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ] - } + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } ], "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "10.0.0.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" - } - ] - } + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] } } ] diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafPolicyCreateOrUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafPolicyCreateOrUpdate.json index c89dcc55dd0b..6d21a3edc9c3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafPolicyCreateOrUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafPolicyCreateOrUpdate.json @@ -1,233 +1,228 @@ { + "parameters": { + "api-version": "2019-02-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "policyName": "Policy1", "parameters": { - "api-version": "2019-02-01", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "policyName": "Policy1", - "parameters": { - "location": "WestUs", - "properties": { - "customRules": { - "rules": [ - { - "name": "Rule1", - "priority": 1, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ] - } - ], - "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "matchValues": [ - "192.168.1.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" - } - ] - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "Policy1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", - "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "location": "WestUs", - "properties": { - "resourceState": "Enabled", - "provisioningState": "Succeeded", - "policySettings": { - "enabledState": "Enabled", - "mode": "Prevention" - }, - "customRules": { - "rules": [ - { - "name": "Rule1", - "priority": 1, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ], - "transforms": [] - } - ], - "action": "Block" - }, + "location": "WestUs", + "properties": { + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "action": "Block", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ] + } + ] + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" + "variableName": "RemoteAddr", + "selector": null } - ] + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] } + ], + "action": "Block" } + ] + } + } + }, + "201": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" }, - "201": { - "body": { - "name": "Policy1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", - "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "location": "WestUs", - "properties": { - "resourceState": "Enabled", - "provisioningState": "Succeeded", - "policySettings": { - "enabledState": "Enabled", - "mode": "Prevention" - }, - "customRules": { - "rules": [ + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ { - "name": "Rule1", - "priority": 1, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ] - } - ], - "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" + "variableName": "RemoteAddr", + "selector": null } - ] + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] } + ], + "action": "Block" } + ] } + } } + } } \ No newline at end of file diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafPolicyGet.json index 8868a52434c4..ee70d972fc47 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/WafPolicyGet.json @@ -23,67 +23,65 @@ "enabledState": "Enabled", "mode": "Prevention" }, - "customRules": { - "rules": [ - { + "customRules": [ + { "name": "Rule1", "priority": 1, "ruleType": "MatchRule", "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24", - "10.0.0.0/24" - ], - "transforms": [] - } + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } ], "action": "Block" - }, - { - "name": "Rule2", - "priority": 2, - "ruleType": "MatchRule", - "matchConditions": [ - { - "matchVariables": [ - { - "name": "RemoteAddr", - "selector": null - } - ], - "operator": "IPMatch", - "negateCondition": false, - "matchValues": [ - "192.168.1.0/24" - ] - }, - { - "matchVariables": [ - { - "name": "RequestHeader", - "selector": "UserAgent" - } - ], - "operator": "Contains", - "negateCondition": false, - "matchValues": [ - "Windows" - ] - } - ], - "action": "Block" - } - ] - } + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] } } }