Table of Contents

Class ListR2BucketsFilters

Namespace
Cloudflare.NET.Accounts.Models
Assembly
Cloudflare.NET.dll

Defines the filtering and pagination options for listing R2 Buckets.

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

Constructors

ListR2BucketsFilters(int?, string?, string?, string?, string?, string?)

Defines the filtering and pagination options for listing R2 Buckets.

public ListR2BucketsFilters(int? PerPage = null, string? Cursor = null, string? NameContains = null, string? Order = null, string? Direction = null, string? StartAfter = null)

Parameters

PerPage int?

The number of buckets to return per page (1-1000).

Cursor string

The cursor for the next page of results.

NameContains string

Filter to only return buckets with this phrase in their name.

Order string

The field to order buckets by. Currently only "name" is supported.

Direction string

The direction to order buckets: "asc" (ascending) or "desc" (descending).

StartAfter string

The bucket name to start searching after. Buckets are ordered lexicographically.

Properties

Cursor

The cursor for the next page of results.

[JsonPropertyName("cursor")]
public string? Cursor { get; init; }

Property Value

string

Direction

The direction to order buckets: "asc" (ascending) or "desc" (descending).

[JsonPropertyName("direction")]
public string? Direction { get; init; }

Property Value

string

NameContains

Filter to only return buckets with this phrase in their name.

[JsonPropertyName("name_contains")]
public string? NameContains { get; init; }

Property Value

string

Order

The field to order buckets by. Currently only "name" is supported.

[JsonPropertyName("order")]
public string? Order { get; init; }

Property Value

string

PerPage

The number of buckets to return per page (1-1000).

[JsonPropertyName("per_page")]
public int? PerPage { get; init; }

Property Value

int?

StartAfter

The bucket name to start searching after. Buckets are ordered lexicographically.

[JsonPropertyName("start_after")]
public string? StartAfter { get; init; }

Property Value

string