Healthchecks
Healthchecks
Methods
List configured health checks.
Fetch a single configured health check.
Create a new health check.
Update a configured health check.
Patch a configured health check.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Health Checks Write
Identifier
Path param: Identifier
Body param: The hostname or IP address of the origin server to run health checks on.
Body param: A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.
Body param: A list of regions from which to run health checks. Null means Cloudflare will pick a default region.
Body param: The number of consecutive fails required from a health check before changing the health to unhealthy.
Body param: The number of consecutive successes required from a health check before changing the health to healthy.
Body param: A human-readable description of the health check.
Body param: Parameters specific to an HTTP or HTTPS health check.
Body param: 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.
Body param: The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.
Body param: If suspended, no health checks are sent to the origin.
Body param: Parameters specific to TCP health check.
Body param: The timeout (in seconds) before marking the health check as failed.
Body param: The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.
Identifier
The hostname or IP address of the origin server to run health checks on.
A list of regions from which to run health checks. Null means Cloudflare will pick a default region.
The number of consecutive fails required from a health check before changing the health to unhealthy.
The number of consecutive successes required from a health check before changing the health to healthy.
A human-readable description of the health check.
The current failure reason if status is unhealthy.
Parameters specific to an HTTP or HTTPS health check.
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 short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.
The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.
The current status of the origin server according to the health check.
If suspended, no health checks are sent to the origin.
Parameters specific to TCP health check.
The timeout (in seconds) before marking the health check as failed.
The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.
Delete a health check.
Domain types
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).
Parameters specific to an HTTP or HTTPS health check.
Parameters specific to TCP health check.
Previews
Healthchecks.Previews
Methods
Fetch a single configured health check preview.
Create a new preview health check.
Delete a health check.