HealthcheckArgs

data class HealthcheckArgs(val address: Output<String>? = null, val checkRegions: Output<List<String>>? = null, val consecutiveFails: Output<Int>? = null, val consecutiveSuccesses: Output<Int>? = null, val description: Output<String>? = null, val httpConfig: Output<HealthcheckHttpConfigArgs>? = null, val interval: Output<Int>? = null, val name: Output<String>? = null, val retries: Output<Int>? = null, val suspended: Output<Boolean>? = null, val tcpConfig: Output<HealthcheckTcpConfigArgs>? = null, val timeout: Output<Int>? = null, val type: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<HealthcheckArgs>

Example Usage

resources:
exampleHealthcheck:
type: cloudflare:Healthcheck
name: example_healthcheck
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
address: www.example.com
name: server-1
checkRegions:
- WEU
- 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

Import

$ pulumi import cloudflare:index/healthcheck:Healthcheck example '<zone_id>/<healthcheck_id>'

Constructors

Link copied to clipboard
constructor(address: Output<String>? = null, checkRegions: Output<List<String>>? = null, consecutiveFails: Output<Int>? = null, consecutiveSuccesses: Output<Int>? = null, description: Output<String>? = null, httpConfig: Output<HealthcheckHttpConfigArgs>? = null, interval: Output<Int>? = null, name: Output<String>? = null, retries: Output<Int>? = null, suspended: Output<Boolean>? = null, tcpConfig: Output<HealthcheckTcpConfigArgs>? = null, timeout: Output<Int>? = null, type: Output<String>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard
val address: Output<String>? = null

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

Link copied to clipboard
val checkRegions: Output<List<String>>? = null

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

Link copied to clipboard
val consecutiveFails: Output<Int>? = null

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

Link copied to clipboard
val consecutiveSuccesses: Output<Int>? = null

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

Link copied to clipboard
val description: Output<String>? = null

A human-readable description of the health check.

Link copied to clipboard

Parameters specific to an HTTP or HTTPS health check.

Link copied to clipboard
val interval: Output<Int>? = null

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.

Link copied to clipboard
val name: Output<String>? = null

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

Link copied to clipboard
val retries: Output<Int>? = null

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

Link copied to clipboard
val suspended: Output<Boolean>? = null

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

Link copied to clipboard
val tcpConfig: Output<HealthcheckTcpConfigArgs>? = null

Parameters specific to TCP health check.

Link copied to clipboard
val timeout: Output<Int>? = null

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

Link copied to clipboard
val type: Output<String>? = null

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

Link copied to clipboard
val zoneId: Output<String>? = null

Identifier

Functions

Link copied to clipboard
open override fun toJava(): HealthcheckArgs