Class CustomHostname
- Namespace
- Cloudflare.NET.Zones.CustomHostnames.Models
- Assembly
- Cloudflare.NET.dll
Represents a custom hostname returned by the Cloudflare API.
public record CustomHostname : IEquatable<CustomHostname>
- Inheritance
-
CustomHostname
- Implements
- Inherited Members
Constructors
CustomHostname(string, string, CustomHostnameStatus, SslResponse, OwnershipVerification?, OwnershipVerificationHttp?, IReadOnlyList<string>?, JsonElement?, string?, string?, DateTimeOffset?)
Represents a custom hostname returned by the Cloudflare API.
public CustomHostname(string Id, string Hostname, CustomHostnameStatus Status, SslResponse Ssl, OwnershipVerification? OwnershipVerification = null, OwnershipVerificationHttp? OwnershipVerificationHttp = null, IReadOnlyList<string>? VerificationErrors = null, JsonElement? CustomMetadata = null, string? CustomOriginServer = null, string? CustomOriginSni = null, DateTimeOffset? CreatedAt = null)
Parameters
IdstringThe unique identifier of the custom hostname.
HostnamestringThe custom hostname (e.g., "app.customer.com").
StatusCustomHostnameStatusThe current status of the custom hostname.
SslSslResponseThe SSL certificate configuration and status.
OwnershipVerificationOwnershipVerificationTXT-based ownership verification information.
OwnershipVerificationHttpOwnershipVerificationHttpHTTP-based ownership verification information.
VerificationErrorsIReadOnlyList<string>Any errors encountered during hostname verification.
CustomMetadataJsonElement?Arbitrary JSON metadata associated with this hostname.
CustomOriginServerstringThe custom origin server hostname for this custom hostname.
CustomOriginSnistringThe SNI value sent to the origin during TLS handshake.
CreatedAtDateTimeOffset?When the custom hostname was created.
Properties
CreatedAt
When the custom hostname was created.
[JsonPropertyName("created_at")]
public DateTimeOffset? CreatedAt { get; init; }
Property Value
CustomMetadata
Arbitrary JSON metadata associated with this hostname.
[JsonPropertyName("custom_metadata")]
public JsonElement? CustomMetadata { get; init; }
Property Value
CustomOriginServer
The custom origin server hostname for this custom hostname.
[JsonPropertyName("custom_origin_server")]
public string? CustomOriginServer { get; init; }
Property Value
CustomOriginSni
The SNI value sent to the origin during TLS handshake.
[JsonPropertyName("custom_origin_sni")]
public string? CustomOriginSni { get; init; }
Property Value
Hostname
The custom hostname (e.g., "app.customer.com").
[JsonPropertyName("hostname")]
public string Hostname { get; init; }
Property Value
Id
The unique identifier of the custom hostname.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
OwnershipVerification
TXT-based ownership verification information.
[JsonPropertyName("ownership_verification")]
public OwnershipVerification? OwnershipVerification { get; init; }
Property Value
OwnershipVerificationHttp
HTTP-based ownership verification information.
[JsonPropertyName("ownership_verification_http")]
public OwnershipVerificationHttp? OwnershipVerificationHttp { get; init; }
Property Value
Ssl
The SSL certificate configuration and status.
[JsonPropertyName("ssl")]
public SslResponse Ssl { get; init; }
Property Value
Status
The current status of the custom hostname.
[JsonPropertyName("status")]
public CustomHostnameStatus Status { get; init; }
Property Value
VerificationErrors
Any errors encountered during hostname verification.
[JsonPropertyName("verification_errors")]
public IReadOnlyList<string>? VerificationErrors { get; init; }