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