105105 "x-ms-pageable" : {
106106 "nextLinkName" : " nextLink"
107107 }
108- }
108+ }
109109 },
110- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies /{policyName}" : {
110+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies /{policyName}" : {
111111 "get" : {
112112 "tags" : [
113113 " WebApplicationFirewallPolicies"
277277 },
278278 "allOf" : [
279279 {
280- "$ref" : " ./network.json#/definitions/Resource"
280+ "$ref" : " ./network.json#/definitions/Resource"
281281 }
282282 ]
283283 },
288288 "description" : " Describes policySettings for policy" ,
289289 "$ref" : " #/definitions/PolicySettings"
290290 },
291- "policyDetailSettings" : {
292- "description" : " Describes policyDetailSettings for policy" ,
293- "$ref" : " #/definitions/PolicyDetailSettings"
294- },
295291 "customRules" : {
296292 "description" : " Describes custom rules inside the policy" ,
297293 "type" : " array" ,
298294 "items" : {
299295 "$ref" : " #/definitions/WebApplicationFirewallCustomRule"
300296 }
301297 },
302- "managedRules" : {
303- "description" : " Describes managed rules inside the policy" ,
304- "$ref" : " #/definitions/ManagedRuleSets"
305- },
306298 "applicationGateways" : {
307299 "readOnly" : true ,
308300 "type" : " array" ,
383375 }
384376 }
385377 },
386- "PolicyDetailSettings" : {
387- "description" : " Defines contents of a web application firewall global detail configuration" ,
388- "properties" : {
389- "requestBodyCheck" : {
390- "type" : " boolean" ,
391- "description" : " Whether to allow WAF to check request Body."
392- },
393- "maxRequestBodySizeInKb" : {
394- "type" : " integer" ,
395- "format" : " int32" ,
396- "maximum" : 128 ,
397- "exclusiveMaximum" : false ,
398- "minimum" : 8 ,
399- "exclusiveMinimum" : false ,
400- "description" : " Maximum request body size in Kb for WAF."
401- },
402- "fileUploadLimitInMb" : {
403- "type" : " integer" ,
404- "format" : " int32" ,
405- "minimum" : 0 ,
406- "exclusiveMinimum" : false ,
407- "description" : " Maximum file upload size in Mb for WAF."
408- }
409- }
410- },
411378 "WebApplicationFirewallCustomRule" : {
412379 "description" : " Defines contents of a web application rule" ,
413380 "required" : [
565532 }
566533 }
567534 }
568- },
569- "ManagedRuleSets" : {
570- "description" : " Defines ManagedRuleSets - array of managedRuleSet" ,
571- "properties" : {
572- "ruleSets" : {
573- "description" : " List of rules" ,
574- "type" : " array" ,
575- "items" : {
576- "$ref" : " #/definitions/ManagedRuleSet"
577- }
578- }
579- }
580- },
581- "ManagedRuleSet" : {
582- "type" : " object" ,
583- "description" : " Base class for all types of ManagedRuleSet." ,
584- "x-ms-discriminator-value" : " Unknown" ,
585- "properties" : {
586- "ruleSetVersion" : {
587- "description" : " defines version of the rule set" ,
588- "type" : " string"
589- },
590- "ruleSetType" : {
591- "description" : " RuleSetType - AzureManagedRuleSet or OWASP RuleSets." ,
592- "type" : " string"
593- }
594- },
595- "required" : [
596- " ruleSetType"
597- ],
598- "discriminator" : " ruleSetType"
599- },
600- "OWASPRuleSet" : {
601- "type" : " object" ,
602- "description" : " Describes azure managed provider." ,
603- "x-ms-discriminator-value" : " OWASPRuleSet" ,
604- "properties" : {
605- "ruleSetConfiguration" : {
606- "$ref" : " #/definitions/OWASPRuleSetConfiguration" ,
607- "description" : " OWASP rule set configuration."
608- }
609- },
610- "allOf" : [
611- {
612- "$ref" : " #/definitions/ManagedRuleSet"
613- }
614- ]
615- },
616- "OWASPRuleSetConfiguration" : {
617- "properties" : {
618- "disabledRuleGroups" : {
619- "type" : " array" ,
620- "items" : {
621- "$ref" : " #/definitions/OWASPRuleSetDisabledRuleGroup"
622- },
623- "description" : " The disabled rule groups."
624- },
625- "exclusions" : {
626- "type" : " array" ,
627- "items" : {
628- "$ref" : " #/definitions/OWASPRuleSetExclusion"
629- },
630- "description" : " The exclusion list."
631- }
632- },
633- "description" : " OWASP rule set configuration."
634- },
635- "OWASPRuleSetDisabledRuleGroup" : {
636- "properties" : {
637- "ruleGroupName" : {
638- "type" : " string" ,
639- "description" : " The name of the rule group that will be disabled."
640- },
641- "rules" : {
642- "type" : " array" ,
643- "items" : {
644- "type" : " integer" ,
645- "format" : " int32" ,
646- "x-nullable" : false
647- },
648- "description" : " The list of rules that will be disabled. If null, all rules of the rule group will be disabled."
649- }
650- },
651- "required" : [
652- " ruleGroupName"
653- ],
654- "description" : " Allows to disable rules within a rule group or an entire rule group."
655- },
656- "OWASPRuleSetExclusion" : {
657- "properties" : {
658- "matchVariable" : {
659- "type" : " string" ,
660- "description" : " The variable to be excluded."
661- },
662- "selectorMatchOperator" : {
663- "type" : " string" ,
664- "description" : " When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to."
665- },
666- "selector" : {
667- "type" : " string" ,
668- "description" : " When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to."
669- }
670- },
671- "required" : [
672- " matchVariable"
673- ],
674- "description" : " Allow to exclude some variable satisfy the condition for the WAF check"
675535 }
676536 },
677537 "parameters" : {
690550 "description" : " Client API version."
691551 }
692552 }
693- }
553+ }
0 commit comments