OpenStack v5.4.0 published on Wednesday, Nov 12, 2025 by Pulumi
OpenStack v5.4.0 published on Wednesday, Nov 12, 2025 by Pulumi
Use this data source to get the ID of an OpenStack Load Balancer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const loadbalancer1 = openstack.loadbalancer.getLoadbalancerV2({
name: "loadbalancer_1",
});
import pulumi
import pulumi_openstack as openstack
loadbalancer1 = openstack.loadbalancer.get_loadbalancer_v2(name="loadbalancer_1")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/loadbalancer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := loadbalancer.GetLoadbalancerV2(ctx, &loadbalancer.GetLoadbalancerV2Args{
Name: pulumi.StringRef("loadbalancer_1"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var loadbalancer1 = OpenStack.LoadBalancer.GetLoadbalancerV2.Invoke(new()
{
Name = "loadbalancer_1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.loadbalancer.LoadbalancerFunctions;
import com.pulumi.openstack.loadbalancer.inputs.GetLoadbalancerV2Args;
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 loadbalancer1 = LoadbalancerFunctions.getLoadbalancerV2(GetLoadbalancerV2Args.builder()
.name("loadbalancer_1")
.build());
}
}
variables:
loadbalancer1:
fn::invoke:
function: openstack:loadbalancer:getLoadbalancerV2
arguments:
name: loadbalancer_1
Using getLoadbalancerV2
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 getLoadbalancerV2(args: GetLoadbalancerV2Args, opts?: InvokeOptions): Promise<GetLoadbalancerV2Result>
function getLoadbalancerV2Output(args: GetLoadbalancerV2OutputArgs, opts?: InvokeOptions): Output<GetLoadbalancerV2Result>def get_loadbalancer_v2(description: Optional[str] = None,
loadbalancer_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tags_anies: Optional[Sequence[str]] = None,
tags_not_anies: Optional[Sequence[str]] = None,
tags_nots: Optional[Sequence[str]] = None,
vip_address: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLoadbalancerV2Result
def get_loadbalancer_v2_output(description: Optional[pulumi.Input[str]] = None,
loadbalancer_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tags_anies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tags_not_anies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tags_nots: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
vip_address: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLoadbalancerV2Result]func GetLoadbalancerV2(ctx *Context, args *GetLoadbalancerV2Args, opts ...InvokeOption) (*GetLoadbalancerV2Result, error)
func GetLoadbalancerV2Output(ctx *Context, args *GetLoadbalancerV2OutputArgs, opts ...InvokeOption) GetLoadbalancerV2ResultOutput> Note: This function is named GetLoadbalancerV2 in the Go SDK.
public static class GetLoadbalancerV2
{
public static Task<GetLoadbalancerV2Result> InvokeAsync(GetLoadbalancerV2Args args, InvokeOptions? opts = null)
public static Output<GetLoadbalancerV2Result> Invoke(GetLoadbalancerV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLoadbalancerV2Result> getLoadbalancerV2(GetLoadbalancerV2Args args, InvokeOptions options)
public static Output<GetLoadbalancerV2Result> getLoadbalancerV2(GetLoadbalancerV2Args args, InvokeOptions options)
fn::invoke:
function: openstack:loadbalancer/getLoadbalancerV2:getLoadbalancerV2
arguments:
# arguments dictionaryThe following arguments are supported:
- Description string
- The human-readable description for the loadbalancer.
- Loadbalancer
Id string - The ID of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - Name string
- The name of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - Region string
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used. - List<string>
- A set of tags applied to the loadbalancer. The load balancer will be returned if it has all of the specified tags.
- List<string>
- A set of tags. The load balancer will be returned if it has at least one of the specified tags.
- List<string>
- A set of tags. The load balancer will be returned if it does not have any of the specified tags.
- List<string>
- A set of tags. The load balancer will be returned if it does not have all of the specified tags.
- Vip
Address string - The IP address of the loadbalancer's virtual IP (VIP).
- Description string
- The human-readable description for the loadbalancer.
- Loadbalancer
Id string - The ID of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - Name string
- The name of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - Region string
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used. - []string
- A set of tags applied to the loadbalancer. The load balancer will be returned if it has all of the specified tags.
- []string
- A set of tags. The load balancer will be returned if it has at least one of the specified tags.
- []string
- A set of tags. The load balancer will be returned if it does not have any of the specified tags.
- []string
- A set of tags. The load balancer will be returned if it does not have all of the specified tags.
- Vip
Address string - The IP address of the loadbalancer's virtual IP (VIP).
- description String
- The human-readable description for the loadbalancer.
- loadbalancer
Id String - The ID of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - name String
- The name of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - region String
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used. - List<String>
- A set of tags applied to the loadbalancer. The load balancer will be returned if it has all of the specified tags.
- List<String>
- A set of tags. The load balancer will be returned if it has at least one of the specified tags.
- List<String>
- A set of tags. The load balancer will be returned if it does not have any of the specified tags.
- List<String>
- A set of tags. The load balancer will be returned if it does not have all of the specified tags.
- vip
Address String - The IP address of the loadbalancer's virtual IP (VIP).
- description string
- The human-readable description for the loadbalancer.
- loadbalancer
Id string - The ID of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - name string
- The name of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - region string
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used. - string[]
- A set of tags applied to the loadbalancer. The load balancer will be returned if it has all of the specified tags.
- string[]
- A set of tags. The load balancer will be returned if it has at least one of the specified tags.
- string[]
- A set of tags. The load balancer will be returned if it does not have any of the specified tags.
- string[]
- A set of tags. The load balancer will be returned if it does not have all of the specified tags.
- vip
Address string - The IP address of the loadbalancer's virtual IP (VIP).
- description str
- The human-readable description for the loadbalancer.
- loadbalancer_
id str - The ID of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - name str
- The name of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - region str
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used. - Sequence[str]
- A set of tags applied to the loadbalancer. The load balancer will be returned if it has all of the specified tags.
- Sequence[str]
- A set of tags. The load balancer will be returned if it has at least one of the specified tags.
- Sequence[str]
- A set of tags. The load balancer will be returned if it does not have any of the specified tags.
- Sequence[str]
- A set of tags. The load balancer will be returned if it does not have all of the specified tags.
- vip_
address str - The IP address of the loadbalancer's virtual IP (VIP).
- description String
- The human-readable description for the loadbalancer.
- loadbalancer
Id String - The ID of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - name String
- The name of the loadbalancer. Exactly one of
name,loadbalancer_idis required to be set. - region String
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used. - List<String>
- A set of tags applied to the loadbalancer. The load balancer will be returned if it has all of the specified tags.
- List<String>
- A set of tags. The load balancer will be returned if it has at least one of the specified tags.
- List<String>
- A set of tags. The load balancer will be returned if it does not have any of the specified tags.
- List<String>
- A set of tags. The load balancer will be returned if it does not have all of the specified tags.
- vip
Address String - The IP address of the loadbalancer's virtual IP (VIP).
getLoadbalancerV2 Result
The following output properties are available:
- Additional
Vips List<string> - A list of additional VIP IP addresses associated with the loadbalancer.
- Admin
State boolUp - The administrative state of the loadbalancer (true/false).
- Availability
Zone string - The availability zone of the loadbalancer.
- Description string
- The description of the loadbalancer.
- Flavor
Id string - The flavor ID used by the loadbalancer.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listeners
List<Pulumi.
Open Stack. Load Balancer. Outputs. Get Loadbalancer V2Listener> - A list of listener IDs (UUIDs) associated with the loadbalancer.
- Loadbalancer
Id string - Loadbalancer
Provider string - The loadbalancer driver/provider used by Octavia
(for example,
amphora). - Name string
- The name of the loadbalancer.
- Operating
Status string - The operating status of the loadbalancer.
- Pools
List<Pulumi.
Open Stack. Load Balancer. Outputs. Get Loadbalancer V2Pool> - A list of pool IDs (UUIDs) associated with the loadbalancer.
- Project
Id string - The owner (project/tenant) ID of the loadbalancer.
- Provisioning
Status string - The provisioning status of the loadbalancer.
- Region string
- List<string>
- A set of tags applied to the loadbalancer.
- Vip
Address string - The IP address of the loadbalancer’s virtual IP (VIP).
- Vip
Network stringId - The network ID associated with the VIP.
- Vip
Port stringId - The port ID associated with the VIP.
- Vip
Qos stringPolicy Id - The QoS policy ID associated with the VIP, if any.
- Vip
Subnet stringId - The subnet ID associated with the VIP.
- List<string>
- List<string>
- List<string>
- Additional
Vips []string - A list of additional VIP IP addresses associated with the loadbalancer.
- Admin
State boolUp - The administrative state of the loadbalancer (true/false).
- Availability
Zone string - The availability zone of the loadbalancer.
- Description string
- The description of the loadbalancer.
- Flavor
Id string - The flavor ID used by the loadbalancer.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listeners
[]Get
Loadbalancer V2Listener - A list of listener IDs (UUIDs) associated with the loadbalancer.
- Loadbalancer
Id string - Loadbalancer
Provider string - The loadbalancer driver/provider used by Octavia
(for example,
amphora). - Name string
- The name of the loadbalancer.
- Operating
Status string - The operating status of the loadbalancer.
- Pools
[]Get
Loadbalancer V2Pool - A list of pool IDs (UUIDs) associated with the loadbalancer.
- Project
Id string - The owner (project/tenant) ID of the loadbalancer.
- Provisioning
Status string - The provisioning status of the loadbalancer.
- Region string
- []string
- A set of tags applied to the loadbalancer.
- Vip
Address string - The IP address of the loadbalancer’s virtual IP (VIP).
- Vip
Network stringId - The network ID associated with the VIP.
- Vip
Port stringId - The port ID associated with the VIP.
- Vip
Qos stringPolicy Id - The QoS policy ID associated with the VIP, if any.
- Vip
Subnet stringId - The subnet ID associated with the VIP.
- []string
- []string
- []string
- additional
Vips List<String> - A list of additional VIP IP addresses associated with the loadbalancer.
- admin
State BooleanUp - The administrative state of the loadbalancer (true/false).
- availability
Zone String - The availability zone of the loadbalancer.
- description String
- The description of the loadbalancer.
- flavor
Id String - The flavor ID used by the loadbalancer.
- id String
- The provider-assigned unique ID for this managed resource.
- listeners
List<Get
Loadbalancer V2Listener> - A list of listener IDs (UUIDs) associated with the loadbalancer.
- loadbalancer
Id String - loadbalancer
Provider String - The loadbalancer driver/provider used by Octavia
(for example,
amphora). - name String
- The name of the loadbalancer.
- operating
Status String - The operating status of the loadbalancer.
- pools
List<Get
Loadbalancer V2Pool> - A list of pool IDs (UUIDs) associated with the loadbalancer.
- project
Id String - The owner (project/tenant) ID of the loadbalancer.
- provisioning
Status String - The provisioning status of the loadbalancer.
- region String
- List<String>
- A set of tags applied to the loadbalancer.
- vip
Address String - The IP address of the loadbalancer’s virtual IP (VIP).
- vip
Network StringId - The network ID associated with the VIP.
- vip
Port StringId - The port ID associated with the VIP.
- vip
Qos StringPolicy Id - The QoS policy ID associated with the VIP, if any.
- vip
Subnet StringId - The subnet ID associated with the VIP.
- List<String>
- List<String>
- List<String>
- additional
Vips string[] - A list of additional VIP IP addresses associated with the loadbalancer.
- admin
State booleanUp - The administrative state of the loadbalancer (true/false).
- availability
Zone string - The availability zone of the loadbalancer.
- description string
- The description of the loadbalancer.
- flavor
Id string - The flavor ID used by the loadbalancer.
- id string
- The provider-assigned unique ID for this managed resource.
- listeners
Get
Loadbalancer V2Listener[] - A list of listener IDs (UUIDs) associated with the loadbalancer.
- loadbalancer
Id string - loadbalancer
Provider string - The loadbalancer driver/provider used by Octavia
(for example,
amphora). - name string
- The name of the loadbalancer.
- operating
Status string - The operating status of the loadbalancer.
- pools
Get
Loadbalancer V2Pool[] - A list of pool IDs (UUIDs) associated with the loadbalancer.
- project
Id string - The owner (project/tenant) ID of the loadbalancer.
- provisioning
Status string - The provisioning status of the loadbalancer.
- region string
- string[]
- A set of tags applied to the loadbalancer.
- vip
Address string - The IP address of the loadbalancer’s virtual IP (VIP).
- vip
Network stringId - The network ID associated with the VIP.
- vip
Port stringId - The port ID associated with the VIP.
- vip
Qos stringPolicy Id - The QoS policy ID associated with the VIP, if any.
- vip
Subnet stringId - The subnet ID associated with the VIP.
- string[]
- string[]
- string[]
- additional_
vips Sequence[str] - A list of additional VIP IP addresses associated with the loadbalancer.
- admin_
state_ boolup - The administrative state of the loadbalancer (true/false).
- availability_
zone str - The availability zone of the loadbalancer.
- description str
- The description of the loadbalancer.
- flavor_
id str - The flavor ID used by the loadbalancer.
- id str
- The provider-assigned unique ID for this managed resource.
- listeners
Sequence[Get
Loadbalancer V2Listener] - A list of listener IDs (UUIDs) associated with the loadbalancer.
- loadbalancer_
id str - loadbalancer_
provider str - The loadbalancer driver/provider used by Octavia
(for example,
amphora). - name str
- The name of the loadbalancer.
- operating_
status str - The operating status of the loadbalancer.
- pools
Sequence[Get
Loadbalancer V2Pool] - A list of pool IDs (UUIDs) associated with the loadbalancer.
- project_
id str - The owner (project/tenant) ID of the loadbalancer.
- provisioning_
status str - The provisioning status of the loadbalancer.
- region str
- Sequence[str]
- A set of tags applied to the loadbalancer.
- vip_
address str - The IP address of the loadbalancer’s virtual IP (VIP).
- vip_
network_ strid - The network ID associated with the VIP.
- vip_
port_ strid - The port ID associated with the VIP.
- vip_
qos_ strpolicy_ id - The QoS policy ID associated with the VIP, if any.
- vip_
subnet_ strid - The subnet ID associated with the VIP.
- Sequence[str]
- Sequence[str]
- Sequence[str]
- additional
Vips List<String> - A list of additional VIP IP addresses associated with the loadbalancer.
- admin
State BooleanUp - The administrative state of the loadbalancer (true/false).
- availability
Zone String - The availability zone of the loadbalancer.
- description String
- The description of the loadbalancer.
- flavor
Id String - The flavor ID used by the loadbalancer.
- id String
- The provider-assigned unique ID for this managed resource.
- listeners List<Property Map>
- A list of listener IDs (UUIDs) associated with the loadbalancer.
- loadbalancer
Id String - loadbalancer
Provider String - The loadbalancer driver/provider used by Octavia
(for example,
amphora). - name String
- The name of the loadbalancer.
- operating
Status String - The operating status of the loadbalancer.
- pools List<Property Map>
- A list of pool IDs (UUIDs) associated with the loadbalancer.
- project
Id String - The owner (project/tenant) ID of the loadbalancer.
- provisioning
Status String - The provisioning status of the loadbalancer.
- region String
- List<String>
- A set of tags applied to the loadbalancer.
- vip
Address String - The IP address of the loadbalancer’s virtual IP (VIP).
- vip
Network StringId - The network ID associated with the VIP.
- vip
Port StringId - The port ID associated with the VIP.
- vip
Qos StringPolicy Id - The QoS policy ID associated with the VIP, if any.
- vip
Subnet StringId - The subnet ID associated with the VIP.
- List<String>
- List<String>
- List<String>
Supporting Types
GetLoadbalancerV2Listener
- Id string
- Id string
- id String
- id string
- id str
- id String
GetLoadbalancerV2Pool
- Id string
- Id string
- id String
- id string
- id str
- id String
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.
OpenStack v5.4.0 published on Wednesday, Nov 12, 2025 by Pulumi
