Table of Contents

Class CloudflareApiOptions

Namespace
Cloudflare.NET.Core
Assembly
Cloudflare.NET.dll

Represents the configuration options required for the Cloudflare API client.

public class CloudflareApiOptions
Inheritance
CloudflareApiOptions
Inherited Members

Properties

AccountId

The Cloudflare Account ID. Required for account-level API calls.

public string AccountId { get; set; }

Property Value

string

ApiBaseUrl

The base URL for the Cloudflare REST API. Defaults to the standard v4 endpoint.

public string ApiBaseUrl { get; set; }

Property Value

string

ApiToken

The Cloudflare API token. This is required for authentication.

public string ApiToken { get; set; }

Property Value

string

DefaultTimeout

Gets or sets the default timeout for a single HTTP request attempt. Defaults to 30 seconds. This can be configured in appsettings.json (e.g., "00:00:30").

public TimeSpan DefaultTimeout { get; set; }

Property Value

TimeSpan

GraphQlApiUrl

The URL for the Cloudflare GraphQL API. Defaults to the standard endpoint.

public string GraphQlApiUrl { get; set; }

Property Value

string

RateLimiting

Gets or sets the configuration for automatic rate-limit handling.

public RateLimitingOptions RateLimiting { get; set; }

Property Value

RateLimitingOptions