Table of Contents

Class UpdateCustomHostnameRequest

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

Represents the request payload for updating an existing custom hostname.

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

Remarks

All properties are optional. Only the properties that are set will be updated. This is a PATCH operation.

Constructors

UpdateCustomHostnameRequest(SslConfiguration?, JsonElement?, string?, string?)

Represents the request payload for updating an existing custom hostname.

public UpdateCustomHostnameRequest(SslConfiguration? Ssl = null, JsonElement? CustomMetadata = null, string? CustomOriginServer = null, string? CustomOriginSni = null)

Parameters

Ssl SslConfiguration

Updated SSL configuration.

CustomMetadata JsonElement?

Updated arbitrary JSON metadata.

CustomOriginServer string

Updated custom origin server hostname.

CustomOriginSni string

Updated SNI value for the origin TLS handshake. Use UseRequestHostHeader to use the request's Host header.

Remarks

All properties are optional. Only the properties that are set will be updated. This is a PATCH operation.

Properties

CustomMetadata

Updated arbitrary JSON metadata.

[JsonPropertyName("custom_metadata")]
public JsonElement? CustomMetadata { get; init; }

Property Value

JsonElement?

CustomOriginServer

Updated custom origin server hostname.

[JsonPropertyName("custom_origin_server")]
public string? CustomOriginServer { get; init; }

Property Value

string

CustomOriginSni

Updated SNI value for the origin TLS handshake. Use UseRequestHostHeader to use the request's Host header.

[JsonPropertyName("custom_origin_sni")]
public string? CustomOriginSni { get; init; }

Property Value

string

Ssl

Updated SSL configuration.

[JsonPropertyName("ssl")]
public SslConfiguration? Ssl { get; init; }

Property Value

SslConfiguration