Class ListAccessRulesFilters
- Namespace
- Cloudflare.NET.Security.Firewall.Models
- Assembly
- Cloudflare.NET.dll
Defines the filtering and pagination options for listing IP Access Rules.
public record ListAccessRulesFilters : IEquatable<ListAccessRulesFilters>
- Inheritance
-
ListAccessRulesFilters
- Implements
- Inherited Members
Constructors
ListAccessRulesFilters(string?, AccessRuleMode?, FilterMatch?, AccessRuleTarget?, string?, int?, int?, AccessRuleOrderField?, ListOrderDirection?)
Defines the filtering and pagination options for listing IP Access Rules.
public ListAccessRulesFilters(string? Notes = null, AccessRuleMode? Mode = null, FilterMatch? Match = null, AccessRuleTarget? ConfigurationTarget = null, string? ConfigurationValue = null, int? Page = null, int? PerPage = null, AccessRuleOrderField? Order = null, ListOrderDirection? Direction = null)
Parameters
NotesstringA case-insensitive substring to match against the rule's notes.
ModeAccessRuleMode?The exact mode to filter by.
MatchFilterMatch?Whether to match all or any of the provided filters. Default is 'all'.
ConfigurationTargetAccessRuleTarget?The target to filter by (e.g., ip, country).
ConfigurationValuestringThe value for the target to filter by.
Pageint?The page number of the result set.
PerPageint?The number of rules per page.
OrderAccessRuleOrderField?The field to order the results by.
DirectionListOrderDirection?The direction to sort the results.
Properties
ConfigurationTarget
The target to filter by (e.g., ip, country).
public AccessRuleTarget? ConfigurationTarget { get; init; }
Property Value
ConfigurationValue
The value for the target to filter by.
public string? ConfigurationValue { get; init; }
Property Value
Direction
The direction to sort the results.
public ListOrderDirection? Direction { get; init; }
Property Value
Match
Whether to match all or any of the provided filters. Default is 'all'.
public FilterMatch? Match { get; init; }
Property Value
Mode
The exact mode to filter by.
public AccessRuleMode? Mode { get; init; }
Property Value
Notes
A case-insensitive substring to match against the rule's notes.
public string? Notes { get; init; }
Property Value
Order
The field to order the results by.
public AccessRuleOrderField? Order { get; init; }
Property Value
Page
The page number of the result set.
public int? Page { get; init; }
Property Value
- int?
PerPage
The number of rules per page.
public int? PerPage { get; init; }
Property Value
- int?