ProtectionRuleAction

class oci.waas.models.ProtectionRuleAction(**kwargs)

Bases: object

A protection rule key and the associated action to apply to that rule.

ACTION_BLOCK = 'BLOCK'

A constant which can be used with the action property of a ProtectionRuleAction. This constant has a value of "BLOCK"

ACTION_DETECT = 'DETECT'

A constant which can be used with the action property of a ProtectionRuleAction. This constant has a value of "DETECT"

ACTION_OFF = 'OFF'

A constant which can be used with the action property of a ProtectionRuleAction. This constant has a value of "OFF"

__init__(**kwargs)

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

Parameters:
  • key (str) -- The value to assign to the key property of this ProtectionRuleAction.
  • action (str) -- The value to assign to the action property of this ProtectionRuleAction. Allowed values for this property are: "OFF", "DETECT", "BLOCK"
  • exclusions (list[ProtectionRuleExclusion]) -- The value to assign to the exclusions property of this ProtectionRuleAction.
action

[Required] Gets the action of this ProtectionRuleAction. The action to apply to the protection rule. If unspecified, defaults to OFF.

Allowed values for this property are: "OFF", "DETECT", "BLOCK"

Returns:The action of this ProtectionRuleAction.
Return type:str
exclusions

Gets the exclusions of this ProtectionRuleAction. The types of requests excluded from the protection rule action. If the requests matches the criteria in the exclusions, the protection rule action will not be executed.

Returns:The exclusions of this ProtectionRuleAction.
Return type:list[ProtectionRuleExclusion]
key

[Required] Gets the key of this ProtectionRuleAction. The unique key of the protection rule.

Returns:The key of this ProtectionRuleAction.
Return type:str