Class ListAccountsFilters
- Namespace
- Cloudflare.NET.Accounts.Models
- Assembly
- Cloudflare.NET.dll
Filtering and pagination options for listing accounts.
All properties are optional. When not specified, API defaults are used.
public record ListAccountsFilters : IEquatable<ListAccountsFilters>
- Inheritance
-
ListAccountsFilters
- Implements
- Inherited Members
Remarks
Pagination defaults: page = 1, per_page = 20
Per page limits: minimum 5, maximum 50
Constructors
ListAccountsFilters(string?, int?, int?, ListOrderDirection?)
Filtering and pagination options for listing accounts.
All properties are optional. When not specified, API defaults are used.
public ListAccountsFilters(string? Name = null, int? Page = null, int? PerPage = null, ListOrderDirection? Direction = null)
Parameters
NamestringFilter accounts by name (partial match). Returns accounts whose name contains this value (case-insensitive).
Pageint?Page number of paginated results. Minimum value is 1. Default is 1 if not specified.
PerPageint?Number of accounts per page. Valid range: 5 to 50. Default is 20 if not specified.
DirectionListOrderDirection?Direction to order results. When specified, results are sorted in the given direction (ascending or descending).
Remarks
Pagination defaults: page = 1, per_page = 20
Per page limits: minimum 5, maximum 50
Properties
Direction
Direction to order results. When specified, results are sorted in the given direction (ascending or descending).
public ListOrderDirection? Direction { get; init; }
Property Value
Name
Filter accounts by name (partial match). Returns accounts whose name contains this value (case-insensitive).
public string? Name { get; init; }
Property Value
Page
Page number of paginated results. Minimum value is 1. Default is 1 if not specified.
public int? Page { get; init; }
Property Value
- int?
PerPage
Number of accounts per page. Valid range: 5 to 50. Default is 20 if not specified.
public int? PerPage { get; init; }
Property Value
- int?