Table of Contents

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

TxtName string

The name of the TXT record for TXT validation.

TxtValue string

The value of the TXT record for TXT validation.

HttpUrl string

The URL to serve the token for HTTP validation.

HttpBody string

The token content for HTTP validation.

Cname string

The CNAME record name for CNAME validation.

CnameTarget string

The 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

string

CnameTarget

The CNAME record target for CNAME validation.

[JsonPropertyName("cname_target")]
public string? CnameTarget { get; init; }

Property Value

string

HttpBody

The token content for HTTP validation.

[JsonPropertyName("http_body")]
public string? HttpBody { get; init; }

Property Value

string

HttpUrl

The URL to serve the token for HTTP validation.

[JsonPropertyName("http_url")]
public string? HttpUrl { get; init; }

Property Value

string

TxtName

The name of the TXT record for TXT validation.

[JsonPropertyName("txt_name")]
public string? TxtName { get; init; }

Property Value

string

TxtValue

The value of the TXT record for TXT validation.

[JsonPropertyName("txt_value")]
public string? TxtValue { get; init; }

Property Value

string