Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getLoadBalancerMonitors
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleLoadBalancerMonitors = cloudflare.getLoadBalancerMonitors({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_load_balancer_monitors = cloudflare.get_load_balancer_monitors(account_id="023e105f4ecef8ad9ca31a8372d0c353")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.LookupLoadBalancerMonitors(ctx, &cloudflare.LookupLoadBalancerMonitorsArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleLoadBalancerMonitors = Cloudflare.GetLoadBalancerMonitors.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetLoadBalancerMonitorsArgs;
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) {
final var exampleLoadBalancerMonitors = CloudflareFunctions.getLoadBalancerMonitors(GetLoadBalancerMonitorsArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleLoadBalancerMonitors:
fn::invoke:
function: cloudflare:getLoadBalancerMonitors
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
Using getLoadBalancerMonitors
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLoadBalancerMonitors(args: GetLoadBalancerMonitorsArgs, opts?: InvokeOptions): Promise<GetLoadBalancerMonitorsResult>
function getLoadBalancerMonitorsOutput(args: GetLoadBalancerMonitorsOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerMonitorsResult>
def get_load_balancer_monitors(account_id: Optional[str] = None,
max_items: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetLoadBalancerMonitorsResult
def get_load_balancer_monitors_output(account_id: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerMonitorsResult]
func LookupLoadBalancerMonitors(ctx *Context, args *LookupLoadBalancerMonitorsArgs, opts ...InvokeOption) (*LookupLoadBalancerMonitorsResult, error)
func LookupLoadBalancerMonitorsOutput(ctx *Context, args *LookupLoadBalancerMonitorsOutputArgs, opts ...InvokeOption) LookupLoadBalancerMonitorsResultOutput
> Note: This function is named LookupLoadBalancerMonitors
in the Go SDK.
public static class GetLoadBalancerMonitors
{
public static Task<GetLoadBalancerMonitorsResult> InvokeAsync(GetLoadBalancerMonitorsArgs args, InvokeOptions? opts = null)
public static Output<GetLoadBalancerMonitorsResult> Invoke(GetLoadBalancerMonitorsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLoadBalancerMonitorsResult> getLoadBalancerMonitors(GetLoadBalancerMonitorsArgs args, InvokeOptions options)
public static Output<GetLoadBalancerMonitorsResult> getLoadBalancerMonitors(GetLoadBalancerMonitorsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getLoadBalancerMonitors:getLoadBalancerMonitors
arguments:
# arguments dictionary
The following arguments are supported:
- account_
id str - Identifier
- max_
items int - Max items to fetch, default: 1000
getLoadBalancerMonitors Result
The following output properties are available:
- Account
Id string - Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Load Balancer Monitors Result> - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- Account
Id string - Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Load Balancer Monitors Result - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- account
Id String - Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Load Balancer Monitors Result> - The items returned by the data source
- max
Items Integer - Max items to fetch, default: 1000
- account
Id string - Identifier
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Load Balancer Monitors Result[] - The items returned by the data source
- max
Items number - Max items to fetch, default: 1000
- account_
id str - Identifier
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Load Balancer Monitors Result] - The items returned by the data source
- max_
items int - Max items to fetch, default: 1000
- account
Id String - Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetLoadBalancerMonitorsResult
- Allow
Insecure bool - Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.
- Consecutive
Down int - To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.
- Consecutive
Up int - To be marked healthy the monitored origin must pass this healthcheck N consecutive times.
- Created
On string - Description string
- Object description.
- Expected
Body 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. This parameter is only valid for HTTP and HTTPS monitors.
- Expected
Codes string - The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.
- Follow
Redirects bool - Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.
- Header
Dictionary<string, Immutable
Array<string>> - 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. This parameter is only valid for HTTP and HTTPS monitors.
- Id string
- Interval 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.
- Method string
- The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.
- Modified
On string - Path string
- The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.
- Port int
- The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
- Probe
Zone string - Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.
- Retries int
- The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.
- Timeout int
- The timeout (in seconds) before marking the health check as failed.
- Type string
- The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'. Available values: "http", "https", "tcp", "udpicmp", "icmpping", "smtp".
- Allow
Insecure bool - Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.
- Consecutive
Down int - To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.
- Consecutive
Up int - To be marked healthy the monitored origin must pass this healthcheck N consecutive times.
- Created
On string - Description string
- Object description.
- Expected
Body 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. This parameter is only valid for HTTP and HTTPS monitors.
- Expected
Codes string - The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.
- Follow
Redirects bool - Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.
- Header map[string][]string
- 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. This parameter is only valid for HTTP and HTTPS monitors.
- Id string
- Interval 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.
- Method string
- The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.
- Modified
On string - Path string
- The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.
- Port int
- The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
- Probe
Zone string - Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.
- Retries int
- The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.
- Timeout int
- The timeout (in seconds) before marking the health check as failed.
- Type string
- The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'. Available values: "http", "https", "tcp", "udpicmp", "icmpping", "smtp".
- allow
Insecure Boolean - Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.
- consecutive
Down Integer - To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.
- consecutive
Up Integer - To be marked healthy the monitored origin must pass this healthcheck N consecutive times.
- created
On String - description String
- Object description.
- expected
Body 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. This parameter is only valid for HTTP and HTTPS monitors.
- expected
Codes String - The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.
- follow
Redirects Boolean - Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.
- header Map<String,List<String>>
- 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. This parameter is only valid for HTTP and HTTPS monitors.
- id String
- interval Integer
- 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.
- method String
- The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.
- modified
On String - path String
- The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.
- port Integer
- The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
- probe
Zone String - Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.
- retries Integer
- The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.
- timeout Integer
- The timeout (in seconds) before marking the health check as failed.
- type String
- The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'. Available values: "http", "https", "tcp", "udpicmp", "icmpping", "smtp".
- allow
Insecure boolean - Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.
- consecutive
Down number - To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.
- consecutive
Up number - To be marked healthy the monitored origin must pass this healthcheck N consecutive times.
- created
On string - description string
- Object description.
- expected
Body 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. This parameter is only valid for HTTP and HTTPS monitors.
- expected
Codes string - The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.
- follow
Redirects boolean - Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.
- header {[key: string]: string[]}
- 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. This parameter is only valid for HTTP and HTTPS monitors.
- id string
- interval number
- 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.
- method string
- The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.
- modified
On string - path string
- The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.
- port number
- The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
- probe
Zone string - Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.
- retries number
- The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.
- timeout number
- The timeout (in seconds) before marking the health check as failed.
- type string
- The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'. Available values: "http", "https", "tcp", "udpicmp", "icmpping", "smtp".
- allow_
insecure bool - Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.
- consecutive_
down int - To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.
- consecutive_
up int - To be marked healthy the monitored origin must pass this healthcheck N consecutive times.
- created_
on str - description str
- Object description.
- expected_
body str - 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. This parameter is only valid for HTTP and HTTPS monitors.
- expected_
codes str - The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.
- follow_
redirects bool - Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.
- header Mapping[str, Sequence[str]]
- 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. This parameter is only valid for HTTP and HTTPS monitors.
- id str
- interval 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.
- method str
- The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.
- modified_
on str - path str
- The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.
- port int
- The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
- probe_
zone str - Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.
- retries int
- The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.
- timeout int
- The timeout (in seconds) before marking the health check as failed.
- type str
- The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'. Available values: "http", "https", "tcp", "udpicmp", "icmpping", "smtp".
- allow
Insecure Boolean - Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.
- consecutive
Down Number - To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.
- consecutive
Up Number - To be marked healthy the monitored origin must pass this healthcheck N consecutive times.
- created
On String - description String
- Object description.
- expected
Body 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. This parameter is only valid for HTTP and HTTPS monitors.
- expected
Codes String - The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.
- follow
Redirects Boolean - Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.
- header Map<List<String>>
- 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. This parameter is only valid for HTTP and HTTPS monitors.
- id String
- interval Number
- 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.
- method String
- The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.
- modified
On String - path String
- The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.
- port Number
- The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
- probe
Zone String - Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.
- retries Number
- The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.
- timeout Number
- The timeout (in seconds) before marking the health check as failed.
- type String
- The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'. Available values: "http", "https", "tcp", "udpicmp", "icmpping", "smtp".
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.