Class RuleOverride
- Namespace
- Cloudflare.NET.Security.Rulesets.Models
- Assembly
- Cloudflare.NET.dll
An override for a specific rule within an executed ruleset.
public record RuleOverride : IEquatable<RuleOverride>
- Inheritance
-
RuleOverride
- Implements
- Inherited Members
Constructors
RuleOverride(string, ManagedWafOverrideAction?, bool?)
An override for a specific rule within an executed ruleset.
public RuleOverride(string Id, ManagedWafOverrideAction? Action = null, bool? Enabled = null)
Parameters
IdstringThe ID of the rule to override.
ActionManagedWafOverrideAction?The new action to take (e.g., Log, Block).
Enabledbool?Whether the rule should be enabled.
Properties
Action
The new action to take (e.g., Log, Block).
[JsonPropertyName("action")]
public ManagedWafOverrideAction? Action { get; init; }
Property Value
Enabled
Whether the rule should be enabled.
[JsonPropertyName("enabled")]
public bool? Enabled { get; init; }
Property Value
- bool?
Id
The ID of the rule to override.
[JsonPropertyName("id")]
public string Id { get; init; }