Table of Contents

Class AttachCustomDomainRequest

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

Defines the request payload for attaching a custom domain to a bucket.

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

Constructors

AttachCustomDomainRequest(string, bool, string, string?)

Defines the request payload for attaching a custom domain to a bucket.

public AttachCustomDomainRequest(string Domain, bool Enabled, string ZoneId, string? MinTls = null)

Parameters

Domain string

The domain name to attach.

Enabled bool

Whether the domain should be enabled.

ZoneId string

The Zone ID the domain belongs to.

MinTls string

Optional minimum TLS version for the domain (e.g., "1.2", "1.3"). When omitted, the Cloudflare API defaults the domain to TLS 1.0.

Properties

Domain

The domain name to attach.

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

Property Value

string

Enabled

Whether the domain should be enabled.

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

Property Value

bool

MinTls

Optional minimum TLS version for the domain (e.g., "1.2", "1.3"). When omitted, the Cloudflare API defaults the domain to TLS 1.0.

[JsonPropertyName("minTLS")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? MinTls { get; init; }

Property Value

string

ZoneId

The Zone ID the domain belongs to.

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

Property Value

string