Table of Contents

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

Id string

The ID of the rule to override.

Action ManagedWafOverrideAction?

The new action to take (e.g., Log, Block).

Enabled bool?

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

ManagedWafOverrideAction?

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; }

Property Value

string