Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: cloudflare:index/getLoadBalancerPools:getLoadBalancerPools
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id 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 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 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 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 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 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 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 string - The RFC3339 timestamp of when the load balancer was created.
- Description string
- Brief description of the Load Balancer Pool intention.
- Enabled bool
- Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- Id string
- ID for this load balancer pool.
- Latitude double
- Latitude this pool is physically located at; used for proximity steering.
- Load
Sheddings List<GetLoad Balancer Pools Pool Load Shedding> - Setting for controlling load shedding for this pool.
- Longitude double
- Longitude this pool is physically located at; used for proximity steering.
- Minimum
Origins int - Minimum number of origins that must be healthy for this pool to serve traffic.
- Modified
On string - The RFC3339 timestamp of when the load balancer was last modified.
- Monitor string
- ID of the Monitor to use for health checking origins within this pool.
- Name string
- Short name (tag) for the pool.
- Notification
Email string - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- Origins
List<Get
Load Balancer Pools Pool Origin> - The list of origins within this pool.
- Check
Regions []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 string - The RFC3339 timestamp of when the load balancer was created.
- Description string
- Brief description of the Load Balancer Pool intention.
- Enabled bool
- Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- Id string
- ID for this load balancer pool.
- Latitude float64
- Latitude this pool is physically located at; used for proximity steering.
- Load
Sheddings []GetLoad Balancer Pools Pool Load Shedding - Setting for controlling load shedding for this pool.
- Longitude float64
- Longitude this pool is physically located at; used for proximity steering.
- Minimum
Origins int - Minimum number of origins that must be healthy for this pool to serve traffic.
- Modified
On string - The RFC3339 timestamp of when the load balancer was last modified.
- Monitor string
- ID of the Monitor to use for health checking origins within this pool.
- Name string
- Short name (tag) for the pool.
- Notification
Email string - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- Origins
[]Get
Load Balancer Pools Pool Origin - The list of origins within this pool.
- check
Regions 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 String - The RFC3339 timestamp of when the load balancer was created.
- description String
- Brief description of the Load Balancer Pool intention.
- enabled Boolean
- Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- id String
- ID for this load balancer pool.
- latitude Double
- Latitude this pool is physically located at; used for proximity steering.
- load
Sheddings List<GetLoad Balancer Pools Pool Load Shedding> - Setting for controlling load shedding for this pool.
- longitude Double
- Longitude this pool is physically located at; used for proximity steering.
- minimum
Origins Integer - Minimum number of origins that must be healthy for this pool to serve traffic.
- modified
On String - The RFC3339 timestamp of when the load balancer was last modified.
- monitor String
- ID of the Monitor to use for health checking origins within this pool.
- name String
- Short name (tag) for the pool.
- notification
Email String - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- origins
List<Get
Load Balancer Pools Pool Origin> - The list of origins within this pool.
- check
Regions 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 string - The RFC3339 timestamp of when the load balancer was created.
- description string
- Brief description of the Load Balancer Pool intention.
- enabled boolean
- Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- id string
- ID for this load balancer pool.
- latitude number
- Latitude this pool is physically located at; used for proximity steering.
- load
Sheddings GetLoad Balancer Pools Pool Load Shedding[] - Setting for controlling load shedding for this pool.
- longitude number
- Longitude this pool is physically located at; used for proximity steering.
- minimum
Origins number - Minimum number of origins that must be healthy for this pool to serve traffic.
- modified
On string - The RFC3339 timestamp of when the load balancer was last modified.
- monitor string
- ID of the Monitor to use for health checking origins within this pool.
- name string
- Short name (tag) for the pool.
- notification
Email string - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- origins
Get
Load Balancer Pools Pool Origin[] - The list of origins within this pool.
- check_
regions 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 str - The RFC3339 timestamp of when the load balancer was created.
- description str
- Brief description of the Load Balancer Pool intention.
- enabled bool
- Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- id str
- ID for this load balancer pool.
- latitude float
- Latitude this pool is physically located at; used for proximity steering.
- load_
sheddings Sequence[GetLoad Balancer Pools Pool Load Shedding] - Setting for controlling load shedding for this pool.
- longitude float
- Longitude this pool is physically located at; used for proximity steering.
- minimum_
origins int - Minimum number of origins that must be healthy for this pool to serve traffic.
- modified_
on str - The RFC3339 timestamp of when the load balancer was last modified.
- monitor str
- ID of the Monitor to use for health checking origins within this pool.
- name str
- Short name (tag) for the pool.
- notification_
email str - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- origins
Sequence[Get
Load Balancer Pools Pool Origin] - The list of origins within this pool.
- check
Regions 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 String - The RFC3339 timestamp of when the load balancer was created.
- description String
- Brief description of the Load Balancer Pool intention.
- enabled Boolean
- Whether this pool is enabled. Disabled pools will not receive traffic and are excluded from health checks.
- id String
- ID for this load balancer pool.
- latitude Number
- Latitude this pool is physically located at; used for proximity steering.
- load
Sheddings List<Property Map> - Setting for controlling load shedding for this pool.
- longitude Number
- Longitude this pool is physically located at; used for proximity steering.
- minimum
Origins Number - Minimum number of origins that must be healthy for this pool to serve traffic.
- modified
On String - The RFC3339 timestamp of when the load balancer was last modified.
- monitor String
- ID of the Monitor to use for health checking origins within this pool.
- name String
- Short name (tag) for the pool.
- notification
Email String - Email address to send health status notifications to. Multiple emails are set as a comma delimited list.
- origins 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 string
- The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- Name 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 string
- The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- Name 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 String
- The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- name 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 string
- The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- name 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 str
- The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- name 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 String
- The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname.
- name 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.