Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi
cloudflare.getLoadBalancers
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleLoadBalancers = cloudflare.getLoadBalancers({
zoneId: "699d98642c564d2e855e9661899b7252",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_load_balancers = cloudflare.get_load_balancers(zone_id="699d98642c564d2e855e9661899b7252")
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.LookupLoadBalancers(ctx, &cloudflare.LookupLoadBalancersArgs{
ZoneId: "699d98642c564d2e855e9661899b7252",
}, 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 exampleLoadBalancers = Cloudflare.GetLoadBalancers.Invoke(new()
{
ZoneId = "699d98642c564d2e855e9661899b7252",
});
});
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.GetLoadBalancersArgs;
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 exampleLoadBalancers = CloudflareFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
.zoneId("699d98642c564d2e855e9661899b7252")
.build());
}
}
variables:
exampleLoadBalancers:
fn::invoke:
function: cloudflare:getLoadBalancers
arguments:
zoneId: 699d98642c564d2e855e9661899b7252
Using getLoadBalancers
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 getLoadBalancers(args: GetLoadBalancersArgs, opts?: InvokeOptions): Promise<GetLoadBalancersResult>
function getLoadBalancersOutput(args: GetLoadBalancersOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancersResult>
def get_load_balancers(max_items: Optional[int] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLoadBalancersResult
def get_load_balancers_output(max_items: Optional[pulumi.Input[int]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancersResult]
func LookupLoadBalancers(ctx *Context, args *LookupLoadBalancersArgs, opts ...InvokeOption) (*LookupLoadBalancersResult, error)
func LookupLoadBalancersOutput(ctx *Context, args *LookupLoadBalancersOutputArgs, opts ...InvokeOption) LookupLoadBalancersResultOutput
> Note: This function is named LookupLoadBalancers
in the Go SDK.
public static class GetLoadBalancers
{
public static Task<GetLoadBalancersResult> InvokeAsync(GetLoadBalancersArgs args, InvokeOptions? opts = null)
public static Output<GetLoadBalancersResult> Invoke(GetLoadBalancersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLoadBalancersResult> getLoadBalancers(GetLoadBalancersArgs args, InvokeOptions options)
public static Output<GetLoadBalancersResult> getLoadBalancers(GetLoadBalancersArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getLoadBalancers:getLoadBalancers
arguments:
# arguments dictionary
The following arguments are supported:
getLoadBalancers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Load Balancers Result> - The items returned by the data source
- Zone
Id string - Max
Items int - Max items to fetch, default: 1000
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Load Balancers Result - The items returned by the data source
- Zone
Id string - Max
Items int - Max items to fetch, default: 1000
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Load Balancers Result> - The items returned by the data source
- zone
Id String - max
Items Integer - Max items to fetch, default: 1000
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Load Balancers Result[] - The items returned by the data source
- zone
Id string - max
Items number - Max items to fetch, default: 1000
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Load Balancers Result] - The items returned by the data source
- zone_
id str - max_
items int - Max items to fetch, default: 1000
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- zone
Id String - max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetLoadBalancersResult
- Adaptive
Routing GetLoad Balancers Result Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- Country
Pools Dictionary<string, ImmutableArray<string>> - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- Created
On string - Default
Pools List<string> - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- Description string
- Object description.
- Enabled bool
- Whether to enable (the default) this load balancer.
- Fallback
Pool string - The pool ID to use when all other pools are detected as unhealthy.
- Id string
- Location
Strategy GetLoad Balancers Result Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - Modified
On string - Name string
- The DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare's DNS, the Load Balancer will take precedence and the DNS record will not be used.
- Networks List<string>
- List of networks where Load Balancer or Pool is enabled.
- Pop
Pools Dictionary<string, ImmutableArray<string>> - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- Proxied bool
- Whether the hostname should be gray clouded (false) or orange clouded (true).
- Random
Steering GetLoad Balancers Result Random Steering - Configures pool weights.
- Region
Pools Dictionary<string, ImmutableArray<string>> - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- Rules
List<Get
Load Balancers Result Rule> - BETA Field Not General Access: A list of rules for this load balancer to execute.
- Session
Affinity string - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - Session
Affinity GetAttributes Load Balancers Result Session Affinity Attributes - Configures attributes for session affinity.
- Session
Affinity doubleTtl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - Steering
Policy string - Steering Policy for this load balancer.
- Ttl double
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- Zone
Name string
- Adaptive
Routing GetLoad Balancers Result Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- Country
Pools map[string][]string - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- Created
On string - Default
Pools []string - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- Description string
- Object description.
- Enabled bool
- Whether to enable (the default) this load balancer.
- Fallback
Pool string - The pool ID to use when all other pools are detected as unhealthy.
- Id string
- Location
Strategy GetLoad Balancers Result Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - Modified
On string - Name string
- The DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare's DNS, the Load Balancer will take precedence and the DNS record will not be used.
- Networks []string
- List of networks where Load Balancer or Pool is enabled.
- Pop
Pools map[string][]string - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- Proxied bool
- Whether the hostname should be gray clouded (false) or orange clouded (true).
- Random
Steering GetLoad Balancers Result Random Steering - Configures pool weights.
- Region
Pools map[string][]string - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- Rules
[]Get
Load Balancers Result Rule - BETA Field Not General Access: A list of rules for this load balancer to execute.
- Session
Affinity string - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - Session
Affinity GetAttributes Load Balancers Result Session Affinity Attributes - Configures attributes for session affinity.
- Session
Affinity float64Ttl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - Steering
Policy string - Steering Policy for this load balancer.
- Ttl float64
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- Zone
Name string
- adaptive
Routing GetLoad Balancers Result Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- country
Pools Map<String,List<String>> - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- created
On String - default
Pools List<String> - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- description String
- Object description.
- enabled Boolean
- Whether to enable (the default) this load balancer.
- fallback
Pool String - The pool ID to use when all other pools are detected as unhealthy.
- id String
- location
Strategy GetLoad Balancers Result Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - modified
On String - name String
- The DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare's DNS, the Load Balancer will take precedence and the DNS record will not be used.
- networks List<String>
- List of networks where Load Balancer or Pool is enabled.
- pop
Pools Map<String,List<String>> - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- proxied Boolean
- Whether the hostname should be gray clouded (false) or orange clouded (true).
- random
Steering GetLoad Balancers Result Random Steering - Configures pool weights.
- region
Pools Map<String,List<String>> - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- rules
List<Get
Load Balancers Result Rule> - BETA Field Not General Access: A list of rules for this load balancer to execute.
- session
Affinity String - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - session
Affinity GetAttributes Load Balancers Result Session Affinity Attributes - Configures attributes for session affinity.
- session
Affinity DoubleTtl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - steering
Policy String - Steering Policy for this load balancer.
- ttl Double
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- zone
Name String
- adaptive
Routing GetLoad Balancers Result Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- country
Pools {[key: string]: string[]} - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- created
On string - default
Pools string[] - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- description string
- Object description.
- enabled boolean
- Whether to enable (the default) this load balancer.
- fallback
Pool string - The pool ID to use when all other pools are detected as unhealthy.
- id string
- location
Strategy GetLoad Balancers Result Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - modified
On string - name string
- The DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare's DNS, the Load Balancer will take precedence and the DNS record will not be used.
- networks string[]
- List of networks where Load Balancer or Pool is enabled.
- pop
Pools {[key: string]: string[]} - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- proxied boolean
- Whether the hostname should be gray clouded (false) or orange clouded (true).
- random
Steering GetLoad Balancers Result Random Steering - Configures pool weights.
- region
Pools {[key: string]: string[]} - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- rules
Get
Load Balancers Result Rule[] - BETA Field Not General Access: A list of rules for this load balancer to execute.
- session
Affinity string - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - session
Affinity GetAttributes Load Balancers Result Session Affinity Attributes - Configures attributes for session affinity.
- session
Affinity numberTtl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - steering
Policy string - Steering Policy for this load balancer.
- ttl number
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- zone
Name string
- adaptive_
routing GetLoad Balancers Result Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- country_
pools Mapping[str, Sequence[str]] - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- created_
on str - default_
pools Sequence[str] - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- description str
- Object description.
- enabled bool
- Whether to enable (the default) this load balancer.
- fallback_
pool str - The pool ID to use when all other pools are detected as unhealthy.
- id str
- location_
strategy GetLoad Balancers Result Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - modified_
on str - name str
- The DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare's DNS, the Load Balancer will take precedence and the DNS record will not be used.
- networks Sequence[str]
- List of networks where Load Balancer or Pool is enabled.
- pop_
pools Mapping[str, Sequence[str]] - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- proxied bool
- Whether the hostname should be gray clouded (false) or orange clouded (true).
- random_
steering GetLoad Balancers Result Random Steering - Configures pool weights.
- region_
pools Mapping[str, Sequence[str]] - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- rules
Sequence[Get
Load Balancers Result Rule] - BETA Field Not General Access: A list of rules for this load balancer to execute.
- session_
affinity str - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - session_
affinity_ Getattributes Load Balancers Result Session Affinity Attributes - Configures attributes for session affinity.
- session_
affinity_ floatttl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - steering_
policy str - Steering Policy for this load balancer.
- ttl float
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- zone_
name str
- adaptive
Routing Property Map - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- country
Pools Map<List<String>> - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- created
On String - default
Pools List<String> - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- description String
- Object description.
- enabled Boolean
- Whether to enable (the default) this load balancer.
- fallback
Pool String - The pool ID to use when all other pools are detected as unhealthy.
- id String
- location
Strategy Property Map - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - modified
On String - name String
- The DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare's DNS, the Load Balancer will take precedence and the DNS record will not be used.
- networks List<String>
- List of networks where Load Balancer or Pool is enabled.
- pop
Pools Map<List<String>> - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- proxied Boolean
- Whether the hostname should be gray clouded (false) or orange clouded (true).
- random
Steering Property Map - Configures pool weights.
- region
Pools Map<List<String>> - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- rules List<Property Map>
- BETA Field Not General Access: A list of rules for this load balancer to execute.
- session
Affinity String - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - session
Affinity Property MapAttributes - Configures attributes for session affinity.
- session
Affinity NumberTtl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - steering
Policy String - Steering Policy for this load balancer.
- ttl Number
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- zone
Name String
GetLoadBalancersResultAdaptiveRouting
- Failover
Across boolPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- Failover
Across boolPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- failover
Across BooleanPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- failover
Across booleanPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- failover_
across_ boolpools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- failover
Across BooleanPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
GetLoadBalancersResultLocationStrategy
- mode str
- Determines the authoritative location when ECS is not preferred, does not exist in the request, or its GeoIP lookup is unsuccessful.
- prefer_
ecs str - Whether the EDNS Client Subnet (ECS) GeoIP should be preferred as the authoritative location.
GetLoadBalancersResultRandomSteering
- Default
Weight double - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- Pool
Weights Dictionary<string, double> - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- Default
Weight float64 - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- Pool
Weights map[string]float64 - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- default
Weight Double - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- pool
Weights Map<String,Double> - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- default
Weight number - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- pool
Weights {[key: string]: number} - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- default_
weight float - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- pool_
weights Mapping[str, float] - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- default
Weight Number - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- pool
Weights Map<Number> - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
GetLoadBalancersResultRule
- Condition string
- The condition expressions to evaluate. If the condition evaluates to true, the overrides or fixed_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions.
- Disabled bool
- Disable this specific rule. It will no longer be evaluated by this load balancer.
- Fixed
Response GetLoad Balancers Result Rule Fixed Response - A collection of fields used to directly respond to the eyeball instead of routing to a pool. If a fixed*response is supplied the rule will be marked as terminates.
- Name string
- Name of this rule. Only used for human readability.
- Overrides
Get
Load Balancers Result Rule Overrides - A collection of overrides to apply to the load balancer when this rule's condition is true. All fields are optional.
- Priority int
- The order in which rules should be executed in relation to each other. Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority.
- Terminates bool
- If this rule's condition is true, this causes rule evaluation to stop after processing this rule.
- Condition string
- The condition expressions to evaluate. If the condition evaluates to true, the overrides or fixed_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions.
- Disabled bool
- Disable this specific rule. It will no longer be evaluated by this load balancer.
- Fixed
Response GetLoad Balancers Result Rule Fixed Response - A collection of fields used to directly respond to the eyeball instead of routing to a pool. If a fixed*response is supplied the rule will be marked as terminates.
- Name string
- Name of this rule. Only used for human readability.
- Overrides
Get
Load Balancers Result Rule Overrides - A collection of overrides to apply to the load balancer when this rule's condition is true. All fields are optional.
- Priority int
- The order in which rules should be executed in relation to each other. Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority.
- Terminates bool
- If this rule's condition is true, this causes rule evaluation to stop after processing this rule.
- condition String
- The condition expressions to evaluate. If the condition evaluates to true, the overrides or fixed_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions.
- disabled Boolean
- Disable this specific rule. It will no longer be evaluated by this load balancer.
- fixed
Response GetLoad Balancers Result Rule Fixed Response - A collection of fields used to directly respond to the eyeball instead of routing to a pool. If a fixed*response is supplied the rule will be marked as terminates.
- name String
- Name of this rule. Only used for human readability.
- overrides
Get
Load Balancers Result Rule Overrides - A collection of overrides to apply to the load balancer when this rule's condition is true. All fields are optional.
- priority Integer
- The order in which rules should be executed in relation to each other. Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority.
- terminates Boolean
- If this rule's condition is true, this causes rule evaluation to stop after processing this rule.
- condition string
- The condition expressions to evaluate. If the condition evaluates to true, the overrides or fixed_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions.
- disabled boolean
- Disable this specific rule. It will no longer be evaluated by this load balancer.
- fixed
Response GetLoad Balancers Result Rule Fixed Response - A collection of fields used to directly respond to the eyeball instead of routing to a pool. If a fixed*response is supplied the rule will be marked as terminates.
- name string
- Name of this rule. Only used for human readability.
- overrides
Get
Load Balancers Result Rule Overrides - A collection of overrides to apply to the load balancer when this rule's condition is true. All fields are optional.
- priority number
- The order in which rules should be executed in relation to each other. Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority.
- terminates boolean
- If this rule's condition is true, this causes rule evaluation to stop after processing this rule.
- condition str
- The condition expressions to evaluate. If the condition evaluates to true, the overrides or fixed_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions.
- disabled bool
- Disable this specific rule. It will no longer be evaluated by this load balancer.
- fixed_
response GetLoad Balancers Result Rule Fixed Response - A collection of fields used to directly respond to the eyeball instead of routing to a pool. If a fixed*response is supplied the rule will be marked as terminates.
- name str
- Name of this rule. Only used for human readability.
- overrides
Get
Load Balancers Result Rule Overrides - A collection of overrides to apply to the load balancer when this rule's condition is true. All fields are optional.
- priority int
- The order in which rules should be executed in relation to each other. Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority.
- terminates bool
- If this rule's condition is true, this causes rule evaluation to stop after processing this rule.
- condition String
- The condition expressions to evaluate. If the condition evaluates to true, the overrides or fixed_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions.
- disabled Boolean
- Disable this specific rule. It will no longer be evaluated by this load balancer.
- fixed
Response Property Map - A collection of fields used to directly respond to the eyeball instead of routing to a pool. If a fixed*response is supplied the rule will be marked as terminates.
- name String
- Name of this rule. Only used for human readability.
- overrides Property Map
- A collection of overrides to apply to the load balancer when this rule's condition is true. All fields are optional.
- priority Number
- The order in which rules should be executed in relation to each other. Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority.
- terminates Boolean
- If this rule's condition is true, this causes rule evaluation to stop after processing this rule.
GetLoadBalancersResultRuleFixedResponse
- Content
Type string - The http 'Content-Type' header to include in the response.
- Location string
- The http 'Location' header to include in the response.
- Message
Body string - Text to include as the http body.
- Status
Code int - The http status code to respond with.
- Content
Type string - The http 'Content-Type' header to include in the response.
- Location string
- The http 'Location' header to include in the response.
- Message
Body string - Text to include as the http body.
- Status
Code int - The http status code to respond with.
- content
Type String - The http 'Content-Type' header to include in the response.
- location String
- The http 'Location' header to include in the response.
- message
Body String - Text to include as the http body.
- status
Code Integer - The http status code to respond with.
- content
Type string - The http 'Content-Type' header to include in the response.
- location string
- The http 'Location' header to include in the response.
- message
Body string - Text to include as the http body.
- status
Code number - The http status code to respond with.
- content_
type str - The http 'Content-Type' header to include in the response.
- location str
- The http 'Location' header to include in the response.
- message_
body str - Text to include as the http body.
- status_
code int - The http status code to respond with.
- content
Type String - The http 'Content-Type' header to include in the response.
- location String
- The http 'Location' header to include in the response.
- message
Body String - Text to include as the http body.
- status
Code Number - The http status code to respond with.
GetLoadBalancersResultRuleOverrides
- Adaptive
Routing GetLoad Balancers Result Rule Overrides Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- Country
Pools Dictionary<string, ImmutableArray<string>> - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- Default
Pools List<string> - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- Fallback
Pool string - The pool ID to use when all other pools are detected as unhealthy.
- Location
Strategy GetLoad Balancers Result Rule Overrides Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - Pop
Pools Dictionary<string, ImmutableArray<string>> - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- Random
Steering GetLoad Balancers Result Rule Overrides Random Steering - Configures pool weights.
- Region
Pools Dictionary<string, ImmutableArray<string>> - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- Session
Affinity string - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - Session
Affinity GetAttributes Load Balancers Result Rule Overrides Session Affinity Attributes - Configures attributes for session affinity.
- Session
Affinity doubleTtl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - Steering
Policy string - Steering Policy for this load balancer.
- Ttl double
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- Adaptive
Routing GetLoad Balancers Result Rule Overrides Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- Country
Pools map[string][]string - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- Default
Pools []string - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- Fallback
Pool string - The pool ID to use when all other pools are detected as unhealthy.
- Location
Strategy GetLoad Balancers Result Rule Overrides Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - Pop
Pools map[string][]string - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- Random
Steering GetLoad Balancers Result Rule Overrides Random Steering - Configures pool weights.
- Region
Pools map[string][]string - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- Session
Affinity string - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - Session
Affinity GetAttributes Load Balancers Result Rule Overrides Session Affinity Attributes - Configures attributes for session affinity.
- Session
Affinity float64Ttl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - Steering
Policy string - Steering Policy for this load balancer.
- Ttl float64
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- adaptive
Routing GetLoad Balancers Result Rule Overrides Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- country
Pools Map<String,List<String>> - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- default
Pools List<String> - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- fallback
Pool String - The pool ID to use when all other pools are detected as unhealthy.
- location
Strategy GetLoad Balancers Result Rule Overrides Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - pop
Pools Map<String,List<String>> - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- random
Steering GetLoad Balancers Result Rule Overrides Random Steering - Configures pool weights.
- region
Pools Map<String,List<String>> - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- session
Affinity String - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - session
Affinity GetAttributes Load Balancers Result Rule Overrides Session Affinity Attributes - Configures attributes for session affinity.
- session
Affinity DoubleTtl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - steering
Policy String - Steering Policy for this load balancer.
- ttl Double
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- adaptive
Routing GetLoad Balancers Result Rule Overrides Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- country
Pools {[key: string]: string[]} - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- default
Pools string[] - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- fallback
Pool string - The pool ID to use when all other pools are detected as unhealthy.
- location
Strategy GetLoad Balancers Result Rule Overrides Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - pop
Pools {[key: string]: string[]} - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- random
Steering GetLoad Balancers Result Rule Overrides Random Steering - Configures pool weights.
- region
Pools {[key: string]: string[]} - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- session
Affinity string - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - session
Affinity GetAttributes Load Balancers Result Rule Overrides Session Affinity Attributes - Configures attributes for session affinity.
- session
Affinity numberTtl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - steering
Policy string - Steering Policy for this load balancer.
- ttl number
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- adaptive_
routing GetLoad Balancers Result Rule Overrides Adaptive Routing - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- country_
pools Mapping[str, Sequence[str]] - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- default_
pools Sequence[str] - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- fallback_
pool str - The pool ID to use when all other pools are detected as unhealthy.
- location_
strategy GetLoad Balancers Result Rule Overrides Location Strategy - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - pop_
pools Mapping[str, Sequence[str]] - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- random_
steering GetLoad Balancers Result Rule Overrides Random Steering - Configures pool weights.
- region_
pools Mapping[str, Sequence[str]] - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- session_
affinity str - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - session_
affinity_ Getattributes Load Balancers Result Rule Overrides Session Affinity Attributes - Configures attributes for session affinity.
- session_
affinity_ floatttl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - steering_
policy str - Steering Policy for this load balancer.
- ttl float
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
- adaptive
Routing Property Map - Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.
- country
Pools Map<List<String>> - A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding regionpool mapping if it exists else to defaultpools.
- default
Pools List<String> - A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
- fallback
Pool String - The pool ID to use when all other pools are detected as unhealthy.
- location
Strategy Property Map - Controls location-based steering for non-proxied requests. See
steering_policy
to learn how steering is affected. - pop
Pools Map<List<String>> - (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding countrypool, then regionpool mapping if it exists else to default_pools.
- random
Steering Property Map - Configures pool weights.
- region
Pools Map<List<String>> - A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
- session
Affinity String - Specifies the type of session affinity the load balancer should use unless specified as
"none"
. The supported types are: - session
Affinity Property MapAttributes - Configures attributes for session affinity.
- session
Affinity NumberTtl - Time, in seconds, until a client's session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per
session_affinity
policy are: - steering
Policy String - Steering Policy for this load balancer.
- ttl Number
- Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
GetLoadBalancersResultRuleOverridesAdaptiveRouting
- Failover
Across boolPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- Failover
Across boolPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- failover
Across BooleanPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- failover
Across booleanPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- failover_
across_ boolpools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
- failover
Across BooleanPools - Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See
session_affinity_attributes
for control over when sessions are broken or reassigned.
GetLoadBalancersResultRuleOverridesLocationStrategy
- mode str
- Determines the authoritative location when ECS is not preferred, does not exist in the request, or its GeoIP lookup is unsuccessful.
- prefer_
ecs str - Whether the EDNS Client Subnet (ECS) GeoIP should be preferred as the authoritative location.
GetLoadBalancersResultRuleOverridesRandomSteering
- Default
Weight double - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- Pool
Weights Dictionary<string, double> - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- Default
Weight float64 - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- Pool
Weights map[string]float64 - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- default
Weight Double - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- pool
Weights Map<String,Double> - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- default
Weight number - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- pool
Weights {[key: string]: number} - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- default_
weight float - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- pool_
weights Mapping[str, float] - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
- default
Weight Number - The default weight for pools in the load balancer that are not specified in the pool_weights map.
- pool
Weights Map<Number> - A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
GetLoadBalancersResultRuleOverridesSessionAffinityAttributes
- Drain
Duration double - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- Headers List<string>
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - Require
All boolHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - Samesite string
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- Secure string
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- Zero
Downtime stringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- Drain
Duration float64 - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- Headers []string
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - Require
All boolHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - Samesite string
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- Secure string
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- Zero
Downtime stringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- drain
Duration Double - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- headers List<String>
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - require
All BooleanHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - samesite String
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- secure String
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- zero
Downtime StringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- drain
Duration number - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- headers string[]
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - require
All booleanHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - samesite string
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- secure string
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- zero
Downtime stringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- drain_
duration float - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- headers Sequence[str]
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - require_
all_ boolheaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - samesite str
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- secure str
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- zero_
downtime_ strfailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- drain
Duration Number - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- headers List<String>
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - require
All BooleanHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - samesite String
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- secure String
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- zero
Downtime StringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
GetLoadBalancersResultSessionAffinityAttributes
- Drain
Duration double - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- Headers List<string>
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - Require
All boolHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - Samesite string
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- Secure string
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- Zero
Downtime stringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- Drain
Duration float64 - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- Headers []string
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - Require
All boolHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - Samesite string
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- Secure string
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- Zero
Downtime stringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- drain
Duration Double - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- headers List<String>
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - require
All BooleanHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - samesite String
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- secure String
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- zero
Downtime StringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- drain
Duration number - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- headers string[]
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - require
All booleanHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - samesite string
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- secure string
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- zero
Downtime stringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- drain_
duration float - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- headers Sequence[str]
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - require_
all_ boolheaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - samesite str
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- secure str
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- zero_
downtime_ strfailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
- drain
Duration Number - Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.
- headers List<String>
- Configures the names of HTTP headers to base session affinity on when header
session_affinity
is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format:"cookie:<cookie-name-1>,<cookie-name-2>"
(example) where everything after the colon is a comma-separated list of cookie names. Providing only"cookie"
will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. - require
All BooleanHeaders - When header
session_affinity
is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - samesite String
- Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".
- secure String
- Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "Auto", "Always", "Never".
- zero
Downtime StringFailover - Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.