Cloudflare v5.49.1 published on Tuesday, Feb 18, 2025 by Pulumi
cloudflare.getLoadBalancerPools
Explore with Pulumi AI
A datasource to find Load Balancer Pools.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = cloudflare.getLoadBalancerPools({
accountId: "f037e56e89293a057740de681ac9abbe",
filter: {
name: "example-lb-pool",
},
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.get_load_balancer_pools(account_id="f037e56e89293a057740de681ac9abbe",
filter={
"name": "example-lb-pool",
})
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.GetLoadBalancerPools(ctx, &cloudflare.GetLoadBalancerPoolsArgs{
AccountId: "f037e56e89293a057740de681ac9abbe",
Filter: cloudflare.GetLoadBalancerPoolsFilter{
Name: pulumi.StringRef("example-lb-pool"),
},
}, 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 example = Cloudflare.GetLoadBalancerPools.Invoke(new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Filter = new Cloudflare.Inputs.GetLoadBalancerPoolsFilterInputArgs
{
Name = "example-lb-pool",
},
});
});
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.GetLoadBalancerPoolsArgs;
import com.pulumi.cloudflare.inputs.GetLoadBalancerPoolsFilterArgs;
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 example = CloudflareFunctions.getLoadBalancerPools(GetLoadBalancerPoolsArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.filter(GetLoadBalancerPoolsFilterArgs.builder()
.name("example-lb-pool")
.build())
.build());
}
}
variables:
example:
fn::invoke:
function: cloudflare:getLoadBalancerPools
arguments:
accountId: f037e56e89293a057740de681ac9abbe
filter:
name: example-lb-pool
Using getLoadBalancerPools
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 getLoadBalancerPools(args: GetLoadBalancerPoolsArgs, opts?: InvokeOptions): Promise<GetLoadBalancerPoolsResult>
function getLoadBalancerPoolsOutput(args: GetLoadBalancerPoolsOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerPoolsResult>
def get_load_balancer_pools(account_id: Optional[str] = None,
filter: Optional[GetLoadBalancerPoolsFilter] = None,
pools: Optional[Sequence[GetLoadBalancerPoolsPool]] = None,
opts: Optional[InvokeOptions] = None) -> GetLoadBalancerPoolsResult
def get_load_balancer_pools_output(account_id: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[GetLoadBalancerPoolsFilterArgs]] = None,
pools: Optional[pulumi.Input[Sequence[pulumi.Input[GetLoadBalancerPoolsPoolArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerPoolsResult]
func GetLoadBalancerPools(ctx *Context, args *GetLoadBalancerPoolsArgs, opts ...InvokeOption) (*GetLoadBalancerPoolsResult, error)
func GetLoadBalancerPoolsOutput(ctx *Context, args *GetLoadBalancerPoolsOutputArgs, opts ...InvokeOption) GetLoadBalancerPoolsResultOutput
> Note: This function is named GetLoadBalancerPools
in the Go SDK.
public static class GetLoadBalancerPools
{
public static Task<GetLoadBalancerPoolsResult> InvokeAsync(GetLoadBalancerPoolsArgs args, InvokeOptions? opts = null)
public static Output<GetLoadBalancerPoolsResult> Invoke(GetLoadBalancerPoolsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLoadBalancerPoolsResult> getLoadBalancerPools(GetLoadBalancerPoolsArgs args, InvokeOptions options)
public static Output<GetLoadBalancerPoolsResult> getLoadBalancerPools(GetLoadBalancerPoolsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getLoadBalancerPools:getLoadBalancerPools
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id This property is required. string - The account identifier to target for the datasource lookups.
- Filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- Pools
List<Get
Load Balancer Pools Pool> - A list of Load Balancer Pools details.
- Account
Id This property is required. string - The account identifier to target for the datasource lookups.
- Filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- Pools
[]Get
Load Balancer Pools Pool - A list of Load Balancer Pools details.
- account
Id This property is required. String - The account identifier to target for the datasource lookups.
- filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- pools
List<Get
Load Balancer Pools Pool> - A list of Load Balancer Pools details.
- account
Id This property is required. string - The account identifier to target for the datasource lookups.
- filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- pools
Get
Load Balancer Pools Pool[] - A list of Load Balancer Pools details.
- account_
id This property is required. str - The account identifier to target for the datasource lookups.
- filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- pools
Sequence[Get
Load Balancer Pools Pool] - A list of Load Balancer Pools details.
- account
Id This property is required. String - The account identifier to target for the datasource lookups.
- filter Property Map
- One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- pools List<Property Map>
- A list of Load Balancer Pools details.
getLoadBalancerPools Result
The following output properties are available:
- Account
Id string - The account identifier to target for the datasource lookups.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pools
List<Get
Load Balancer Pools Pool> - A list of Load Balancer Pools details.
- Filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- Account
Id string - The account identifier to target for the datasource lookups.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pools
[]Get
Load Balancer Pools Pool - A list of Load Balancer Pools details.
- Filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- account
Id String - The account identifier to target for the datasource lookups.
- id String
- The provider-assigned unique ID for this managed resource.
- pools
List<Get
Load Balancer Pools Pool> - A list of Load Balancer Pools details.
- filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- account
Id string - The account identifier to target for the datasource lookups.
- id string
- The provider-assigned unique ID for this managed resource.
- pools
Get
Load Balancer Pools Pool[] - A list of Load Balancer Pools details.
- filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- account_
id str - The account identifier to target for the datasource lookups.
- id str
- The provider-assigned unique ID for this managed resource.
- pools
Sequence[Get
Load Balancer Pools Pool] - A list of Load Balancer Pools details.
- filter
Get
Load Balancer Pools Filter - One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
- account
Id String - The account identifier to target for the datasource lookups.
- id String
- The provider-assigned unique ID for this managed resource.
- pools List<Property Map>
- A list of Load Balancer Pools details.
- filter Property Map
- One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
Supporting Types
GetLoadBalancerPoolsFilter
- Name string
- A regular expression matching the name of the Load Balancer pool to lookup.
- Name string
- A regular expression matching the name of the Load Balancer pool to lookup.
- name String
- A regular expression matching the name of the Load Balancer pool to lookup.
- name string
- A regular expression matching the name of the Load Balancer pool to lookup.
- name str
- A regular expression matching the name of the Load Balancer pool to lookup.
- name String
- A regular expression matching the name of the Load Balancer pool to lookup.
GetLoadBalancerPoolsPool
- Check
Regions This property is required. List<string> - List of regions (specified by region code) from which to run health checks. Empty means every Cloudflare data center (the default), but requires an Enterprise plan. Region codes can be found here.
- Created
On This property is required. string - The RFC3339 timestamp of when the load balancer was created.
- Description
This property is required. string - Brief description of the Load Balancer Pool intention.
- Enabled
This property is required. bool - Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- Id
This property is required. string - ID for this load balancer pool.
- Latitude
This property is required. double - Latitude this pool is physically located at; used for proximity steering.
- Load
Sheddings This property is required. List<GetLoad Balancer Pools Pool Load Shedding> - Setting for controlling load shedding for this pool.
- Longitude
This property is required. double - Longitude this pool is physically located at; used for proximity steering.
- Minimum
Origins This property is required. int - Minimum number of origins that must be healthy for this pool to serve traffic.
- Modified
On This property is required. string - The RFC3339 timestamp of when the load balancer was last modified.
- Monitor
This property is required. string - ID of the Monitor to use for health checking origins within this pool.
- Name
This property is required. string - Short name (tag) for the pool.
- Notification
Email This property is required. string - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- Origins
This property is required. List<GetLoad Balancer Pools Pool Origin> - The list of origins within this pool.
- Check
Regions This property is required. []string - List of regions (specified by region code) from which to run health checks. Empty means every Cloudflare data center (the default), but requires an Enterprise plan. Region codes can be found here.
- Created
On This property is required. string - The RFC3339 timestamp of when the load balancer was created.
- Description
This property is required. string - Brief description of the Load Balancer Pool intention.
- Enabled
This property is required. bool - Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- Id
This property is required. string - ID for this load balancer pool.
- Latitude
This property is required. float64 - Latitude this pool is physically located at; used for proximity steering.
- Load
Sheddings This property is required. []GetLoad Balancer Pools Pool Load Shedding - Setting for controlling load shedding for this pool.
- Longitude
This property is required. float64 - Longitude this pool is physically located at; used for proximity steering.
- Minimum
Origins This property is required. int - Minimum number of origins that must be healthy for this pool to serve traffic.
- Modified
On This property is required. string - The RFC3339 timestamp of when the load balancer was last modified.
- Monitor
This property is required. string - ID of the Monitor to use for health checking origins within this pool.
- Name
This property is required. string - Short name (tag) for the pool.
- Notification
Email This property is required. string - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- Origins
This property is required. []GetLoad Balancer Pools Pool Origin - The list of origins within this pool.
- check
Regions This property is required. List<String> - List of regions (specified by region code) from which to run health checks. Empty means every Cloudflare data center (the default), but requires an Enterprise plan. Region codes can be found here.
- created
On This property is required. String - The RFC3339 timestamp of when the load balancer was created.
- description
This property is required. String - Brief description of the Load Balancer Pool intention.
- enabled
This property is required. Boolean - Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- id
This property is required. String - ID for this load balancer pool.
- latitude
This property is required. Double - Latitude this pool is physically located at; used for proximity steering.
- load
Sheddings This property is required. List<GetLoad Balancer Pools Pool Load Shedding> - Setting for controlling load shedding for this pool.
- longitude
This property is required. Double - Longitude this pool is physically located at; used for proximity steering.
- minimum
Origins This property is required. Integer - Minimum number of origins that must be healthy for this pool to serve traffic.
- modified
On This property is required. String - The RFC3339 timestamp of when the load balancer was last modified.
- monitor
This property is required. String - ID of the Monitor to use for health checking origins within this pool.
- name
This property is required. String - Short name (tag) for the pool.
- notification
Email This property is required. String - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- origins
This property is required. List<GetLoad Balancer Pools Pool Origin> - The list of origins within this pool.
- check
Regions This property is required. string[] - List of regions (specified by region code) from which to run health checks. Empty means every Cloudflare data center (the default), but requires an Enterprise plan. Region codes can be found here.
- created
On This property is required. string - The RFC3339 timestamp of when the load balancer was created.
- description
This property is required. string - Brief description of the Load Balancer Pool intention.
- enabled
This property is required. boolean - Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- id
This property is required. string - ID for this load balancer pool.
- latitude
This property is required. number - Latitude this pool is physically located at; used for proximity steering.
- load
Sheddings This property is required. GetLoad Balancer Pools Pool Load Shedding[] - Setting for controlling load shedding for this pool.
- longitude
This property is required. number - Longitude this pool is physically located at; used for proximity steering.
- minimum
Origins This property is required. number - Minimum number of origins that must be healthy for this pool to serve traffic.
- modified
On This property is required. string - The RFC3339 timestamp of when the load balancer was last modified.
- monitor
This property is required. string - ID of the Monitor to use for health checking origins within this pool.
- name
This property is required. string - Short name (tag) for the pool.
- notification
Email This property is required. string - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- origins
This property is required. GetLoad Balancer Pools Pool Origin[] - The list of origins within this pool.
- check_
regions This property is required. Sequence[str] - List of regions (specified by region code) from which to run health checks. Empty means every Cloudflare data center (the default), but requires an Enterprise plan. Region codes can be found here.
- created_
on This property is required. str - The RFC3339 timestamp of when the load balancer was created.
- description
This property is required. str - Brief description of the Load Balancer Pool intention.
- enabled
This property is required. bool - Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- id
This property is required. str - ID for this load balancer pool.
- latitude
This property is required. float - Latitude this pool is physically located at; used for proximity steering.
- load_
sheddings This property is required. Sequence[GetLoad Balancer Pools Pool Load Shedding] - Setting for controlling load shedding for this pool.
- longitude
This property is required. float - Longitude this pool is physically located at; used for proximity steering.
- minimum_
origins This property is required. int - Minimum number of origins that must be healthy for this pool to serve traffic.
- modified_
on This property is required. str - The RFC3339 timestamp of when the load balancer was last modified.
- monitor
This property is required. str - ID of the Monitor to use for health checking origins within this pool.
- name
This property is required. str - Short name (tag) for the pool.
- notification_
email This property is required. str - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- origins
This property is required. Sequence[GetLoad Balancer Pools Pool Origin] - The list of origins within this pool.
- check
Regions This property is required. List<String> - List of regions (specified by region code) from which to run health checks. Empty means every Cloudflare data center (the default), but requires an Enterprise plan. Region codes can be found here.
- created
On This property is required. String - The RFC3339 timestamp of when the load balancer was created.
- description
This property is required. String - Brief description of the Load Balancer Pool intention.
- enabled
This property is required. Boolean - Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- id
This property is required. String - ID for this load balancer pool.
- latitude
This property is required. Number - Latitude this pool is physically located at; used for proximity steering.
- load
Sheddings This property is required. List<Property Map> - Setting for controlling load shedding for this pool.
- longitude
This property is required. Number - Longitude this pool is physically located at; used for proximity steering.
- minimum
Origins This property is required. Number - Minimum number of origins that must be healthy for this pool to serve traffic.
- modified
On This property is required. String - The RFC3339 timestamp of when the load balancer was last modified.
- monitor
This property is required. String - ID of the Monitor to use for health checking origins within this pool.
- name
This property is required. String - Short name (tag) for the pool.
- notification
Email This property is required. String - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- origins
This property is required. List<Property Map> - The list of origins within this pool.
GetLoadBalancerPoolsPoolLoadShedding
- Default
Percent double - Percent of traffic to shed 0 - 100.
- Default
Policy string - Method of shedding traffic. Available values:
""
,hash
,random
- Session
Percent double - Percent of session traffic to shed 0 - 100.
- Session
Policy string - Method of shedding traffic. Available values:
""
,hash
- Default
Percent float64 - Percent of traffic to shed 0 - 100.
- Default
Policy string - Method of shedding traffic. Available values:
""
,hash
,random
- Session
Percent float64 - Percent of session traffic to shed 0 - 100.
- Session
Policy string - Method of shedding traffic. Available values:
""
,hash
- default
Percent Double - Percent of traffic to shed 0 - 100.
- default
Policy String - Method of shedding traffic. Available values:
""
,hash
,random
- session
Percent Double - Percent of session traffic to shed 0 - 100.
- session
Policy String - Method of shedding traffic. Available values:
""
,hash
- default
Percent number - Percent of traffic to shed 0 - 100.
- default
Policy string - Method of shedding traffic. Available values:
""
,hash
,random
- session
Percent number - Percent of session traffic to shed 0 - 100.
- session
Policy string - Method of shedding traffic. Available values:
""
,hash
- default_
percent float - Percent of traffic to shed 0 - 100.
- default_
policy str - Method of shedding traffic. Available values:
""
,hash
,random
- session_
percent float - Percent of session traffic to shed 0 - 100.
- session_
policy str - Method of shedding traffic. Available values:
""
,hash
- default
Percent Number - Percent of traffic to shed 0 - 100.
- default
Policy String - Method of shedding traffic. Available values:
""
,hash
,random
- session
Percent Number - Percent of session traffic to shed 0 - 100.
- session
Policy String - Method of shedding traffic. Available values:
""
,hash
GetLoadBalancerPoolsPoolOrigin
- Address
This property is required. string - The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- Name
This property is required. string - A human-identifiable name for the origin.
- Enabled bool
- Whether this origin is enabled. Disabled origins will not receive traffic and are excluded from health checks.
- Headers
List<Get
Load Balancer Pools Pool Origin Header> - HTTP request headers.
- Virtual
Network stringId - The virtual network subnet ID the origin belongs in. Virtual network must also belong to the account.
- Weight double
- The weight (0.01 - 1.00) of this origin, relative to other origins in the pool. Equal values mean equal weighting. A weight of 0 means traffic will not be sent to this origin, but health is still checked. When
origin_steering.policy="least_outstanding_requests"
, weight is used to scale the origin's outstanding requests. Whenorigin_steering.policy="least_connections"
, weight is used to scale the origin's open connections.
- Address
This property is required. string - The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- Name
This property is required. string - A human-identifiable name for the origin.
- Enabled bool
- Whether this origin is enabled. Disabled origins will not receive traffic and are excluded from health checks.
- Headers
[]Get
Load Balancer Pools Pool Origin Header - HTTP request headers.
- Virtual
Network stringId - The virtual network subnet ID the origin belongs in. Virtual network must also belong to the account.
- Weight float64
- The weight (0.01 - 1.00) of this origin, relative to other origins in the pool. Equal values mean equal weighting. A weight of 0 means traffic will not be sent to this origin, but health is still checked. When
origin_steering.policy="least_outstanding_requests"
, weight is used to scale the origin's outstanding requests. Whenorigin_steering.policy="least_connections"
, weight is used to scale the origin's open connections.
- address
This property is required. String - The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- name
This property is required. String - A human-identifiable name for the origin.
- enabled Boolean
- Whether this origin is enabled. Disabled origins will not receive traffic and are excluded from health checks.
- headers
List<Get
Load Balancer Pools Pool Origin Header> - HTTP request headers.
- virtual
Network StringId - The virtual network subnet ID the origin belongs in. Virtual network must also belong to the account.
- weight Double
- The weight (0.01 - 1.00) of this origin, relative to other origins in the pool. Equal values mean equal weighting. A weight of 0 means traffic will not be sent to this origin, but health is still checked. When
origin_steering.policy="least_outstanding_requests"
, weight is used to scale the origin's outstanding requests. Whenorigin_steering.policy="least_connections"
, weight is used to scale the origin's open connections.
- address
This property is required. string - The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- name
This property is required. string - A human-identifiable name for the origin.
- enabled boolean
- Whether this origin is enabled. Disabled origins will not receive traffic and are excluded from health checks.
- headers
Get
Load Balancer Pools Pool Origin Header[] - HTTP request headers.
- virtual
Network stringId - The virtual network subnet ID the origin belongs in. Virtual network must also belong to the account.
- weight number
- The weight (0.01 - 1.00) of this origin, relative to other origins in the pool. Equal values mean equal weighting. A weight of 0 means traffic will not be sent to this origin, but health is still checked. When
origin_steering.policy="least_outstanding_requests"
, weight is used to scale the origin's outstanding requests. Whenorigin_steering.policy="least_connections"
, weight is used to scale the origin's open connections.
- address
This property is required. str - The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- name
This property is required. str - A human-identifiable name for the origin.
- enabled bool
- Whether this origin is enabled. Disabled origins will not receive traffic and are excluded from health checks.
- headers
Sequence[Get
Load Balancer Pools Pool Origin Header] - HTTP request headers.
- virtual_
network_ strid - The virtual network subnet ID the origin belongs in. Virtual network must also belong to the account.
- weight float
- The weight (0.01 - 1.00) of this origin, relative to other origins in the pool. Equal values mean equal weighting. A weight of 0 means traffic will not be sent to this origin, but health is still checked. When
origin_steering.policy="least_outstanding_requests"
, weight is used to scale the origin's outstanding requests. Whenorigin_steering.policy="least_connections"
, weight is used to scale the origin's open connections.
- address
This property is required. String - The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- name
This property is required. String - A human-identifiable name for the origin.
- enabled Boolean
- Whether this origin is enabled. Disabled origins will not receive traffic and are excluded from health checks.
- headers List<Property Map>
- HTTP request headers.
- virtual
Network StringId - The virtual network subnet ID the origin belongs in. Virtual network must also belong to the account.
- weight Number
- The weight (0.01 - 1.00) of this origin, relative to other origins in the pool. Equal values mean equal weighting. A weight of 0 means traffic will not be sent to this origin, but health is still checked. When
origin_steering.policy="least_outstanding_requests"
, weight is used to scale the origin's outstanding requests. Whenorigin_steering.policy="least_connections"
, weight is used to scale the origin's open connections.
GetLoadBalancerPoolsPoolOriginHeader
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.