Table of Contents

Namespace Cloudflare.NET.Security.Firewall.Models

Classes

AccessRule

Represents a single IP Access Rule.

AccessRuleConfiguration

Represents the abstract configuration for an access rule, defining what to match against.

AccessRuleConfigurationConverter

Custom JSON converter for deserializing the polymorphic AccessRuleConfiguration.

AsnConfiguration

An access rule configuration that targets an Autonomous System Number (ASN).

CidrConfiguration

An access rule configuration that targets an IP range in CIDR notation.

CountryConfiguration

An access rule configuration that targets a two-letter country code.

CreateAccessRuleRequest

Defines the request payload for creating a new IP Access Rule.

CreateLockdownRequest

Defines the request payload for creating a new Zone Lockdown rule.

CreateUaRuleRequest

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

GenericConfiguration

A generic access rule configuration for unknown or future target types.

IpConfiguration

An access rule configuration that targets a single IPv4 or IPv6 address.

ListAccessRulesFilters

Defines the filtering and pagination options for listing IP Access Rules.

ListLockdownFilters

Defines the pagination options for listing Zone Lockdown rules.

ListUaRulesFilters

Defines the pagination options for listing User-Agent Blocking rules.

Lockdown

Represents a Zone Lockdown rule returned by the Cloudflare API.

LockdownConfiguration

Represents a single IP configuration within a Zone Lockdown rule.

Scope

Represents the scope of an access rule.

UaRule

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

UaRuleConfiguration

Represents the configuration for a User-Agent blocking rule.

UpdateAccessRuleRequest

Defines the request payload for updating an existing IP Access Rule. All properties are optional.

UpdateLockdownRequest

Defines the request payload for updating a Zone Lockdown rule.

UpdateUaRuleRequest

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

Structs

AccessRuleMode

Represents the action to take for an IP Access Rule.

Access rule modes define the behavior when a request matches the rule's configuration. Options range from blocking to allowing, with various challenge types in between.

AccessRuleTarget

Represents the target type for an IP Access Rule's configuration.

Access rule targets define what type of network entity the rule applies to, such as a single IP address, IP range, ASN, or country.

LockdownTarget

Represents the target type for a Zone Lockdown rule's configuration.

Zone Lockdown targets define what type of IP entity the rule applies to, such as a single IP address or IP range.

UaRuleMode

Represents the action to take for a User-Agent blocking rule.

User-Agent blocking modes define what happens when a request's User-Agent header matches the rule's configured pattern.

Enums

AccessRuleOrderField

Defines the fields by which IP Access Rules can be ordered.

FilterMatch

Defines how multiple filters are combined when listing resources.

ListOrderDirection

Defines the direction for sorting lists.