Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Gets information about a Load Balancer.
For more information, see the main documentation or API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get info by name
const byName = scaleway.loadbalancers.getLoadBalancer({
name: "foobar",
});
// Get info by ID
const byId = scaleway.loadbalancers.getLoadBalancer({
lbId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by name
by_name = scaleway.loadbalancers.get_load_balancer(name="foobar")
# Get info by ID
by_id = scaleway.loadbalancers.get_load_balancer(lb_id="11111111-1111-1111-1111-111111111111")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/loadbalancers"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get info by name
_, err := loadbalancers.LookupLoadBalancer(ctx, &loadbalancers.LookupLoadBalancerArgs{
Name: pulumi.StringRef("foobar"),
}, nil)
if err != nil {
return err
}
// Get info by ID
_, err = loadbalancers.LookupLoadBalancer(ctx, &loadbalancers.LookupLoadBalancerArgs{
LbId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
// Get info by name
var byName = Scaleway.Loadbalancers.GetLoadBalancer.Invoke(new()
{
Name = "foobar",
});
// Get info by ID
var byId = Scaleway.Loadbalancers.GetLoadBalancer.Invoke(new()
{
LbId = "11111111-1111-1111-1111-111111111111",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.loadbalancers.LoadbalancersFunctions;
import com.pulumi.scaleway.loadbalancers.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) {
// Get info by name
final var byName = LoadbalancersFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()
.name("foobar")
.build());
// Get info by ID
final var byId = LoadbalancersFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()
.lbId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Get info by name
byName:
fn::invoke:
function: scaleway:loadbalancers:getLoadBalancer
arguments:
name: foobar
# Get info by ID
byId:
fn::invoke:
function: scaleway:loadbalancers:getLoadBalancer
arguments:
lbId: 11111111-1111-1111-1111-111111111111
Using getLoadBalancer
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 getLoadBalancer(args: GetLoadBalancerArgs, opts?: InvokeOptions): Promise<GetLoadBalancerResult>
function getLoadBalancerOutput(args: GetLoadBalancerOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerResult>def get_load_balancer(lb_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
release_ip: Optional[bool] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLoadBalancerResult
def get_load_balancer_output(lb_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
release_ip: Optional[pulumi.Input[bool]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerResult]func LookupLoadBalancer(ctx *Context, args *LookupLoadBalancerArgs, opts ...InvokeOption) (*LookupLoadBalancerResult, error)
func LookupLoadBalancerOutput(ctx *Context, args *LookupLoadBalancerOutputArgs, opts ...InvokeOption) LookupLoadBalancerResultOutput> Note: This function is named LookupLoadBalancer in the Go SDK.
public static class GetLoadBalancer
{
public static Task<GetLoadBalancerResult> InvokeAsync(GetLoadBalancerArgs args, InvokeOptions? opts = null)
public static Output<GetLoadBalancerResult> Invoke(GetLoadBalancerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLoadBalancerResult> getLoadBalancer(GetLoadBalancerArgs args, InvokeOptions options)
public static Output<GetLoadBalancerResult> getLoadBalancer(GetLoadBalancerArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:loadbalancers/getLoadBalancer:getLoadBalancer
arguments:
# arguments dictionaryThe following arguments are supported:
- lb_
id str - name str
- The Load Balancer name.
- project_
id str - The ID of the Project the Load Balancer is associated with.
- release_
ip bool - zone str
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
getLoadBalancer Result
The following output properties are available:
- Assign
Flexible boolIp - Assign
Flexible boolIpv6 - Description string
- External
Private boolNetworks - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - The Load Balancer public IP address.
- Ip
Id string - Ip
Ids List<string> - Ipv6Address string
- Organization
Id string - Private
Ips List<Pulumiverse.Scaleway. Loadbalancers. Outputs. Get Load Balancer Private Ip> - Private
Networks List<Pulumiverse.Scaleway. Loadbalancers. Outputs. Get Load Balancer Private Network> - Region string
- Ssl
Compatibility stringLevel - List<string>
- The tags associated with the Load Balancer.
- Type string
- The Load Balancer type.
- Lb
Id string - Name string
- Project
Id string - Release
Ip bool - Zone string
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- Assign
Flexible boolIp - Assign
Flexible boolIpv6 - Description string
- External
Private boolNetworks - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - The Load Balancer public IP address.
- Ip
Id string - Ip
Ids []string - Ipv6Address string
- Organization
Id string - Private
Ips []GetLoad Balancer Private Ip - Private
Networks []GetLoad Balancer Private Network - Region string
- Ssl
Compatibility stringLevel - []string
- The tags associated with the Load Balancer.
- Type string
- The Load Balancer type.
- Lb
Id string - Name string
- Project
Id string - Release
Ip bool - Zone string
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- assign
Flexible BooleanIp - assign
Flexible BooleanIpv6 - description String
- external
Private BooleanNetworks - id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The Load Balancer public IP address.
- ip
Id String - ip
Ids List<String> - ipv6Address String
- organization
Id String - private
Ips List<GetLoad Balancer Private Ip> - private
Networks List<GetLoad Balancer Private Network> - region String
- ssl
Compatibility StringLevel - List<String>
- The tags associated with the Load Balancer.
- type String
- The Load Balancer type.
- lb
Id String - name String
- project
Id String - release
Ip Boolean - zone String
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- assign
Flexible booleanIp - assign
Flexible booleanIpv6 - description string
- external
Private booleanNetworks - id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - The Load Balancer public IP address.
- ip
Id string - ip
Ids string[] - ipv6Address string
- organization
Id string - private
Ips GetLoad Balancer Private Ip[] - private
Networks GetLoad Balancer Private Network[] - region string
- ssl
Compatibility stringLevel - string[]
- The tags associated with the Load Balancer.
- type string
- The Load Balancer type.
- lb
Id string - name string
- project
Id string - release
Ip boolean - zone string
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- assign_
flexible_ boolip - assign_
flexible_ boolipv6 - description str
- external_
private_ boolnetworks - id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - The Load Balancer public IP address.
- ip_
id str - ip_
ids Sequence[str] - ipv6_
address str - organization_
id str - private_
ips Sequence[GetLoad Balancer Private Ip] - private_
networks Sequence[GetLoad Balancer Private Network] - region str
- ssl_
compatibility_ strlevel - Sequence[str]
- The tags associated with the Load Balancer.
- type str
- The Load Balancer type.
- lb_
id str - name str
- project_
id str - release_
ip bool - zone str
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- assign
Flexible BooleanIp - assign
Flexible BooleanIpv6 - description String
- external
Private BooleanNetworks - id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The Load Balancer public IP address.
- ip
Id String - ip
Ids List<String> - ipv6Address String
- organization
Id String - private
Ips List<Property Map> - private
Networks List<Property Map> - region String
- ssl
Compatibility StringLevel - List<String>
- The tags associated with the Load Balancer.
- type String
- The Load Balancer type.
- lb
Id String - name String
- project
Id String - release
Ip Boolean - zone String
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
Supporting Types
GetLoadBalancerPrivateIp
GetLoadBalancerPrivateNetwork
- Dhcp
Config bool - Set to true if you want to let DHCP assign IP addresses
- Ipam
Ids List<string> - IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this Private Network
- Private
Network stringId - The Private Network ID
- Static
Configs List<string> - Define an IP address in the subnet of your private network that will be assigned to your load balancer instance
- Status string
- The status of private network connection
- Zone string
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- Dhcp
Config bool - Set to true if you want to let DHCP assign IP addresses
- Ipam
Ids []string - IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this Private Network
- Private
Network stringId - The Private Network ID
- Static
Configs []string - Define an IP address in the subnet of your private network that will be assigned to your load balancer instance
- Status string
- The status of private network connection
- Zone string
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- dhcp
Config Boolean - Set to true if you want to let DHCP assign IP addresses
- ipam
Ids List<String> - IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this Private Network
- private
Network StringId - The Private Network ID
- static
Configs List<String> - Define an IP address in the subnet of your private network that will be assigned to your load balancer instance
- status String
- The status of private network connection
- zone String
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- dhcp
Config boolean - Set to true if you want to let DHCP assign IP addresses
- ipam
Ids string[] - IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this Private Network
- private
Network stringId - The Private Network ID
- static
Configs string[] - Define an IP address in the subnet of your private network that will be assigned to your load balancer instance
- status string
- The status of private network connection
- zone string
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- dhcp_
config bool - Set to true if you want to let DHCP assign IP addresses
- ipam_
ids Sequence[str] - IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this Private Network
- private_
network_ strid - The Private Network ID
- static_
configs Sequence[str] - Define an IP address in the subnet of your private network that will be assigned to your load balancer instance
- status str
- The status of private network connection
- zone str
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
- dhcp
Config Boolean - Set to true if you want to let DHCP assign IP addresses
- ipam
Ids List<String> - IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this Private Network
- private
Network StringId - The Private Network ID
- static
Configs List<String> - Define an IP address in the subnet of your private network that will be assigned to your load balancer instance
- status String
- The status of private network connection
- zone String
- (Defaults to provider
zone) The zone in which the Load Balancer exists.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
