Show / Hide Table of Contents

Class 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
Inheritance
object
WebAppFirewallPolicyRule
ProtectionRule
Inherited Members
WebAppFirewallPolicyRule.Name
WebAppFirewallPolicyRule.ConditionLanguage
WebAppFirewallPolicyRule.Condition
WebAppFirewallPolicyRule.ActionName
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.WafService.Models
Assembly: OCI.DotNetSDK.Waf.dll
Syntax
public class ProtectionRule : WebAppFirewallPolicyRule

Properties

IsBodyInspectionEnabled

Declaration
[JsonProperty(PropertyName = "isBodyInspectionEnabled")]
public bool? IsBodyInspectionEnabled { get; set; }
Property Value
Type Description
bool?

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.

ProtectionCapabilities

Declaration
[Required(ErrorMessage = "ProtectionCapabilities is required.")]
[JsonProperty(PropertyName = "protectionCapabilities")]
public List<ProtectionCapability> ProtectionCapabilities { get; set; }
Property Value
Type Description
List<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.

Remarks

Required

ProtectionCapabilitySettings

Declaration
[JsonProperty(PropertyName = "protectionCapabilitySettings")]
public ProtectionCapabilitySettings ProtectionCapabilitySettings { get; set; }
Property Value
Type Description
ProtectionCapabilitySettings
In this article
Back to top