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
Inherited Members
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 |