List Custom Hostnames

GET/zones/{zone_id}/custom_hostnames

List, search, sort, and filter all of your custom hostnames.

Security

<details>

<summary>API Token</summary>

The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

Example:<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

Accepted Permissions (at least one required)

SSL and Certificates Write``SSL and Certificates Read

P ath ParametersExpand Collapse

zone_id: string

Identifier.

maxLength32

Link to this property

Q uery ParametersExpand Collapse

id: optional 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.

maxLength36

minLength36

Link to this property

<details>

<summary>

certificate_authority: optional "google"or "lets_encrypt"or "ssl_com"

Filter by the certificate authority that issued the SSL certificate.

</summary>

One of the following:

"google"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20certificate_authority%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"lets_encrypt"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20certificate_authority%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"ssl_com"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20certificate_authority%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

Link to this property

custom_origin_server: optional string

Filter by custom origin server name.

Link to this property

<details>

<summary>

direction: optional "asc"or "desc"

Direction to order hostnames.

</summary>

One of the following:

"asc"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20direction%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"desc"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20direction%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

Link to this property

<details>

<summary>

hostname: optional object {contain, exact, startsWith }

</summary>

contain: optional 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.

maxLength255

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname%20%3E%20(schema)%20%3E%20(property)%20contain">Link to this property</a>

exact: optional string

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

maxLength255

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname%20%3E%20(schema)%20%3E%20(property)%20exact">Link to this property</a>

startsWith: optional 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.

maxLength255

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname%20%3E%20(schema)%20%3E%20(property)%20startsWith">Link to this property</a>

</details>

Link to this property

<details>

<summary>

hostname_status: optional "active"or "pending"or "active_redeploying"or 13 more

Filter by the hostname’s activation status.

</summary>

One of the following:

"active"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"pending"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"active_redeploying"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"moved"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"pending_deletion"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"deleted"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"pending_blocked"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

"pending_migration"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

"pending_provisioned"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

"test_pending"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

"test_active"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

"test_active_apex"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

"test_blocked"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

"test_failed"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

"provisioned"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

"blocked"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20hostname_status%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

</details>

Link to this property

<details>

<summary>

order: optional "ssl"or "ssl_status"

Field to order hostnames by.

</summary>

One of the following:

"ssl"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"ssl_status"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

Link to this property

page: optional number

Page number of paginated results.

minimum1

Link to this property

per_page: optional number

Number of hostnames per page.

maximum1000

minimum5

Link to this property

<details>

<summary>

ssl: optional 0or 1

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

</summary>

One of the following:

0

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

1

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

Link to this property

<details>

<summary>

ssl_status: optional "initializing"or "pending_validation"or "deleted"or 18 more

Filter by SSL certificate status.

</summary>

One of the following:

"initializing"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"pending_validation"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"deleted"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"pending_issuance"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"pending_deployment"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"pending_deletion"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"pending_expiration"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

"expired"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

"active"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

"initializing_timed_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

"validation_timed_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

"issuance_timed_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

"deployment_timed_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

"deletion_timed_out"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

"pending_cleanup"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

"staging_deployment"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

"staging_active"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2016">Link to this property</a>

"deactivating"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2017">Link to this property</a>

"inactive"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2018">Link to this property</a>

"backup_issued"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2019">Link to this property</a>

"holding_deployment"

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20ssl_status%20%3E%20(schema)%20%3E%20(member)%2020">Link to this property</a>

</details>

Link to this property

wildcard: optional boolean

Filter by whether the custom hostname is a wildcard hostname.

Link to this property

ReturnsExpand Collapse

<details>

<summary>

errors: array of object {code, message, documentation_url, source }

</summary>

code: number

minimum1000

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation_url: optional string

<a href="#(resource)%20custom_hostnames%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>