Interface WebApplicationFirewallPolicy.UpdateStages.WithRequestBody

All Known Subinterfaces:
WebApplicationFirewallPolicy.Update, WebApplicationFirewallPolicy.UpdateStages.WithRequestBodyOrUpdate
Enclosing interface:
WebApplicationFirewallPolicy.UpdateStages

public static interface WebApplicationFirewallPolicy.UpdateStages.WithRequestBody
The stage of a Web Application Firewall Policy update allowing to specify request body configuration.
  • Method Details

    • withRequestBodySizeLimitInKb

      WebApplicationFirewallPolicy.UpdateStages.WithRequestBodyOrUpdate 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 update
    • withFileUploadSizeLimitInMb

      WebApplicationFirewallPolicy.UpdateStages.WithRequestBodyOrUpdate 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
      The default value for file upload limit is 100 MB.
      Parameters:
      limitInMb - max file upload size in MB
      Returns:
      the next stage of the update