LoadBalancerMonitor

class LoadBalancerMonitor : KotlinCustomResource

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.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.LoadBalancerMonitor;
import com.pulumi.cloudflare.LoadBalancerMonitorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LoadBalancerMonitor("example", LoadBalancerMonitorArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.description("example tcp load balancer")
.interval(60)
.method("connection_established")
.port(8080)
.retries(5)
.timeout(7)
.type("tcp")
.build());
}
}

Properties

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

The account identifier to target for the resource.

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

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

Link copied to clipboard
val createdOn: Output<String>

The RFC3339 timestamp of when the load balancer monitor was created.

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

Free text description.

Link copied to clipboard
val expectedBody: Output<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. Only valid if type is "http" or "https".

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

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>?

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 id: Output<String>
Link copied to clipboard
val interval: Output<Int>?

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>

The method to use for the health check.

Link copied to clipboard
val modifiedOn: Output<String>

The RFC3339 timestamp of when the load balancer monitor was last modified.

Link copied to clipboard
val path: Output<String>

The endpoint path to health check against.

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

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

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val retries: Output<Int>?

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>?

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

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

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

Link copied to clipboard
val urn: Output<String>