LoadBalancerMonitorArgs

data class LoadBalancerMonitorArgs(val accountId: Output<String>? = null, val allowInsecure: Output<Boolean>? = null, val consecutiveDown: Output<Int>? = null, val consecutiveUp: Output<Int>? = null, val description: Output<String>? = null, val expectedBody: Output<String>? = null, val expectedCodes: Output<String>? = null, val followRedirects: Output<Boolean>? = null, val headers: Output<List<LoadBalancerMonitorHeaderArgs>>? = null, val interval: Output<Int>? = null, val method: Output<String>? = null, val path: Output<String>? = null, val port: Output<Int>? = null, val probeZone: Output<String>? = null, val retries: Output<Int>? = null, val timeout: Output<Int>? = null, val type: Output<String>? = null) : ConvertibleToJava<LoadBalancerMonitorArgs>

If Cloudflare's Load Balancing to load-balance across multiple origin servers or data centers, you configure one of these Monitors to actively check the availability of those servers over HTTP(S) or TCP.

Import

$ pulumi import cloudflare:index/loadBalancerMonitor:LoadBalancerMonitor example <account_id>/<load_balancer_monitor_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, allowInsecure: Output<Boolean>? = null, consecutiveDown: Output<Int>? = null, consecutiveUp: Output<Int>? = null, description: Output<String>? = null, expectedBody: Output<String>? = null, expectedCodes: Output<String>? = null, followRedirects: Output<Boolean>? = null, headers: Output<List<LoadBalancerMonitorHeaderArgs>>? = null, interval: Output<Int>? = null, method: Output<String>? = null, path: Output<String>? = null, port: Output<Int>? = null, probeZone: Output<String>? = null, retries: Output<Int>? = null, timeout: Output<Int>? = null, type: Output<String>? = null)

Properties

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

The account identifier to target for the resource.

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

Do not validate the certificate when monitor use HTTPS. Only valid if type is "http" or "https".

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

To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times. Defaults to 0.

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

To be marked healthy the monitored origin must pass this healthcheck N consecutive times. Defaults to 0.

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

Free text description.

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

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. Only valid if type is "http" or "https".

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

The expected HTTP response code or code range of the health check. Eg 2xx. Only valid and required if type is "http" or "https".

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

Follow redirects if returned by the origin. Only valid if type is "http" or "https".

Link copied to clipboard

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.

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

The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations. Defaults to 60.

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

The method to use for the health check.

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

The endpoint path to health check against.

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

The port number to use for the healthcheck, required when creating a TCP monitor.

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

Assign this monitor to emulate the specified zone while probing. Only valid if type is "http" or "https".

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. Defaults to 2.

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

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

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

The protocol to use for the healthcheck. Available values: http, https, tcp, udp_icmp, icmp_ping, smtp. Defaults to http.

Functions

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