Table of Contents

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

Id string

The unique identifier of the DNS record to replace.

Type DnsRecordType

The DNS record type.

Name string

The record name (hostname).

Content string

The record content.

Ttl int

Time to live in seconds.

Proxied bool?

Optional: whether to proxy the record.

Comment string

Optional: comment describing the record.

Properties

Comment

Optional: comment describing the record.

[JsonPropertyName("comment")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Comment { get; init; }

Property Value

string

Content

The record content.

[JsonPropertyName("content")]
public string Content { get; init; }

Property Value

string

Id

The unique identifier of the DNS record to replace.

[JsonPropertyName("id")]
public string Id { get; init; }

Property Value

string

Name

The record name (hostname).

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

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

int

Type

The DNS record type.

[JsonPropertyName("type")]
public DnsRecordType Type { get; init; }

Property Value

DnsRecordType