getLoadBalancer

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleLoadBalancer = cloudflare.getLoadBalancer({
zoneId: "699d98642c564d2e855e9661899b7252",
loadBalancerId: "699d98642c564d2e855e9661899b7252",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_load_balancer = cloudflare.get_load_balancer(zone_id="699d98642c564d2e855e9661899b7252",
load_balancer_id="699d98642c564d2e855e9661899b7252")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleLoadBalancer = Cloudflare.GetLoadBalancer.Invoke(new()
{
ZoneId = "699d98642c564d2e855e9661899b7252",
LoadBalancerId = "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.LookupLoadBalancer(ctx, &cloudflare.LookupLoadBalancerArgs{
ZoneId: "699d98642c564d2e855e9661899b7252",
LoadBalancerId: pulumi.StringRef("699d98642c564d2e855e9661899b7252"),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetLoadBalancerArgs;
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 exampleLoadBalancer = CloudflareFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()
.zoneId("699d98642c564d2e855e9661899b7252")
.loadBalancerId("699d98642c564d2e855e9661899b7252")
.build());
}
}
variables:
exampleLoadBalancer:
fn::invoke:
function: cloudflare:getLoadBalancer
arguments:
zoneId: 699d98642c564d2e855e9661899b7252
loadBalancerId: 699d98642c564d2e855e9661899b7252

Return

A collection of values returned by getLoadBalancer.

Parameters

argument

A collection of arguments for invoking getLoadBalancer.


suspend fun getLoadBalancer(countryPools: Map<String, List<String>>? = null, loadBalancerId: String? = null, popPools: Map<String, List<String>>? = null, regionPools: Map<String, List<String>>? = null, sessionAffinityTtl: Double? = null, steeringPolicy: String? = null, ttl: Double? = null, zoneId: String): GetLoadBalancerResult

Return

A collection of values returned by getLoadBalancer.

Parameters

countryPools

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.

loadBalancerId
popPools

(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.

regionPools

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.

sessionAffinityTtl

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:

steeringPolicy

Steering Policy for this load balancer.

ttl

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.

zoneId

See also


Return

A collection of values returned by getLoadBalancer.

Parameters

argument

Builder for com.pulumi.cloudflare.kotlin.inputs.GetLoadBalancerPlainArgs.

See also