Table of Contents

Class CreateUaRuleRequest

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

Defines the request payload for creating a new User-Agent blocking rule.

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

Constructors

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

Defines the request payload for creating a new User-Agent blocking rule.

public CreateUaRuleRequest(UaRuleMode Mode, UaRuleConfiguration Configuration, bool? Paused = false, string? Description = null)

Parameters

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

Mode

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

Property Value

UaRuleMode

Paused

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

Property Value

bool?