AllowAction

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

Bases: oci.waf.models.action.Action

An object that represents an action which upon matching rule skips all remaining rules in the current module.

Attributes

TYPE_ALLOW str(object=’’) -> str
TYPE_CHECK str(object=’’) -> str
TYPE_RETURN_HTTP_RESPONSE str(object=’’) -> str
name [Required] Gets the name of this Action.
type [Required] Gets the type of this Action.

Methods

__init__(**kwargs) Initializes a new AllowAction object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
TYPE_ALLOW = 'ALLOW'
TYPE_CHECK = 'CHECK'
TYPE_RETURN_HTTP_RESPONSE = 'RETURN_HTTP_RESPONSE'
__init__(**kwargs)

Initializes a new AllowAction object with values from keyword arguments. The default value of the type attribute of this class is ALLOW and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this AllowAction. Allowed values for this property are: “CHECK”, “ALLOW”, “RETURN_HTTP_RESPONSE”
  • name (str) – The value to assign to the name property of this AllowAction.
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

name

[Required] Gets the name of this Action. Action name. Can be used to reference the action.

Returns:The name of this Action.
Return type:str
type

[Required] Gets the type of this Action. * CHECK is a non-terminating action that does not stop the execution of rules in current module,

just emits a log message documenting result of rule execution.
  • ALLOW is a non-terminating action which upon matching rule skips all remaining rules in the current module.
  • RETURN_HTTP_RESPONSE is a terminating action which is executed immediately, returns a defined HTTP response.

Allowed values for this property are: “CHECK”, “ALLOW”, “RETURN_HTTP_RESPONSE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this Action.
Return type:str