-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Get All Policies under Subscription in Version 2022-05-01. (#22393)
* Create WafListPoliciesUnderResourceGroup.json * Update webapplicationfirewall.json * Rename WafListPoliciesUnderResourceGroup.json to WafListPoliciesUnderSubscription.json * Update webapplicationfirewall.json Fixed the LintDiff error - fix https://github.com/Azure/azure-openapi-validator/blob/main/docs/default-error-response-schema.md Fixed the SemanticValidatiion error - fix https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/Semantic-and-Model-Violations-Reference.md#DUPLICATE_OPERATIONID * Update WafPolicyDelete.json Fixed the ModelValidation error - fix of https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/Semantic-and-Model-Violations-Reference.md#LRO_RESPONSE_HEADER * Update webapplicationfirewall.json add typeobject. * Update WafPolicyDelete.json Fix prettier check. * Update webapplicationfirewall.json Prettier fix
- Loading branch information
Showing
3 changed files
with
199 additions
and
1 deletion.
There are no files selected for viewing
133 changes: 133 additions & 0 deletions
133
...anager/Microsoft.Network/stable/2022-05-01/examples/WafListPoliciesUnderSubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"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", | ||
"sku": { | ||
"name": "Classic_AzureFrontDoor" | ||
}, | ||
"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": "1.0", | ||
"exclusions": [ | ||
{ | ||
"matchVariable": "RequestHeaderNames", | ||
"selectorMatchOperator": "Equals", | ||
"selector": "User-Agent" | ||
} | ||
], | ||
"ruleGroupOverrides": [ | ||
{ | ||
"ruleGroupName": "SQLI", | ||
"rules": [ | ||
{ | ||
"ruleId": "942100", | ||
"enabledState": "Enabled", | ||
"action": "Redirect" | ||
}, | ||
{ | ||
"ruleId": "942110", | ||
"enabledState": "Disabled" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"frontendEndpointLinks": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontdoors/fd1/frontendendpoints/fd1-azurefd-net" | ||
} | ||
], | ||
"securityPolicyLinks": [] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters