Show / Hide Table of Contents

Class ProtectionRule

The protection rule settings. Protection rules can allow, block, or trigger an alert if a request meets the parameters of an applied rule.

Inheritance
object
ProtectionRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.WaasService.Models
Assembly: OCI.DotNetSDK.Waas.dll
Syntax
public class ProtectionRule

Properties

Action

Declaration
[JsonProperty(PropertyName = "action")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ProtectionRule.ActionEnum? Action { get; set; }
Property Value
Type Description
ProtectionRule.ActionEnum?

The action to take when the traffic is detected as malicious. If unspecified, defaults to OFF.

Description

Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type Description
string

The description of the protection rule.

Exclusions

Declaration
[JsonProperty(PropertyName = "exclusions")]
public List<ProtectionRuleExclusion> Exclusions { get; set; }
Property Value
Type Description
List<ProtectionRuleExclusion>

Key

Declaration
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }
Property Value
Type Description
string

The unique key of the protection rule.

Labels

Declaration
[JsonProperty(PropertyName = "labels")]
public List<string> Labels { get; set; }
Property Value
Type Description
List<string>

The list of labels for the protection rule.
Note: Protection rules with a ResponseBody label will have no effect unless isResponseInspected is true.

ModSecurityRuleIds

Declaration
[JsonProperty(PropertyName = "modSecurityRuleIds")]
public List<string> ModSecurityRuleIds { get; set; }
Property Value
Type Description
List<string>

The list of the ModSecurity rule IDs that apply to this protection rule. For more information about ModSecurity's open source WAF rules, see Mod Security's documentation.

Name

Declaration
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type Description
string

The name of the protection rule.

In this article
Back to top