ProtectionCapability

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

Bases: object

References an OCI-managed protection capability. Checks if HTTP requests/responses are malicious.

Methods:

__init__(**kwargs)

Initializes a new ProtectionCapability object with values from keyword arguments.

Attributes:

action_name

Gets the action_name of this ProtectionCapability.

collaborative_action_threshold

Gets the collaborative_action_threshold of this ProtectionCapability.

collaborative_weights

Gets the collaborative_weights of this ProtectionCapability.

exclusions

Gets the exclusions of this ProtectionCapability.

key

[Required] Gets the key of this ProtectionCapability.

version

[Required] Gets the version of this ProtectionCapability.

__init__(**kwargs)

Initializes a new ProtectionCapability 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 ProtectionCapability.

  • version (int) – The value to assign to the version property of this ProtectionCapability.

  • exclusions (oci.waf.models.ProtectionCapabilityExclusions) – The value to assign to the exclusions property of this ProtectionCapability.

  • action_name (str) – The value to assign to the action_name property of this ProtectionCapability.

  • collaborative_action_threshold (int) – The value to assign to the collaborative_action_threshold property of this ProtectionCapability.

  • collaborative_weights (list[oci.waf.models.CollaborativeCapabilityWeightOverride]) – The value to assign to the collaborative_weights property of this ProtectionCapability.

property action_name

Gets the action_name of this ProtectionCapability. Override action to take if capability was triggered, defined in Protection Rule for this capability. Only actions of type CHECK are allowed.

Returns

The action_name of this ProtectionCapability.

Return type

str

property collaborative_action_threshold

Gets the collaborative_action_threshold of this ProtectionCapability. The minimum sum of weights of associated collaborative protection capabilities that have triggered which must be reached in order for _this_ capability to trigger. This field is ignored for non-collaborative capabilities.

Returns

The collaborative_action_threshold of this ProtectionCapability.

Return type

int

property collaborative_weights

Gets the collaborative_weights of this ProtectionCapability. Explicit weight values to use for associated collaborative protection capabilities.

Returns

The collaborative_weights of this ProtectionCapability.

Return type

list[oci.waf.models.CollaborativeCapabilityWeightOverride]

property exclusions

Gets the exclusions of this ProtectionCapability.

Returns

The exclusions of this ProtectionCapability.

Return type

oci.waf.models.ProtectionCapabilityExclusions

property key

[Required] Gets the key of this ProtectionCapability. Unique key of referenced protection capability.

Returns

The key of this ProtectionCapability.

Return type

str

property version

[Required] Gets the version of this ProtectionCapability. Version of referenced protection capability.

Returns

The version of this ProtectionCapability.

Return type

int