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
DomainstringThe custom domain hostname (e.g., "files.example.com").
EnabledboolWhether the domain is currently enabled.
StatusCustomDomainStatusObjectThe status of the domain (e.g., "active", "pending").
MinTlsstringThe minimum TLS version for the domain.
ZoneIdstringThe Zone ID the domain belongs to.
ZoneNamestringThe 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
Enabled
Whether the domain is currently enabled.
[JsonPropertyName("enabled")]
public bool Enabled { get; init; }
Property Value
MinTls
The minimum TLS version for the domain.
[JsonPropertyName("minTLS")]
public string? MinTls { get; init; }
Property Value
Status
The status of the domain (e.g., "active", "pending").
[JsonPropertyName("status")]
public CustomDomainStatusObject? Status { get; init; }
Property Value
ZoneId
The Zone ID the domain belongs to.
[JsonPropertyName("zoneId")]
public string? ZoneId { get; init; }
Property Value
ZoneName
The Zone name the domain belongs to.
[JsonPropertyName("zoneName")]
public string? ZoneName { get; init; }