Interface WebApplicationFirewallPolicy.DefinitionStages.WithRequestBody
- All Known Subinterfaces:
WebApplicationFirewallPolicy.Definition,WebApplicationFirewallPolicy.DefinitionStages.WithRequestBodyOrCreate
- Enclosing interface:
WebApplicationFirewallPolicy.DefinitionStages
public static interface WebApplicationFirewallPolicy.DefinitionStages.WithRequestBody
The stage of a Web Application Firewall Policy allowing to specify request body configuration.
-
Method Summary
Modifier and TypeMethodDescriptionwithFileUploadSizeLimitInMb(int limitInMb) Specifies the max file upload size for the Web Application Firewall policy.withRequestBodySizeLimitInKb(int limitInKb) Specifies the max request body size for the Web Application Firewall policy.
-
Method Details
-
withRequestBodySizeLimitInKb
WebApplicationFirewallPolicy.DefinitionStages.WithRequestBodyOrCreate withRequestBodySizeLimitInKb(int limitInKb) Specifies the max request body size for the Web Application Firewall policy. The maximum request body size field is specified in kilobytes and controls overall request size limit excluding any file uploads. This field has a minimum value of 8 KB and a maximum value of 128 KB. The default value for request body size is 128 KB.- Parameters:
limitInKb- max request body size in KB- Returns:
- the next stage of the definition
-
withFileUploadSizeLimitInMb
WebApplicationFirewallPolicy.DefinitionStages.WithRequestBodyOrCreate withFileUploadSizeLimitInMb(int limitInMb) Specifies the max file upload size for the Web Application Firewall policy. The file upload limit field is specified in MB and it governs the maximum allowed file upload size. Only requests with Content-Type of multipart/form-data are considered for file uploads. For content to be considered as a file upload, it has to be a part of a multipart form with a filename header.For all other content types, the request body size limit applies. This field can have a minimum value of 1 MB and the following maximums:- 100 MB for v1 Medium WAF gateways
- 500 MB for v1 Large WAF gateways
- 750 MB for v2 WAF gateways
- Parameters:
limitInMb- max file upload size in MB- Returns:
- the next stage of the definition
-