RequestAccessControl

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

Bases: object

Module that allows inspection of HTTP request properties and to return a defined HTTP response. In this module, rules with the name ‘Default Action’ are not allowed, since this name is reserved for default action logs.

Methods

__init__(**kwargs) Initializes a new RequestAccessControl object with values from keyword arguments.

Attributes

default_action_name [Required] Gets the default_action_name of this RequestAccessControl.
rules Gets the rules of this RequestAccessControl.
__init__(**kwargs)

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

Parameters:
  • default_action_name (str) – The value to assign to the default_action_name property of this RequestAccessControl.
  • rules (list[oci.waf.models.AccessControlRule]) – The value to assign to the rules property of this RequestAccessControl.
default_action_name

[Required] Gets the default_action_name of this RequestAccessControl. References an default Action to take if no AccessControlRule was matched. Allowed action types:

  • ALLOW continues execution of other modules and their rules.
  • RETURN_HTTP_RESPONSE terminates further execution of modules and rules and returns defined HTTP response.
Returns:The default_action_name of this RequestAccessControl.
Return type:str
rules

Gets the rules of this RequestAccessControl. Ordered list of AccessControlRules. Rules are executed in order of appearance in this array.

Returns:The rules of this RequestAccessControl.
Return type:list[oci.waf.models.AccessControlRule]