ProtectionRuleAction

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

Bases: object

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

Attributes:

ACTION_BLOCK

A constant which can be used with the action property of a ProtectionRuleAction.

ACTION_DETECT

A constant which can be used with the action property of a ProtectionRuleAction.

ACTION_OFF

A constant which can be used with the action property of a ProtectionRuleAction.

action

[Required] Gets the action of this ProtectionRuleAction.

exclusions

Gets the exclusions of this ProtectionRuleAction.

key

[Required] Gets the key of this ProtectionRuleAction.

Methods:

__init__(**kwargs)

Initializes a new ProtectionRuleAction object with values from keyword arguments.

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[oci.waas.models.ProtectionRuleExclusion]) – The value to assign to the exclusions property of this ProtectionRuleAction.

property 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

property 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[oci.waas.models.ProtectionRuleExclusion]

property key

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

Returns

The key of this ProtectionRuleAction.

Return type

str