Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace ProtectionRule

Rule that represents Request/Response Protection. Only actions of the following types are allowed to be referenced in this rule:

  • CHECK
  • RETURN_HTTP_RESPONSE

Properties

actionName

actionName: string

References action by name from actions defined in WebAppFirewallPolicy.

Optional condition

condition: undefined | string

An expression that determines whether or not the rule action should be executed.

Optional conditionLanguage

conditionLanguage: ConditionLanguage

The language used to parse condition from field {@code condition}. Available languages:

**JMESPATH** an extended JMESPath language syntax.

Optional isBodyInspectionEnabled

isBodyInspectionEnabled: undefined | false | true

Enables/disables body inspection for this protection rule. Only Protection Rules in RequestProtection can have this option enabled. Response body inspection will be available at a later date.

name

name: string

Rule name. Must be unique within the module.

protectionCapabilities

protectionCapabilities: Array<ProtectionCapability>

An ordered list that references OCI-managed protection capabilities. Referenced protection capabilities are not necessarily executed in order of appearance. Their execution order is decided at runtime for improved performance. The array cannot contain entries with the same pair of capability key and version more than once.

Optional protectionCapabilitySettings

protectionCapabilitySettings: model.ProtectionCapabilitySettings

Const type

type: string = "PROTECTION"

Methods

getDeserializedJsonObj

getJsonObj