diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-03-01/examples/WafListManagedRuleSets.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-03-01/examples/WafListManagedRuleSets.json index 60d72d77413e..81204161f8e5 100644 --- a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-03-01/examples/WafListManagedRuleSets.json +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-03-01/examples/WafListManagedRuleSets.json @@ -14,7 +14,7 @@ "properties": { "provisioningState": "Succeeded", "ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "preview-1.0", + "ruleSetVersion": "1.0", "ruleGroups": [ { "ruleGroupName": "Group1", @@ -22,11 +22,15 @@ "rules": [ { "ruleId": "GROUP1-0001", - "description": "Generic managed web application firewall rule." + "description": "Generic managed web application firewall rule.", + "defaultState": "Enabled", + "defaultAction": "Block" }, { "ruleId": "GROUP1-0002", - "description": "Generic managed web application firewall rule." + "description": "Generic managed web application firewall rule.", + "defaultState": "Disabled", + "defaultAction": "Block" } ] }, @@ -36,7 +40,9 @@ "rules": [ { "ruleId": "GROUP2-0001", - "description": "Generic managed web application firewall rule." + "description": "Generic managed web application firewall rule.", + "defaultState": "Enabled", + "defaultAction": "Allow" } ] } diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-03-01/webapplicationfirewall.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-03-01/webapplicationfirewall.json index a49a01a2f97a..e40f2d2a4c0a 100644 --- a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-03-01/webapplicationfirewall.json +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-03-01/webapplicationfirewall.json @@ -619,15 +619,7 @@ }, "enabledState": { "description": "Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.", - "type": "string", - "enum": [ - "Disabled", - "Enabled" - ], - "x-ms-enum": { - "name": "ManagedRuleEnabledState", - "modelAsString": true - } + "$ref": "#/definitions/ManagedRuleEnabledState" }, "action": { "description": "Describes the override action to be applied when rule matches.", @@ -726,6 +718,16 @@ "readOnly": true, "type": "string" }, + "defaultState": { + "description": "Describes the default state for the managed rule.", + "readOnly": true, + "$ref": "#/definitions/ManagedRuleEnabledState" + }, + "defaultAction": { + "description": "Describes the default action to be applied when the managed rule matches.", + "readOnly": true, + "$ref": "#/definitions/ActionType" + }, "description": { "description": "Describes the functionality of the managed rule.", "readOnly": true, @@ -747,6 +749,18 @@ "modelAsString": true } }, + "ManagedRuleEnabledState": { + "description": "Describes if the managed rule is in enabled or disabled state.", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "ManagedRuleEnabledState", + "modelAsString": true + } + }, "ErrorResponse": { "description": "Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the error message.", "type": "object",