---
title: Custom Hostnames
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Custom Hostnames

##### [List Custom Hostnames](https://developers.cloudflare.com/api/go/resources/custom_hostnames/methods/list)

client.CustomHostnames.List(ctx, params) (\*V4PagePaginationArray\[[CustomHostnameListResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20CustomHostnameListResponse%20%3E%20(schema)>)], error)

GET/zones/{zone\_id}/custom\_hostnames

##### [Custom Hostname Details](https://developers.cloudflare.com/api/go/resources/custom_hostnames/methods/get)

client.CustomHostnames.Get(ctx, customHostnameID, query) (\*[CustomHostnameGetResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20CustomHostnameGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/custom\_hostnames/{custom\_hostname\_id}

##### [Create Custom Hostname](https://developers.cloudflare.com/api/go/resources/custom_hostnames/methods/create)

client.CustomHostnames.New(ctx, params) (\*[CustomHostnameNewResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20CustomHostnameNewResponse%20%3E%20(schema)>), error)

POST/zones/{zone\_id}/custom\_hostnames

##### [Edit Custom Hostname](https://developers.cloudflare.com/api/go/resources/custom_hostnames/methods/edit)

client.CustomHostnames.Edit(ctx, customHostnameID, params) (\*[CustomHostnameEditResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20CustomHostnameEditResponse%20%3E%20(schema)>), error)

PATCH/zones/{zone\_id}/custom\_hostnames/{custom\_hostname\_id}

##### [Delete Custom Hostname (and any issued SSL certificates)](https://developers.cloudflare.com/api/go/resources/custom_hostnames/methods/delete)

client.CustomHostnames.Delete(ctx, customHostnameID, body) (\*[CustomHostnameDeleteResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20CustomHostnameDeleteResponse%20%3E%20(schema)>), error)

DELETE/zones/{zone\_id}/custom\_hostnames/{custom\_hostname\_id}

##### ModelsExpand Collapse

<details>

<summary>

type BundleMethod string

A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.

</summary>

One of the following:

const BundleMethodUbiquitous <a href="https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20bundle_method%20%3E%20(schema)">BundleMethod</a> = "ubiquitous"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20bundle_method%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const BundleMethodOptimal <a href="https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20bundle_method%20%3E%20(schema)">BundleMethod</a> = "optimal"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20bundle_method%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const BundleMethodForce <a href="https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20bundle_method%20%3E%20(schema)">BundleMethod</a> = "force"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20bundle_method%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(model)%20bundle_method%20%3E%20(schema)>)

<details>

<summary>

type CustomHostname struct{…}

</summary>

ID string

Custom hostname identifier tag.

maxLength36

minLength36

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Hostname string

The custom hostname that will point to your hostname via CNAME.

maxLength255

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20hostname">Link to this property</a>

CreatedAt TimeOptional

This is the time the hostname was created.

formatdate-time

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

CustomMetadata map\[string, string]Optional

Unique key/value metadata for this hostname. These are per-hostname (customer) settings.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20custom_metadata">Link to this property</a>

CustomOriginServer stringOptional

a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20custom_origin_server">Link to this property</a>

CustomOriginSNI stringOptional

A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ‘:request\_host\_header:’ which will cause the host header in the request to be used as SNI. Not configurable with default/fallback origin server.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20custom_origin_sni">Link to this property</a>

<details>

<summary>

OwnershipVerification CustomHostnameOwnershipVerificationOptional

This is a record which can be placed to activate a hostname.

</summary>

Name stringOptional

DNS Name for record.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ownership_verification%20%3E%20(property)%20name">Link to this property</a>

Type CustomHostnameOwnershipVerificationTypeOptional

DNS Record type.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ownership_verification%20%3E%20(property)%20type">Link to this property</a>

Value stringOptional

Content for the record.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ownership_verification%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ownership_verification">Link to this property</a>

<details>

<summary>

OwnershipVerificationHTTP CustomHostnameOwnershipVerificationHTTPOptional

This presents the token to be served by the given http url to activate a hostname.

</summary>

HTTPBody stringOptional

Token to be served.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ownership_verification_http%20%3E%20(property)%20http_body">Link to this property</a>

HTTPURL stringOptional

The HTTP URL that will be checked during custom hostname verification and where the customer should host the token.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ownership_verification_http%20%3E%20(property)%20http_url">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ownership_verification_http">Link to this property</a>

<details>

<summary>

SSL CustomHostnameSSLOptional

</summary>

ID stringOptional

Custom hostname SSL identifier tag.

maxLength36

minLength36

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20id">Link to this property</a>

BundleMethod <a href="https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20bundle_method%20%3E%20(schema)">BundleMethod</a>Optional

A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20bundle_method">Link to this property</a>

CertificateAuthority <a href="https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20certificate_ca%20%3E%20(schema)">CertificateCA</a>Optional

The Certificate Authority that will issue the certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20certificate_authority">Link to this property</a>

CustomCertificate stringOptional

If a custom uploaded certificate is used.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20custom_certificate">Link to this property</a>

CustomCsrID stringOptional

The identifier for the Custom CSR that was used.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20custom_csr_id">Link to this property</a>

CustomKey stringOptional

The key for a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20custom_key">Link to this property</a>

<details>

<summary>

DCVDelegationRecords \[]CustomHostnameSsldcvDelegationRecordOptional

DCV Delegation records for domain validation.

</summary>

CNAME stringOptional

The CNAME record hostname for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20dcv_delegation_records%20%3E%20(items)%20%3E%20(property)%20cname">Link to this property</a>

CNAMETarget stringOptional

The CNAME record target value for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20dcv_delegation_records%20%3E%20(items)%20%3E%20(property)%20cname_target">Link to this property</a>

Emails \[]stringOptional

The set of email addresses that the certificate authority (CA) will use to complete domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20dcv_delegation_records%20%3E%20(items)%20%3E%20(property)%20emails">Link to this property</a>

HTTPBody stringOptional

The content that the certificate authority (CA) will expect to find at the http\_url during the domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20dcv_delegation_records%20%3E%20(items)%20%3E%20(property)%20http_body">Link to this property</a>

HTTPURL stringOptional

The url that will be checked during domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20dcv_delegation_records%20%3E%20(items)%20%3E%20(property)%20http_url">Link to this property</a>

Status stringOptional

Status of the validation record.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20dcv_delegation_records%20%3E%20(items)%20%3E%20(property)%20status">Link to this property</a>

TXTName stringOptional

The hostname that the certificate authority (CA) will check for a TXT record during domain validation .

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20dcv_delegation_records%20%3E%20(items)%20%3E%20(property)%20txt_name">Link to this property</a>

TXTValue stringOptional

The TXT record that the certificate authority (CA) will check during domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20dcv_delegation_records%20%3E%20(items)%20%3E%20(property)%20txt_value">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20dcv_delegation_records">Link to this property</a>

ExpiresOn TimeOptional

The time the custom certificate expires on.

formatdate-time

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20expires_on">Link to this property</a>

Hosts \[]stringOptional

A list of Hostnames on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20hosts">Link to this property</a>

Issuer stringOptional

The issuer on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20issuer">Link to this property</a>

Method <a href="https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20dcv_method%20%3E%20(schema)">DCVMethod</a>Optional

Domain control validation (DCV) method used for this hostname.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20method">Link to this property</a>

SerialNumber stringOptional

The serial number on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20serial_number">Link to this property</a>

<details>

<summary>

Settings CustomHostnameSSLSettingsOptional

</summary>

Ciphers \[]stringOptional

An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20ciphers">Link to this property</a>

<details>

<summary>

EarlyHints CustomHostnameSSLSettingsEarlyHintsOptional

Whether or not Early Hints is enabled.

</summary>

One of the following:

const CustomHostnameSSLSettingsEarlyHintsOn CustomHostnameSSLSettingsEarlyHints = "on"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20early_hints%20%3E%20(member)%200">Link to this property</a>

const CustomHostnameSSLSettingsEarlyHintsOff CustomHostnameSSLSettingsEarlyHints = "off"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20early_hints%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20early_hints">Link to this property</a>

<details>

<summary>

HTTP2 CustomHostnameSSLSettingsHTTP2Optional

Whether or not HTTP2 is enabled.

</summary>

One of the following:

const CustomHostnameSSLSettingsHTTP2On CustomHostnameSSLSettingsHTTP2 = "on"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20http2%20%3E%20(member)%200">Link to this property</a>

const CustomHostnameSSLSettingsHTTP2Off CustomHostnameSSLSettingsHTTP2 = "off"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20http2%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20http2">Link to this property</a>

<details>

<summary>

MinTLSVersion CustomHostnameSSLSettingsMinTLSVersionOptional

The minimum TLS version supported.

</summary>

One of the following:

const CustomHostnameSSLSettingsMinTLSVersion1\_0 CustomHostnameSSLSettingsMinTLSVersion = "1.0"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20min_tls_version%20%3E%20(member)%200">Link to this property</a>

const CustomHostnameSSLSettingsMinTLSVersion1\_1 CustomHostnameSSLSettingsMinTLSVersion = "1.1"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20min_tls_version%20%3E%20(member)%201">Link to this property</a>

const CustomHostnameSSLSettingsMinTLSVersion1\_2 CustomHostnameSSLSettingsMinTLSVersion = "1.2"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20min_tls_version%20%3E%20(member)%202">Link to this property</a>

const CustomHostnameSSLSettingsMinTLSVersion1\_3 CustomHostnameSSLSettingsMinTLSVersion = "1.3"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20min_tls_version%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20min_tls_version">Link to this property</a>

<details>

<summary>

TLS1\_3 CustomHostnameSSLSettingsTLS1\_3Optional

Whether or not TLS 1.3 is enabled.

</summary>

One of the following:

const CustomHostnameSSLSettingsTLS1\_3On CustomHostnameSSLSettingsTLS1\_3 = "on"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20tls_1_3%20%3E%20(member)%200">Link to this property</a>

const CustomHostnameSSLSettingsTLS1\_3Off CustomHostnameSSLSettingsTLS1\_3 = "off"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20tls_1_3%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings%20%3E%20(property)%20tls_1_3">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20settings">Link to this property</a>

Signature stringOptional

The signature on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20signature">Link to this property</a>

<details>

<summary>

Status CustomHostnameSSLStatusOptional

Status of the hostname’s SSL certificates.

</summary>

One of the following:

const CustomHostnameSSLStatusInitializing CustomHostnameSSLStatus = "initializing"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const CustomHostnameSSLStatusPendingValidation CustomHostnameSSLStatus = "pending\_validation"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const CustomHostnameSSLStatusDeleted CustomHostnameSSLStatus = "deleted"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const CustomHostnameSSLStatusPendingIssuance CustomHostnameSSLStatus = "pending\_issuance"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const CustomHostnameSSLStatusPendingDeployment CustomHostnameSSLStatus = "pending\_deployment"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const CustomHostnameSSLStatusPendingDeletion CustomHostnameSSLStatus = "pending\_deletion"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

const CustomHostnameSSLStatusPendingExpiration CustomHostnameSSLStatus = "pending\_expiration"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%206">Link to this property</a>

const CustomHostnameSSLStatusExpired CustomHostnameSSLStatus = "expired"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%207">Link to this property</a>

const CustomHostnameSSLStatusActive CustomHostnameSSLStatus = "active"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%208">Link to this property</a>

const CustomHostnameSSLStatusInitializingTimedOut CustomHostnameSSLStatus = "initializing\_timed\_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%209">Link to this property</a>

const CustomHostnameSSLStatusValidationTimedOut CustomHostnameSSLStatus = "validation\_timed\_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2010">Link to this property</a>

const CustomHostnameSSLStatusIssuanceTimedOut CustomHostnameSSLStatus = "issuance\_timed\_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2011">Link to this property</a>

const CustomHostnameSSLStatusDeploymentTimedOut CustomHostnameSSLStatus = "deployment\_timed\_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2012">Link to this property</a>

const CustomHostnameSSLStatusDeletionTimedOut CustomHostnameSSLStatus = "deletion\_timed\_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2013">Link to this property</a>

const CustomHostnameSSLStatusPendingCleanup CustomHostnameSSLStatus = "pending\_cleanup"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2014">Link to this property</a>

const CustomHostnameSSLStatusStagingDeployment CustomHostnameSSLStatus = "staging\_deployment"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2015">Link to this property</a>

const CustomHostnameSSLStatusStagingActive CustomHostnameSSLStatus = "staging\_active"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2016">Link to this property</a>

const CustomHostnameSSLStatusDeactivating CustomHostnameSSLStatus = "deactivating"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2017">Link to this property</a>

const CustomHostnameSSLStatusInactive CustomHostnameSSLStatus = "inactive"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2018">Link to this property</a>

const CustomHostnameSSLStatusBackupIssued CustomHostnameSSLStatus = "backup\_issued"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2019">Link to this property</a>

const CustomHostnameSSLStatusHoldingDeployment CustomHostnameSSLStatus = "holding\_deployment"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status%20%3E%20(member)%2020">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20status">Link to this property</a>

Type <a href="https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20domain_validation_type%20%3E%20(schema)">DomainValidationType</a>Optional

Level of validation to be used for this hostname. Domain validation (dv) must be used.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20type">Link to this property</a>

UploadedOn TimeOptional

The time the custom certificate was uploaded.

formatdate-time

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20uploaded_on">Link to this property</a>

<details>

<summary>

ValidationErrors \[]CustomHostnameSSLValidationErrorOptional

Domain validation errors that have been received by the certificate authority (CA).

</summary>

Message stringOptional

A domain validation error.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_errors">Link to this property</a>

<details>

<summary>

ValidationRecords \[]CustomHostnameSSLValidationRecordOptional

</summary>

CNAME stringOptional

The CNAME record hostname for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_records%20%3E%20(items)%20%3E%20(property)%20cname">Link to this property</a>

CNAMETarget stringOptional

The CNAME record target value for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_records%20%3E%20(items)%20%3E%20(property)%20cname_target">Link to this property</a>

Emails \[]stringOptional

The set of email addresses that the certificate authority (CA) will use to complete domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_records%20%3E%20(items)%20%3E%20(property)%20emails">Link to this property</a>

HTTPBody stringOptional

The content that the certificate authority (CA) will expect to find at the http\_url during the domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_records%20%3E%20(items)%20%3E%20(property)%20http_body">Link to this property</a>

HTTPURL stringOptional

The url that will be checked during domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_records%20%3E%20(items)%20%3E%20(property)%20http_url">Link to this property</a>

Status stringOptional

Status of the validation record.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_records%20%3E%20(items)%20%3E%20(property)%20status">Link to this property</a>

TXTName stringOptional

The hostname that the certificate authority (CA) will check for a TXT record during domain validation .

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_records%20%3E%20(items)%20%3E%20(property)%20txt_name">Link to this property</a>

TXTValue stringOptional

The TXT record that the certificate authority (CA) will check during domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_records%20%3E%20(items)%20%3E%20(property)%20txt_value">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20validation_records">Link to this property</a>

Wildcard boolOptional

Indicates whether the certificate covers a wildcard.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl%20%3E%20(property)%20wildcard">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20ssl">Link to this property</a>

<details>

<summary>

Status CustomHostnameStatusOptional

Status of the hostname’s activation.

</summary>

One of the following:

const CustomHostnameStatusActive CustomHostnameStatus = "active"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const CustomHostnameStatusPending CustomHostnameStatus = "pending"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const CustomHostnameStatusActiveRedeploying CustomHostnameStatus = "active\_redeploying"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const CustomHostnameStatusMoved CustomHostnameStatus = "moved"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const CustomHostnameStatusPendingDeletion CustomHostnameStatus = "pending\_deletion"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const CustomHostnameStatusDeleted CustomHostnameStatus = "deleted"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

const CustomHostnameStatusPendingBlocked CustomHostnameStatus = "pending\_blocked"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%206">Link to this property</a>

const CustomHostnameStatusPendingMigration CustomHostnameStatus = "pending\_migration"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%207">Link to this property</a>

const CustomHostnameStatusPendingProvisioned CustomHostnameStatus = "pending\_provisioned"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%208">Link to this property</a>

const CustomHostnameStatusTestPending CustomHostnameStatus = "test\_pending"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%209">Link to this property</a>

const CustomHostnameStatusTestActive CustomHostnameStatus = "test\_active"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%2010">Link to this property</a>

const CustomHostnameStatusTestActiveApex CustomHostnameStatus = "test\_active\_apex"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%2011">Link to this property</a>

const CustomHostnameStatusTestBlocked CustomHostnameStatus = "test\_blocked"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%2012">Link to this property</a>

const CustomHostnameStatusTestFailed CustomHostnameStatus = "test\_failed"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%2013">Link to this property</a>

const CustomHostnameStatusProvisioned CustomHostnameStatus = "provisioned"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%2014">Link to this property</a>

const CustomHostnameStatusBlocked CustomHostnameStatus = "blocked"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%2015">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

VerificationErrors \[]stringOptional

These are errors that were encountered while trying to activate a hostname.

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)%20%3E%20(property)%20verification_errors">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(model)%20custom_hostname%20%3E%20(schema)>)

<details>

<summary>

type DCVMethod string

Domain control validation (DCV) method used for this hostname.

</summary>

One of the following:

const DCVMethodHTTP <a href="https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20dcv_method%20%3E%20(schema)">DCVMethod</a> = "http"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20dcv_method%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const DCVMethodTXT <a href="https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20dcv_method%20%3E%20(schema)">DCVMethod</a> = "txt"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20dcv_method%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const DCVMethodEmail <a href="https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames%20%3E%20(model)%20dcv_method%20%3E%20(schema)">DCVMethod</a> = "email"

<a href="#(resource)%20custom_hostnames%20%3E%20(model)%20dcv_method%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(model)%20dcv_method%20%3E%20(schema)>)

type DomainValidationType string

Level of validation to be used for this hostname. Domain validation (dv) must be used.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(model)%20domain_validation_type%20%3E%20(schema)>)

#### Custom HostnamesFallback Origin

##### [Get Fallback Origin for Custom Hostnames](https://developers.cloudflare.com/api/go/resources/custom_hostnames/subresources/fallback_origin/methods/get)

client.CustomHostnames.FallbackOrigin.Get(ctx, query) (\*[FallbackOriginGetResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames.fallback_origin%20%3E%20(model)%20FallbackOriginGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/custom\_hostnames/fallback\_origin

##### [Update Fallback Origin for Custom Hostnames](https://developers.cloudflare.com/api/go/resources/custom_hostnames/subresources/fallback_origin/methods/update)

client.CustomHostnames.FallbackOrigin.Update(ctx, params) (\*[FallbackOriginUpdateResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames.fallback_origin%20%3E%20(model)%20FallbackOriginUpdateResponse%20%3E%20(schema)>), error)

PUT/zones/{zone\_id}/custom\_hostnames/fallback\_origin

##### [Delete Fallback Origin for Custom Hostnames](https://developers.cloudflare.com/api/go/resources/custom_hostnames/subresources/fallback_origin/methods/delete)

client.CustomHostnames.FallbackOrigin.Delete(ctx, body) (\*[FallbackOriginDeleteResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames.fallback_origin%20%3E%20(model)%20FallbackOriginDeleteResponse%20%3E%20(schema)>), error)

DELETE/zones/{zone\_id}/custom\_hostnames/fallback\_origin

#### Custom HostnamesCertificate Pack

#### Custom HostnamesCertificate PackCertificates

##### [Replace Custom Certificate and Custom Key In Custom Hostname](https://developers.cloudflare.com/api/go/resources/custom_hostnames/subresources/certificate_pack/subresources/certificates/methods/update)

client.CustomHostnames.CertificatePack.Certificates.Update(ctx, customHostnameID, certificatePackID, certificateID, params) (\*[CertificatePackCertificateUpdateResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames.certificate_pack.certificates%20%3E%20(model)%20CertificatePackCertificateUpdateResponse%20%3E%20(schema)>), error)

PUT/zones/{zone\_id}/custom\_hostnames/{custom\_hostname\_id}/certificate\_pack/{certificate\_pack\_id}/certificates/{certificate\_id}

##### [Delete Single Certificate And Key For Custom Hostname](https://developers.cloudflare.com/api/go/resources/custom_hostnames/subresources/certificate_pack/subresources/certificates/methods/delete)

client.CustomHostnames.CertificatePack.Certificates.Delete(ctx, customHostnameID, certificatePackID, certificateID, body) (\*[CertificatePackCertificateDeleteResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames.certificate_pack.certificates%20%3E%20(model)%20CertificatePackCertificateDeleteResponse%20%3E%20(schema)>), error)

DELETE/zones/{zone\_id}/custom\_hostnames/{custom\_hostname\_id}/certificate\_pack/{certificate\_pack\_id}/certificates/{certificate\_id}

#### Custom HostnamesQuota

##### [Get Custom Hostname Quota](https://developers.cloudflare.com/api/go/resources/custom_hostnames/subresources/quota/methods/get)

client.CustomHostnames.Quota.Get(ctx, query) (\*[QuotaGetResponse](<https://developers.cloudflare.com/api/go/resources/custom_hostnames#(resource)%20custom_hostnames.quota%20%3E%20(model)%20QuotaGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/custom\_hostnames/quota