---
title: Healthchecks
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Healthchecks

##### [List Health Checks](https://developers.cloudflare.com/api/typescript/resources/healthchecks/methods/list)

client.healthchecks.list(HealthcheckListParams {zone\_id, page, per\_page } params, RequestOptionsoptions?): V4PagePaginationArray< [Healthcheck](<https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)>) {id, address, check\_regions, 15 more } >

GET/zones/{zone\_id}/healthchecks

##### [Health Check Details](https://developers.cloudflare.com/api/typescript/resources/healthchecks/methods/get)

client.healthchecks.get(stringhealthcheckID, HealthcheckGetParams {zone\_id } params, RequestOptionsoptions?): [Healthcheck](<https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)>) {id, address, check\_regions, 15 more }

GET/zones/{zone\_id}/healthchecks/{healthcheck\_id}

##### [Create Health Check](https://developers.cloudflare.com/api/typescript/resources/healthchecks/methods/create)

client.healthchecks.create(HealthcheckCreateParams {zone\_id, address, name, 11 more } params, RequestOptionsoptions?): [Healthcheck](<https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)>) {id, address, check\_regions, 15 more }

POST/zones/{zone\_id}/healthchecks

##### [Update Health Check](https://developers.cloudflare.com/api/typescript/resources/healthchecks/methods/update)

client.healthchecks.update(stringhealthcheckID, HealthcheckUpdateParams {zone\_id, address, name, 11 more } params, RequestOptionsoptions?): [Healthcheck](<https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)>) {id, address, check\_regions, 15 more }

PUT/zones/{zone\_id}/healthchecks/{healthcheck\_id}

##### [Patch Health Check](https://developers.cloudflare.com/api/typescript/resources/healthchecks/methods/edit)

client.healthchecks.edit(stringhealthcheckID, HealthcheckEditParams {zone\_id, address, name, 11 more } params, RequestOptionsoptions?): [Healthcheck](<https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)>) {id, address, check\_regions, 15 more }

PATCH/zones/{zone\_id}/healthchecks/{healthcheck\_id}

##### [Delete Health Check](https://developers.cloudflare.com/api/typescript/resources/healthchecks/methods/delete)

client.healthchecks.delete(stringhealthcheckID, HealthcheckDeleteParams {zone\_id } params, RequestOptionsoptions?): [HealthcheckDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20healthcheck_delete_response%20%3E%20(schema)>) {id }

DELETE/zones/{zone\_id}/healthchecks/{healthcheck\_id}

##### ModelsExpand Collapse

<details>

<summary>

CheckRegion = "WNAM"| "ENAM"| "WEU"| 11 more

WNAM: Western North America, ENAM: Eastern North America, WEU: Western Europe, EEU: Eastern Europe, NSAM: Northern South America, SSAM: Southern South America, OC: Oceania, ME: Middle East, NAF: North Africa, SAF: South Africa, IN: India, SEAS: South East Asia, NEAS: North East Asia, ALL\_REGIONS: all regions (BUSINESS and ENTERPRISE customers only).

</summary>

One of the following:

"WNAM"

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

"ENAM"

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

"WEU"

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

"EEU"

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

"NSAM"

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

"SSAM"

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

"OC"

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

"ME"

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

"NAF"

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

"SAF"

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

"IN"

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

"SEAS"

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

"NEAS"

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

"ALL\_REGIONS"

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

</details>

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

<details>

<summary>

Healthcheck {id, address, check\_regions, 15 more }

</summary>

id?: string

Identifier

maxLength32

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

address?: string

The hostname or IP address of the origin server to run health checks on.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20address">Link to this property</a>

<details>

<summary>

check\_regions?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a>&gt;| null

A list of regions from which to run health checks. Null means Cloudflare will pick a default region.

</summary>

One of the following:

"WNAM"

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

"ENAM"

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

"WEU"

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

"EEU"

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

"NSAM"

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

"SSAM"

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

"OC"

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

"ME"

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

"NAF"

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

"SAF"

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

"IN"

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

"SEAS"

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

"NEAS"

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

"ALL\_REGIONS"

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

</details>

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20check_regions">Link to this property</a>

consecutive\_fails?: number

The number of consecutive fails required from a health check before changing the health to unhealthy.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20consecutive_fails">Link to this property</a>

consecutive\_successes?: number

The number of consecutive successes required from a health check before changing the health to healthy.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20consecutive_successes">Link to this property</a>

created\_on?: string

formatdate-time

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

description?: string

A human-readable description of the health check.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

failure\_reason?: string

The current failure reason if status is unhealthy.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20failure_reason">Link to this property</a>

http\_config?: <a href="https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20http_configuration%20%3E%20(schema)">HTTPConfiguration</a> {allow\_insecure, expected\_body, expected\_codes, 5 more } | null

Parameters specific to an HTTP or HTTPS health check.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20http_config">Link to this property</a>

interval?: number

The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20interval">Link to this property</a>

modified\_on?: string

formatdate-time

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name?: string

A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.

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

retries?: number

The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20retries">Link to this property</a>

<details>

<summary>

status?: "unknown"| "healthy"| "unhealthy"| "suspended"

The current status of the origin server according to the health check.

</summary>

One of the following:

"unknown"

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

"healthy"

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

"unhealthy"

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

"suspended"

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

</details>

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

suspended?: boolean

If suspended, no health checks are sent to the origin.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20suspended">Link to this property</a>

tcp\_config?: <a href="https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20tcp_configuration%20%3E%20(schema)">TCPConfiguration</a> {method, port } | null

Parameters specific to TCP health check.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20tcp_config">Link to this property</a>

timeout?: number

The timeout (in seconds) before marking the health check as failed.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)%20%3E%20(property)%20timeout">Link to this property</a>

type?: string

The protocol to use for the health check. Currently supported protocols are ‘HTTP’, ‘HTTPS’ and ‘TCP’.

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

</details>

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

<details>

<summary>

HTTPConfiguration {allow\_insecure, expected\_body, expected\_codes, 5 more }

Parameters specific to an HTTP or HTTPS health check.

</summary>

allow\_insecure?: boolean

Do not validate the certificate when the health check uses HTTPS.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20http_configuration%20%3E%20(schema)%20%3E%20(property)%20allow_insecure">Link to this property</a>

expected\_body?: string

A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20http_configuration%20%3E%20(schema)%20%3E%20(property)%20expected_body">Link to this property</a>

expected\_codes?: Array&lt;string&gt;| null

The expected HTTP response codes (e.g. “200”) or code ranges (e.g. “2xx” for all codes starting with 2) of the health check.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20http_configuration%20%3E%20(schema)%20%3E%20(property)%20expected_codes">Link to this property</a>

follow\_redirects?: boolean

Follow redirects if the origin returns a 3xx status code.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20http_configuration%20%3E%20(schema)%20%3E%20(property)%20follow_redirects">Link to this property</a>

header?: Record&lt;string, Array&lt;string&gt;&gt;| null

The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20http_configuration%20%3E%20(schema)%20%3E%20(property)%20header">Link to this property</a>

<details>

<summary>

method?: "GET"| "HEAD"

The HTTP method to use for the health check.

</summary>

One of the following:

"GET"

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

"HEAD"

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

</details>

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

path?: string

The endpoint path to health check against.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20http_configuration%20%3E%20(schema)%20%3E%20(property)%20path">Link to this property</a>

port?: number

Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20http_configuration%20%3E%20(schema)%20%3E%20(property)%20port">Link to this property</a>

</details>

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

<details>

<summary>

QueryHealthcheck {address, name, check\_regions, 10 more }

</summary>

address: string

The hostname or IP address of the origin server to run health checks on.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20address">Link to this property</a>

name: string

A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.

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

<details>

<summary>

check\_regions?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a>&gt;| null

A list of regions from which to run health checks. Null means Cloudflare will pick a default region.

</summary>

One of the following:

"WNAM"

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

"ENAM"

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

"WEU"

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

"EEU"

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

"NSAM"

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

"SSAM"

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

"OC"

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

"ME"

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

"NAF"

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

"SAF"

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

"IN"

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

"SEAS"

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

"NEAS"

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

"ALL\_REGIONS"

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

</details>

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20check_regions">Link to this property</a>

consecutive\_fails?: number

The number of consecutive fails required from a health check before changing the health to unhealthy.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20consecutive_fails">Link to this property</a>

consecutive\_successes?: number

The number of consecutive successes required from a health check before changing the health to healthy.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20consecutive_successes">Link to this property</a>

description?: string

A human-readable description of the health check.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

http\_config?: <a href="https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20http_configuration%20%3E%20(schema)">HTTPConfiguration</a> {allow\_insecure, expected\_body, expected\_codes, 5 more } | null

Parameters specific to an HTTP or HTTPS health check.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20http_config">Link to this property</a>

interval?: number

The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20interval">Link to this property</a>

retries?: number

The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20retries">Link to this property</a>

suspended?: boolean

If suspended, no health checks are sent to the origin.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20suspended">Link to this property</a>

tcp\_config?: <a href="https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20tcp_configuration%20%3E%20(schema)">TCPConfiguration</a> {method, port } | null

Parameters specific to TCP health check.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20tcp_config">Link to this property</a>

timeout?: number

The timeout (in seconds) before marking the health check as failed.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20query_healthcheck%20%3E%20(schema)%20%3E%20(property)%20timeout">Link to this property</a>

type?: string

The protocol to use for the health check. Currently supported protocols are ‘HTTP’, ‘HTTPS’ and ‘TCP’.

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

</details>

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

<details>

<summary>

TCPConfiguration {method, port }

Parameters specific to TCP health check.

</summary>

method?: "connection\_established"

The TCP connection method to use for the health check.

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

port?: number

Port number to connect to for the health check. Defaults to 80.

<a href="#(resource)%20healthchecks%20%3E%20(model)%20tcp_configuration%20%3E%20(schema)%20%3E%20(property)%20port">Link to this property</a>

</details>

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

<details>

<summary>

HealthcheckDeleteResponse {id }

</summary>

id?: string

Identifier

maxLength32

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

</details>

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

#### HealthchecksPreviews

##### [Health Check Preview Details](https://developers.cloudflare.com/api/typescript/resources/healthchecks/subresources/previews/methods/get)

client.healthchecks.previews.get(stringhealthcheckID, PreviewGetParams {zone\_id } params, RequestOptionsoptions?): [Healthcheck](<https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)>) {id, address, check\_regions, 15 more }

GET/zones/{zone\_id}/healthchecks/preview/{healthcheck\_id}

##### [Create Preview Health Check](https://developers.cloudflare.com/api/typescript/resources/healthchecks/subresources/previews/methods/create)

client.healthchecks.previews.create(PreviewCreateParams {zone\_id, address, name, 11 more } params, RequestOptionsoptions?): [Healthcheck](<https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks%20%3E%20(model)%20healthcheck%20%3E%20(schema)>) {id, address, check\_regions, 15 more }

POST/zones/{zone\_id}/healthchecks/preview

##### [Delete Preview Health Check](https://developers.cloudflare.com/api/typescript/resources/healthchecks/subresources/previews/methods/delete)

client.healthchecks.previews.delete(stringhealthcheckID, PreviewDeleteParams {zone\_id } params, RequestOptionsoptions?): [PreviewDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/healthchecks#(resource)%20healthchecks.previews%20%3E%20(model)%20preview_delete_response%20%3E%20(schema)>) {id }

DELETE/zones/{zone\_id}/healthchecks/preview/{healthcheck\_id}

##### ModelsExpand Collapse

<details>

<summary>

PreviewDeleteResponse {id }

</summary>

id?: string

Identifier

maxLength32

<a href="#(resource)%20healthchecks.previews%20%3E%20(model)%20preview_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20healthchecks.previews%20%3E%20(model)%20preview_delete_response%20%3E%20(schema)>)