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
DomainstringThe domain name to attach.
EnabledboolWhether the domain should be enabled.
ZoneIdstringThe Zone ID the domain belongs to.
MinTlsstringOptional 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
Enabled
Whether the domain should be enabled.
[JsonPropertyName("enabled")]
public bool Enabled { get; init; }
Property Value
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
ZoneId
The Zone ID the domain belongs to.
[JsonPropertyName("zoneId")]
public string ZoneId { get; init; }