Class OwnershipVerification
- Namespace
- Cloudflare.NET.Zones.CustomHostnames.Models
- Assembly
- Cloudflare.NET.dll
Represents TXT-based ownership verification information.
public record OwnershipVerification : IEquatable<OwnershipVerification>
- Inheritance
-
OwnershipVerification
- Implements
- Inherited Members
Remarks
To verify ownership, add a TXT record with the specified Name and Value to the custom hostname's DNS.
Constructors
OwnershipVerification(string, string, string)
Represents TXT-based ownership verification information.
public OwnershipVerification(string Type, string Name, string Value)
Parameters
TypestringThe type of verification (typically "txt").
NamestringThe DNS record name for verification (e.g., "_cf-custom-hostname.app.customer.com").
ValuestringThe value to set for the TXT record.
Remarks
To verify ownership, add a TXT record with the specified Name and Value to the custom hostname's DNS.
Properties
Name
The DNS record name for verification (e.g., "_cf-custom-hostname.app.customer.com").
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Type
The type of verification (typically "txt").
[JsonPropertyName("type")]
public string Type { get; init; }
Property Value
Value
The value to set for the TXT record.
[JsonPropertyName("value")]
public string Value { get; init; }