JsonBody
Inspect the body of the web request as JSON. The body immediately follows the request headers.
This is used to indicate the web request component to inspect, in the FieldToMatch specification.
Use the specifications in this object to indicate which parts of the JSON body to inspect using the rule's inspection criteria. WAF inspects only the parts of the JSON that result from the matches that you indicate.
Example JSON: "JsonBody": { "MatchPattern": { "All": {} }, "MatchScope": "ALL" }
Types
Properties
What WAF should do if it fails to completely parse the JSON body. The options are the following:
The patterns to look for in the JSON body. WAF inspects the results of these pattern matches against the rule inspection criteria.
The parts of the JSON to match against using the MatchPattern
. If you specify ALL
, WAF matches against keys and values.
What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. If the body is larger than the limit, the underlying host service only forwards the contents that are below the limit to WAF for inspection.