Table of Contents

Class CustomDomain

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

Represents a custom domain in the list of custom domains for a bucket.

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

Constructors

CustomDomain(string, bool, CustomDomainStatusObject?, string?, string?, string?)

Represents a custom domain in the list of custom domains for a bucket.

public CustomDomain(string Domain, bool Enabled, CustomDomainStatusObject? Status = null, string? MinTls = null, string? ZoneId = null, string? ZoneName = null)

Parameters

Domain string

The custom domain hostname (e.g., "files.example.com").

Enabled bool

Whether the domain is currently enabled.

Status CustomDomainStatusObject

The status of the domain (e.g., "active", "pending").

MinTls string

The minimum TLS version for the domain.

ZoneId string

The Zone ID the domain belongs to.

ZoneName string

The Zone name the domain belongs to.

Properties

Domain

The custom domain hostname (e.g., "files.example.com").

[JsonPropertyName("domain")]
public string Domain { get; init; }

Property Value

string

Enabled

Whether the domain is currently enabled.

[JsonPropertyName("enabled")]
public bool Enabled { get; init; }

Property Value

bool

MinTls

The minimum TLS version for the domain.

[JsonPropertyName("minTLS")]
public string? MinTls { get; init; }

Property Value

string

Status

The status of the domain (e.g., "active", "pending").

[JsonPropertyName("status")]
public CustomDomainStatusObject? Status { get; init; }

Property Value

CustomDomainStatusObject

ZoneId

The Zone ID the domain belongs to.

[JsonPropertyName("zoneId")]
public string? ZoneId { get; init; }

Property Value

string

ZoneName

The Zone name the domain belongs to.

[JsonPropertyName("zoneName")]
public string? ZoneName { get; init; }

Property Value

string