Healthcheck
Example Usage
resources:
exampleHealthcheck:
type: cloudflare:Healthcheck
name: example_healthcheck
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
address: www.example.com
name: server-1
checkRegions:
- WNAM
- ENAM
consecutiveFails: 0
consecutiveSuccesses: 0
description: Health check for www.example.com
httpConfig:
allow_insecure: true
expected_body: success
expected_codes:
- 2xx
- '302'
follow_redirects: true
header:
host:
- example.com
x-App-ID:
- abc123
method: GET
path: /health
port: 0
interval: 0
retries: 0
suspended: true
tcpConfig:
method: connection_established
port: 0
timeout: 0
type: HTTPS
Content copied to clipboard
Import
$ pulumi import cloudflare:index/healthcheck:Healthcheck example '<zone_id>/<healthcheck_id>'
Content copied to clipboard
Properties
Link copied to clipboard
A list of regions from which to run health checks. Null means Cloudflare will pick a default region.
Link copied to clipboard
The number of consecutive fails required from a health check before changing the health to unhealthy.
Link copied to clipboard
The number of consecutive successes required from a health check before changing the health to healthy.
Link copied to clipboard
A human-readable description of the health check.
Link copied to clipboard
The current failure reason if status is unhealthy.
Link copied to clipboard
Parameters specific to an HTTP or HTTPS health check.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Parameters specific to TCP health check.