Show / Hide Table of Contents

Class ProtectionRuleAction

A protection rule key and the associated action to apply to that rule.

Inheritance
object
ProtectionRuleAction
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 ProtectionRuleAction

Properties

Action

Declaration
[Required(ErrorMessage = "Action is required.")]
[JsonProperty(PropertyName = "action")]
[JsonConverter(typeof(StringEnumConverter))]
public ProtectionRuleAction.ActionEnum? Action { get; set; }
Property Value
Type Description
ProtectionRuleAction.ActionEnum?

The action to apply to the protection rule. If unspecified, defaults to OFF.

Remarks

Required

Exclusions

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

The types of requests excluded from the protection rule action. If the requests matches the criteria in the exclusions, the protection rule action will not be executed.

Key

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

The unique key of the protection rule.

Remarks

Required

In this article
Back to top