Class BatchPutOperation
- Namespace
- Cloudflare.NET.Dns.Models
- Assembly
- Cloudflare.NET.dll
Put operation for batch - includes record ID and all fields for full replacement.
This performs a complete replacement of the record. All required fields must be provided.
public record BatchPutOperation : IEquatable<BatchPutOperation>
- Inheritance
-
BatchPutOperation
- Implements
- Inherited Members
Constructors
BatchPutOperation(string, DnsRecordType, string, string, int, bool?, string?)
Put operation for batch - includes record ID and all fields for full replacement.
This performs a complete replacement of the record. All required fields must be provided.
public BatchPutOperation(string Id, DnsRecordType Type, string Name, string Content, int Ttl = 1, bool? Proxied = null, string? Comment = null)
Parameters
IdstringThe unique identifier of the DNS record to replace.
TypeDnsRecordTypeThe DNS record type.
NamestringThe record name (hostname).
ContentstringThe record content.
TtlintTime to live in seconds.
Proxiedbool?Optional: whether to proxy the record.
CommentstringOptional: comment describing the record.
Properties
Comment
Optional: comment describing the record.
[JsonPropertyName("comment")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Comment { get; init; }
Property Value
Content
The record content.
[JsonPropertyName("content")]
public string Content { get; init; }
Property Value
Id
The unique identifier of the DNS record to replace.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
Name
The record name (hostname).
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Proxied
Optional: whether to proxy the record.
[JsonPropertyName("proxied")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Proxied { get; init; }
Property Value
- bool?
Ttl
Time to live in seconds.
[JsonPropertyName("ttl")]
public int Ttl { get; init; }
Property Value
Type
The DNS record type.
[JsonPropertyName("type")]
public DnsRecordType Type { get; init; }