RequestProtection

class oci.waf.models.RequestProtection(**kwargs)

Bases: object

Module that allows to enable OCI-managed protection capabilities for incoming HTTP requests.

Methods:

__init__(**kwargs)

Initializes a new RequestProtection object with values from keyword arguments.

Attributes:

body_inspection_size_limit_exceeded_action_name

Gets the body_inspection_size_limit_exceeded_action_name of this RequestProtection.

body_inspection_size_limit_in_bytes

Gets the body_inspection_size_limit_in_bytes of this RequestProtection.

rules

Gets the rules of this RequestProtection.

__init__(**kwargs)

Initializes a new RequestProtection object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • rules (list[oci.waf.models.ProtectionRule]) – The value to assign to the rules property of this RequestProtection.

  • body_inspection_size_limit_in_bytes (int) – The value to assign to the body_inspection_size_limit_in_bytes property of this RequestProtection.

  • body_inspection_size_limit_exceeded_action_name (str) – The value to assign to the body_inspection_size_limit_exceeded_action_name property of this RequestProtection.

property body_inspection_size_limit_exceeded_action_name

Gets the body_inspection_size_limit_exceeded_action_name of this RequestProtection. References action by name from actions defined in WebAppFirewallPolicy. Executed if HTTP message body size exceeds limit set in field bodyInspectionSizeLimitInBytes.

If this field is null HTTP message body will inspected up to bodyInspectionSizeLimitInBytes and the rest will not be inspected by Protection Capabilities.

Allowed action types: * RETURN_HTTP_RESPONSE terminates further execution of modules and rules and returns defined HTTP response.

Returns

The body_inspection_size_limit_exceeded_action_name of this RequestProtection.

Return type

str

property body_inspection_size_limit_in_bytes

Gets the body_inspection_size_limit_in_bytes of this RequestProtection. Maximum size of inspected HTTP message body in bytes. Actions to take if this limit is exceeded are defined in bodyInspectionSizeLimitExceededActionName.

Body inspection maximum size allowed is defined with per-tenancy limit: 8192 bytes.

Returns

The body_inspection_size_limit_in_bytes of this RequestProtection.

Return type

int

property rules

Gets the rules of this RequestProtection. Ordered list of ProtectionRules. Rules are executed in order of appearance in this array. ProtectionRules in this array can only use protection Capabilities of REQUEST_PROTECTION_CAPABILITY type.

Returns

The rules of this RequestProtection.

Return type

list[oci.waf.models.ProtectionRule]