PolicySettings interface

Defines contents of a web application firewall global configuration.

Properties

customBlockResponseBody

If the action type is block, customer can override the response body. The body must be specified in base64 encoding.

customBlockResponseStatusCode

If the action type is block, customer can override the response status code.

fileUploadEnforcement

Whether allow WAF to enforce file upload limits.

fileUploadLimitInMb

Maximum file upload size in Mb for WAF.

jsChallengeCookieExpirationInMins

Web Application Firewall JavaScript Challenge Cookie Expiration time in minutes.

logScrubbing

To scrub sensitive log fields

maxRequestBodySizeInKb

Maximum request body size in Kb for WAF.

mode

The mode of the policy.

requestBodyCheck

Whether to allow WAF to check request Body.

requestBodyEnforcement

Whether allow WAF to enforce request body limits.

requestBodyInspectLimitInKB

Max inspection limit in KB for request body inspection for WAF.

state

The state of the policy.

Property Details

customBlockResponseBody

If the action type is block, customer can override the response body. The body must be specified in base64 encoding.

customBlockResponseBody?: string

Property Value

string

customBlockResponseStatusCode

If the action type is block, customer can override the response status code.

customBlockResponseStatusCode?: number

Property Value

number

fileUploadEnforcement

Whether allow WAF to enforce file upload limits.

fileUploadEnforcement?: boolean

Property Value

boolean

fileUploadLimitInMb

Maximum file upload size in Mb for WAF.

fileUploadLimitInMb?: number

Property Value

number

jsChallengeCookieExpirationInMins

Web Application Firewall JavaScript Challenge Cookie Expiration time in minutes.

jsChallengeCookieExpirationInMins?: number

Property Value

number

logScrubbing

To scrub sensitive log fields

logScrubbing?: PolicySettingsLogScrubbing

Property Value

maxRequestBodySizeInKb

Maximum request body size in Kb for WAF.

maxRequestBodySizeInKb?: number

Property Value

number

mode

The mode of the policy.

mode?: string

Property Value

string

requestBodyCheck

Whether to allow WAF to check request Body.

requestBodyCheck?: boolean

Property Value

boolean

requestBodyEnforcement

Whether allow WAF to enforce request body limits.

requestBodyEnforcement?: boolean

Property Value

boolean

requestBodyInspectLimitInKB

Max inspection limit in KB for request body inspection for WAF.

requestBodyInspectLimitInKB?: number

Property Value

number

state

The state of the policy.

state?: string

Property Value

string