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
SslSslConfigurationUpdated SSL configuration.
CustomMetadataJsonElement?Updated arbitrary JSON metadata.
CustomOriginServerstringUpdated custom origin server hostname.
CustomOriginSnistringUpdated 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
CustomOriginServer
Updated custom origin server hostname.
[JsonPropertyName("custom_origin_server")]
public string? CustomOriginServer { get; init; }
Property Value
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
Ssl
Updated SSL configuration.
[JsonPropertyName("ssl")]
public SslConfiguration? Ssl { get; init; }