Table of Contents

Class UaRule

Namespace
Cloudflare.NET.Security.Firewall.Models
Assembly
Cloudflare.NET.dll

Represents a User-Agent blocking rule returned by the Cloudflare API.

public record UaRule : IEquatable<UaRule>
Inheritance
UaRule
Implements
Inherited Members

Constructors

UaRule(string, UaRuleMode, UaRuleConfiguration, bool, string?)

Represents a User-Agent blocking rule returned by the Cloudflare API.

public UaRule(string Id, UaRuleMode Mode, UaRuleConfiguration Configuration, bool Paused, string? Description)

Parameters

Id string
Mode UaRuleMode
Configuration UaRuleConfiguration
Paused bool
Description string

Properties

Configuration

[JsonPropertyName("configuration")]
public UaRuleConfiguration Configuration { get; init; }

Property Value

UaRuleConfiguration

Description

[JsonPropertyName("description")]
public string? Description { get; init; }

Property Value

string

Id

[JsonPropertyName("id")]
public string Id { get; init; }

Property Value

string

Mode

[JsonPropertyName("mode")]
public UaRuleMode Mode { get; init; }

Property Value

UaRuleMode

Paused

[JsonPropertyName("paused")]
public bool Paused { get; init; }

Property Value

bool