Table of Contents

Class UpdateZoneHoldRequest

Namespace
Cloudflare.NET.Zones.Models
Assembly
Cloudflare.NET.dll

Request to update an existing zone hold. Both fields are optional; update only the fields you want to change.

public record UpdateZoneHoldRequest : IEquatable<UpdateZoneHoldRequest>
Inheritance
UpdateZoneHoldRequest
Implements
Inherited Members

Constructors

UpdateZoneHoldRequest(DateTime?, bool?)

Request to update an existing zone hold. Both fields are optional; update only the fields you want to change.

public UpdateZoneHoldRequest(DateTime? HoldAfter = null, bool? IncludeSubdomains = null)

Parameters

HoldAfter DateTime?

The date-time when the hold should become active. Set to a past date to immediately activate the hold.

IncludeSubdomains bool?

Whether to extend the hold to all subdomains.

Properties

HoldAfter

The date-time when the hold should become active. Set to a past date to immediately activate the hold.

[JsonPropertyName("hold_after")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DateTime? HoldAfter { get; init; }

Property Value

DateTime?

IncludeSubdomains

Whether to extend the hold to all subdomains.

[JsonPropertyName("include_subdomains")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? IncludeSubdomains { get; init; }

Property Value

bool?