Class ValidationRecord
- Namespace
- Cloudflare.NET.Zones.CustomHostnames.Models
- Assembly
- Cloudflare.NET.dll
Represents a Domain Control Validation record returned by the API.
public record ValidationRecord : IEquatable<ValidationRecord>
- Inheritance
-
ValidationRecord
- Implements
- Inherited Members
Remarks
The fields populated depend on the DCV method used:
Constructors
ValidationRecord(string?, string?, string?, string?, string?, string?)
Represents a Domain Control Validation record returned by the API.
public ValidationRecord(string? TxtName = null, string? TxtValue = null, string? HttpUrl = null, string? HttpBody = null, string? Cname = null, string? CnameTarget = null)
Parameters
TxtNamestringThe name of the TXT record for TXT validation.
TxtValuestringThe value of the TXT record for TXT validation.
HttpUrlstringThe URL to serve the token for HTTP validation.
HttpBodystringThe token content for HTTP validation.
CnamestringThe CNAME record name for CNAME validation.
CnameTargetstringThe CNAME record target for CNAME validation.
Remarks
The fields populated depend on the DCV method used:
Properties
Cname
The CNAME record name for CNAME validation.
[JsonPropertyName("cname")]
public string? Cname { get; init; }
Property Value
CnameTarget
The CNAME record target for CNAME validation.
[JsonPropertyName("cname_target")]
public string? CnameTarget { get; init; }
Property Value
HttpBody
The token content for HTTP validation.
[JsonPropertyName("http_body")]
public string? HttpBody { get; init; }
Property Value
HttpUrl
The URL to serve the token for HTTP validation.
[JsonPropertyName("http_url")]
public string? HttpUrl { get; init; }
Property Value
TxtName
The name of the TXT record for TXT validation.
[JsonPropertyName("txt_name")]
public string? TxtName { get; init; }
Property Value
TxtValue
The value of the TXT record for TXT validation.
[JsonPropertyName("txt_value")]
public string? TxtValue { get; init; }