---
title: Custom Hostnames
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Custom Hostnames

#### resource cloudflare\_custom\_hostname

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

hostname: String

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

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20hostname>)

##### optional Expand Collapse

custom\_origin\_server?: String

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

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20custom_origin_server>)

custom\_origin\_sni?: String

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.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20custom_origin_sni>)

custom\_metadata?: Map\[String]

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

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20custom_metadata>)

<details>

<summary>

ssl?: Attributes

SSL properties used when creating the custom hostname.

</summary>

bundle\_method?: 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.

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

certificate\_authority?: String

The Certificate Authority that will issue the certificate.

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

cloudflare\_branding?: Bool

Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20cloudflare_branding">Link to this property</a>

<details>

<summary>

custom\_cert\_bundle?: List\[Attributes]

Array of custom certificate and key pairs (1 or 2 pairs allowed).

</summary>

custom\_certificate: String

If a custom uploaded certificate is used.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20custom_cert_bundle%20%3E%20(attribute)%20custom_certificate">Link to this property</a>

custom\_key: String

The key for a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20custom_cert_bundle%20%3E%20(attribute)%20custom_key">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20custom_cert_bundle">Link to this property</a>

custom\_certificate?: String

If a custom uploaded certificate is used.

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

custom\_csr\_id?: String

The identifier for the Custom CSR that was used.

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

custom\_key?: String

The key for a custom uploaded certificate.

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

method?: String

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

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

<details>

<summary>

settings?: Attributes

SSL specific settings.

</summary>

ciphers?: List\[String]

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

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

early\_hints?: String

Whether or not Early Hints is enabled.

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

http2?: String

Whether or not HTTP2 is enabled.

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

min\_tls\_version?: String

The minimum TLS version supported.

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

tls\_1\_3?: String

Whether or not TLS 1.3 is enabled.

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

</details>

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

type?: String

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

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

wildcard?: Bool

Indicates whether the certificate covers a wildcard.

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

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ssl>)

##### computed Expand Collapse

id: String

Custom hostname identifier tag.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

created\_at: Time

This is the time the hostname was created.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_at>)

status: String

Status of the hostname’s activation.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20status>)

verification\_errors: List\[String]

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

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20verification_errors>)

<details>

<summary>

ownership\_verification: Attributes

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

</summary>

name: String

DNS Name for record.

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

type: String

DNS Record type.

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

value: String

Content for the record.

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

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ownership_verification>)

<details>

<summary>

ownership\_verification\_http: Attributes

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

</summary>

http\_body: String

Token to be served.

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

http\_url: String

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(terraform%20resource)%20%3E%20(attribute)%20ownership_verification_http%20%3E%20(attribute)%20http_url">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20ownership_verification_http>)

### cloudflare\_custom\_hostname

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_custom_hostname" "example_custom_hostname" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  hostname = "app.example.com"
  custom_metadata = {
    foo = "string"
  }
  custom_origin_server = "origin2.example.com"
  custom_origin_sni = "sni.example.com"
  ssl = {
    bundle_method = "ubiquitous"
    certificate_authority = "google"
    cloudflare_branding = false
    custom_cert_bundle = [{
      custom_certificate = <<EOT
      -----BEGIN CERTIFICATE-----
      MIIDdjCCAl6gAwIBAgIJAPnMg0Fs+/B0MA0GCSqGSIb3DQEBCwUAMFsx...
      -----END CERTIFICATE-----

      EOT
      custom_key = <<EOT
      -----BEGIN PRIVATE KEY-----
      MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC/SCB5...
      -----END PRIVATE KEY-----

      EOT
    }]
    custom_certificate = <<EOT
    -----BEGIN CERTIFICATE-----
    MIIFJDCCBAygAwIBAgIQD0ifmj/Yi5NP/2gdUySbfzANBgkqhkiG9w0BAQsFADBN
    MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E...SzSHfXp5lnu/3V08I72q1QNzOCgY1XeL4GKVcj4or6cT6tX6oJH7ePPmfrBfqI/O
    OeH8gMJ+FuwtXYEPa4hBf38M5eU5xWG7
    -----END CERTIFICATE-----

    EOT
    custom_csr_id = "7b163417-1d2b-4c84-a38a-2fb7a0cd7752"
    custom_key = <<EOT
    -----BEGIN RSA PRIVATE KEY-----
    MIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG
    dtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn
    abIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid
    tnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py
    FxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE
    ewooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb
    HBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/
    axiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb
    +ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g
    +j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv
    KLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7
    9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo
    /WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu
    iacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9
    N2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe
    VAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB
    vULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U
    lySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR
    9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7
    mEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX
    dFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe
    PG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS
    fhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W
    qu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T
    lv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi
    -----END RSA PRIVATE KEY-----

    EOT
    method = "http"
    settings = {
      ciphers = ["ECDHE-RSA-AES128-GCM-SHA256", "AES128-SHA"]
      early_hints = "on"
      http2 = "on"
      min_tls_version = "1.2"
      tls_1_3 = "on"
    }
    type = "dv"
    wildcard = false
  }
}
```

#### data cloudflare\_custom\_hostname

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### optional Expand Collapse

custom\_hostname\_id?: String

Custom hostname identifier tag.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20custom_hostname_id>)

<details>

<summary>

filter?: Attributes

</summary>

id?: String

Hostname ID to match against. This ID was generated and returned during the initial custom\_hostname creation. This parameter cannot be used with the ‘hostname’, ‘hostname.exact’, ‘hostname.contain’, or ‘hostname.startsWith’ parameters.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20id">Link to this property</a>

certificate\_authority?: String

Filter by the certificate authority that issued the SSL certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20certificate_authority">Link to this property</a>

custom\_origin\_server?: String

Filter by custom origin server name.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20custom_origin_server">Link to this property</a>

direction?: String

Direction to order hostnames.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20direction">Link to this property</a>

<details>

<summary>

hostname?: Attributes

</summary>

contain?: String

Filters hostnames by a substring match on the hostname value. This parameter cannot be used with the ‘id’, ‘hostname’, ‘hostname.exact’, or ‘hostname.startsWith’ parameters.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20hostname%20%3E%20(attribute)%20contain">Link to this property</a>

exact?: String

Fully qualified domain name to match against. This parameter cannot be used with the ‘id’, ‘hostname’, ‘hostname.contain’, or ‘hostname.startsWith’ parameters.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20hostname%20%3E%20(attribute)%20exact">Link to this property</a>

starts\_with?: String

Filters hostnames by a prefix match on the hostname value. This parameter cannot be used with the ‘id’, ‘hostname’, ‘hostname.exact’, or ‘hostname.contain’ parameters.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20hostname%20%3E%20(attribute)%20starts_with">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20hostname">Link to this property</a>

hostname\_status?: String

Filter by the hostname’s activation status.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20hostname_status">Link to this property</a>

order?: String

Field to order hostnames by.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20order">Link to this property</a>

ssl?: Int64

Whether to filter hostnames based on if they have SSL enabled.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20ssl">Link to this property</a>

ssl\_status?: String

Filter by SSL certificate status.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20ssl_status">Link to this property</a>

wildcard?: Bool

Filter by whether the custom hostname is a wildcard hostname.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20wildcard">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter>)

##### computed Expand Collapse

id: String

Custom hostname identifier tag.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

created\_at: Time

This is the time the hostname was created.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_at>)

custom\_origin\_server: String

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

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20custom_origin_server>)

custom\_origin\_sni: String

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.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20custom_origin_sni>)

hostname: String

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

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20hostname>)

status: String

Status of the hostname’s activation.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20status>)

custom\_metadata: Map\[String]

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

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20custom_metadata>)

verification\_errors: List\[String]

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

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20verification_errors>)

<details>

<summary>

ownership\_verification: Attributes

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

</summary>

name: String

DNS Name for record.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ownership_verification%20%3E%20(attribute)%20name">Link to this property</a>

type: String

DNS Record type.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ownership_verification%20%3E%20(attribute)%20type">Link to this property</a>

value: String

Content for the record.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ownership_verification%20%3E%20(attribute)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ownership_verification>)

<details>

<summary>

ownership\_verification\_http: Attributes

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

</summary>

http\_body: String

Token to be served.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ownership_verification_http%20%3E%20(attribute)%20http_body">Link to this property</a>

http\_url: String

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(terraform%20datasource-single)%20%3E%20(attribute)%20ownership_verification_http%20%3E%20(attribute)%20http_url">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ownership_verification_http>)

<details>

<summary>

ssl: Attributes

</summary>

id: String

Custom hostname SSL identifier tag.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20id">Link to this property</a>

bundle\_method: 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.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20bundle_method">Link to this property</a>

certificate\_authority: String

The Certificate Authority that will issue the certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20certificate_authority">Link to this property</a>

custom\_certificate: String

If a custom uploaded certificate is used.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20custom_certificate">Link to this property</a>

custom\_csr\_id: String

The identifier for the Custom CSR that was used.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20custom_csr_id">Link to this property</a>

custom\_key: String

The key for a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20custom_key">Link to this property</a>

<details>

<summary>

dcv\_delegation\_records: List\[Attributes]

DCV Delegation records for domain validation.

</summary>

cname: String

The CNAME record hostname for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20cname">Link to this property</a>

cname\_target: String

The CNAME record target value for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20cname_target">Link to this property</a>

emails: List\[String]

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20emails">Link to this property</a>

http\_body: String

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(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20http_body">Link to this property</a>

http\_url: String

The url that will be checked during domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20http_url">Link to this property</a>

status: String

Status of the validation record.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20status">Link to this property</a>

txt\_name: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20txt_name">Link to this property</a>

txt\_value: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20txt_value">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records">Link to this property</a>

expires\_on: Time

The time the custom certificate expires on.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20expires_on">Link to this property</a>

hosts: List\[String]

A list of Hostnames on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20hosts">Link to this property</a>

issuer: String

The issuer on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20issuer">Link to this property</a>

method: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20method">Link to this property</a>

serial\_number: String

The serial number on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20serial_number">Link to this property</a>

<details>

<summary>

settings: Attributes

</summary>

ciphers: List\[String]

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20ciphers">Link to this property</a>

early\_hints: String

Whether or not Early Hints is enabled.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20early_hints">Link to this property</a>

http2: String

Whether or not HTTP2 is enabled.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20http2">Link to this property</a>

min\_tls\_version: String

The minimum TLS version supported.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20min_tls_version">Link to this property</a>

tls\_1\_3: String

Whether or not TLS 1.3 is enabled.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20tls_1_3">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings">Link to this property</a>

signature: String

The signature on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20signature">Link to this property</a>

status: String

Status of the hostname’s SSL certificates.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20status">Link to this property</a>

type: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20type">Link to this property</a>

uploaded\_on: Time

The time the custom certificate was uploaded.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20uploaded_on">Link to this property</a>

<details>

<summary>

validation\_errors: List\[Attributes]

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

</summary>

message: String

A domain validation error.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_errors%20%3E%20(attribute)%20message">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_errors">Link to this property</a>

<details>

<summary>

validation\_records: List\[Attributes]

</summary>

cname: String

The CNAME record hostname for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20cname">Link to this property</a>

cname\_target: String

The CNAME record target value for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20cname_target">Link to this property</a>

emails: List\[String]

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20emails">Link to this property</a>

http\_body: String

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(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20http_body">Link to this property</a>

http\_url: String

The url that will be checked during domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20http_url">Link to this property</a>

status: String

Status of the validation record.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20status">Link to this property</a>

txt\_name: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20txt_name">Link to this property</a>

txt\_value: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20txt_value">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records">Link to this property</a>

wildcard: Bool

Indicates whether the certificate covers a wildcard.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20wildcard">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20ssl>)

### cloudflare\_custom\_hostname

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_custom_hostname" "example_custom_hostname" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  custom_hostname_id = "0d89c70d-ad9f-4843-b99f-6cc0252067e9"
}
```

#### data cloudflare\_custom\_hostnames

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20zone_id>)

##### optional Expand Collapse

certificate\_authority?: String

Filter by the certificate authority that issued the SSL certificate.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20certificate_authority>)

custom\_origin\_server?: String

Filter by custom origin server name.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20custom_origin_server>)

direction?: String

Direction to order hostnames.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20direction>)

hostname\_status?: String

Filter by the hostname’s activation status.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20hostname_status>)

id?: String

Hostname ID to match against. This ID was generated and returned during the initial custom\_hostname creation. This parameter cannot be used with the ‘hostname’, ‘hostname.exact’, ‘hostname.contain’, or ‘hostname.startsWith’ parameters.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20id>)

ssl\_status?: String

Filter by SSL certificate status.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20ssl_status>)

wildcard?: Bool

Filter by whether the custom hostname is a wildcard hostname.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20wildcard>)

<details>

<summary>

hostname?: Attributes

</summary>

contain?: String

Filters hostnames by a substring match on the hostname value. This parameter cannot be used with the ‘id’, ‘hostname’, ‘hostname.exact’, or ‘hostname.startsWith’ parameters.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20hostname%20%3E%20(attribute)%20contain">Link to this property</a>

exact?: String

Fully qualified domain name to match against. This parameter cannot be used with the ‘id’, ‘hostname’, ‘hostname.contain’, or ‘hostname.startsWith’ parameters.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20hostname%20%3E%20(attribute)%20exact">Link to this property</a>

starts\_with?: String

Filters hostnames by a prefix match on the hostname value. This parameter cannot be used with the ‘id’, ‘hostname’, ‘hostname.exact’, or ‘hostname.contain’ parameters.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20hostname%20%3E%20(attribute)%20starts_with">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20hostname>)

order?: String

Field to order hostnames by.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20order>)

ssl?: Int64

Whether to filter hostnames based on if they have SSL enabled.

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20ssl>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Custom hostname identifier tag.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

hostname: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20hostname">Link to this property</a>

created\_at: Time

This is the time the hostname was created.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_at">Link to this property</a>

custom\_metadata: Map\[String]

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20custom_metadata">Link to this property</a>

custom\_origin\_server: String

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(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20custom_origin_server">Link to this property</a>

custom\_origin\_sni: String

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(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20custom_origin_sni">Link to this property</a>

<details>

<summary>

ownership\_verification: Attributes

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

</summary>

name: String

DNS Name for record.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ownership_verification%20%3E%20(attribute)%20name">Link to this property</a>

type: String

DNS Record type.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ownership_verification%20%3E%20(attribute)%20type">Link to this property</a>

value: String

Content for the record.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ownership_verification%20%3E%20(attribute)%20value">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ownership_verification">Link to this property</a>

<details>

<summary>

ownership\_verification\_http: Attributes

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

</summary>

http\_body: String

Token to be served.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ownership_verification_http%20%3E%20(attribute)%20http_body">Link to this property</a>

http\_url: String

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(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ownership_verification_http%20%3E%20(attribute)%20http_url">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ownership_verification_http">Link to this property</a>

<details>

<summary>

ssl: Attributes

</summary>

id: String

Custom hostname SSL identifier tag.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20id">Link to this property</a>

bundle\_method: 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.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20bundle_method">Link to this property</a>

certificate\_authority: String

The Certificate Authority that will issue the certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20certificate_authority">Link to this property</a>

custom\_certificate: String

If a custom uploaded certificate is used.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20custom_certificate">Link to this property</a>

custom\_csr\_id: String

The identifier for the Custom CSR that was used.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20custom_csr_id">Link to this property</a>

custom\_key: String

The key for a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20custom_key">Link to this property</a>

<details>

<summary>

dcv\_delegation\_records: List\[Attributes]

DCV Delegation records for domain validation.

</summary>

cname: String

The CNAME record hostname for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20cname">Link to this property</a>

cname\_target: String

The CNAME record target value for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20cname_target">Link to this property</a>

emails: List\[String]

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20emails">Link to this property</a>

http\_body: String

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(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20http_body">Link to this property</a>

http\_url: String

The url that will be checked during domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20http_url">Link to this property</a>

status: String

Status of the validation record.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20status">Link to this property</a>

txt\_name: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20txt_name">Link to this property</a>

txt\_value: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records%20%3E%20(attribute)%20txt_value">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20dcv_delegation_records">Link to this property</a>

expires\_on: Time

The time the custom certificate expires on.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20expires_on">Link to this property</a>

hosts: List\[String]

A list of Hostnames on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20hosts">Link to this property</a>

issuer: String

The issuer on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20issuer">Link to this property</a>

method: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20method">Link to this property</a>

serial\_number: String

The serial number on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20serial_number">Link to this property</a>

<details>

<summary>

settings: Attributes

</summary>

ciphers: List\[String]

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20ciphers">Link to this property</a>

early\_hints: String

Whether or not Early Hints is enabled.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20early_hints">Link to this property</a>

http2: String

Whether or not HTTP2 is enabled.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20http2">Link to this property</a>

min\_tls\_version: String

The minimum TLS version supported.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20min_tls_version">Link to this property</a>

tls\_1\_3: String

Whether or not TLS 1.3 is enabled.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings%20%3E%20(attribute)%20tls_1_3">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20settings">Link to this property</a>

signature: String

The signature on a custom uploaded certificate.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20signature">Link to this property</a>

status: String

Status of the hostname’s SSL certificates.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20status">Link to this property</a>

type: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20type">Link to this property</a>

uploaded\_on: Time

The time the custom certificate was uploaded.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20uploaded_on">Link to this property</a>

<details>

<summary>

validation\_errors: List\[Attributes]

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

</summary>

message: String

A domain validation error.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_errors%20%3E%20(attribute)%20message">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_errors">Link to this property</a>

<details>

<summary>

validation\_records: List\[Attributes]

</summary>

cname: String

The CNAME record hostname for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20cname">Link to this property</a>

cname\_target: String

The CNAME record target value for DCV delegation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20cname_target">Link to this property</a>

emails: List\[String]

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20emails">Link to this property</a>

http\_body: String

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(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20http_body">Link to this property</a>

http\_url: String

The url that will be checked during domain validation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20http_url">Link to this property</a>

status: String

Status of the validation record.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20status">Link to this property</a>

txt\_name: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20txt_name">Link to this property</a>

txt\_value: String

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records%20%3E%20(attribute)%20txt_value">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20validation_records">Link to this property</a>

wildcard: Bool

Indicates whether the certificate covers a wildcard.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl%20%3E%20(attribute)%20wildcard">Link to this property</a>

</details>

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20ssl">Link to this property</a>

status: String

Status of the hostname’s activation.

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20status">Link to this property</a>

verification\_errors: List\[String]

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

<a href="#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20verification_errors">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_custom\_hostnames

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_custom_hostnames" "example_custom_hostnames" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  id = "0d89c70d-ad9f-4843-b99f-6cc0252067e9"
  certificate_authority = "google"
  custom_origin_server = "origin2.example.com"
  direction = "desc"
  hostname = {
    contain = "example.com"
    exact = "app.example.com"
    starts_with = "app"
  }
  hostname_status = "provisioned"
  ssl_status = "active"
  wildcard = false
}
```

#### Custom HostnamesFallback Origin

#### resource cloudflare\_custom\_hostname\_fallback\_origin

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

origin: String

Your origin hostname that requests to your custom hostnames will be sent to.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20origin>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

created\_at: Time

This is the time the fallback origin was created.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_at>)

status: String

Status of the fallback origin’s activation.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20status>)

updated\_at: Time

This is the time the fallback origin was updated.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20updated_at>)

errors: List\[String]

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

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20errors>)

### cloudflare\_custom\_hostname\_fallback\_origin

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_custom_hostname_fallback_origin" "example_custom_hostname_fallback_origin" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  origin = "fallback.example.com"
}
```

#### data cloudflare\_custom\_hostname\_fallback\_origin

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

created\_at: Time

This is the time the fallback origin was created.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_at>)

origin: String

Your origin hostname that requests to your custom hostnames will be sent to.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20origin>)

status: String

Status of the fallback origin’s activation.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20status>)

updated\_at: Time

This is the time the fallback origin was updated.

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20updated_at>)

errors: List\[String]

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

[Link to this property](<#(resource)%20custom_hostnames.fallback_origin%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20errors>)

### cloudflare\_custom\_hostname\_fallback\_origin

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_custom_hostname_fallback_origin" "example_custom_hostname_fallback_origin" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```