CustomProtectionRuleSetting¶
-
class
oci.waas.models.
CustomProtectionRuleSetting
(**kwargs)¶ Bases:
object
The OCID and action of a custom protection rule.
Attributes
ACTION_BLOCK
A constant which can be used with the action property of a CustomProtectionRuleSetting. ACTION_DETECT
A constant which can be used with the action property of a CustomProtectionRuleSetting. action
Gets the action of this CustomProtectionRuleSetting. exclusions
Gets the exclusions of this CustomProtectionRuleSetting. id
Gets the id of this CustomProtectionRuleSetting. Methods
__init__
(**kwargs)Initializes a new CustomProtectionRuleSetting object with values from keyword arguments. -
ACTION_BLOCK
= 'BLOCK'¶ A constant which can be used with the action property of a CustomProtectionRuleSetting. This constant has a value of “BLOCK”
-
ACTION_DETECT
= 'DETECT'¶ A constant which can be used with the action property of a CustomProtectionRuleSetting. This constant has a value of “DETECT”
-
__init__
(**kwargs)¶ Initializes a new CustomProtectionRuleSetting object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this CustomProtectionRuleSetting.
- action (str) – The value to assign to the action property of this CustomProtectionRuleSetting. Allowed values for this property are: “DETECT”, “BLOCK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- exclusions (list[oci.waas.models.ProtectionRuleExclusion]) – The value to assign to the exclusions property of this CustomProtectionRuleSetting.
-
action
¶ Gets the action of this CustomProtectionRuleSetting. The action to take when the custom protection rule is triggered. DETECT - Logs the request when the criteria of the custom protection rule are met. BLOCK - Blocks the request when the criteria of the custom protection rule are met.
Allowed values for this property are: “DETECT”, “BLOCK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The action of this CustomProtectionRuleSetting. Return type: str
-
exclusions
¶ Gets the exclusions of this CustomProtectionRuleSetting.
Returns: The exclusions of this CustomProtectionRuleSetting. Return type: list[oci.waas.models.ProtectionRuleExclusion]
-