Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Get the details of a public cloud project loadbalancer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
export = async () => {
const lb = await ovh.CloudProject.getLoadBalancer({
serviceName: "XXXXXX",
regionName: "XXX",
id: "XXX",
});
return {
lb: lb,
};
}
import pulumi
import pulumi_ovh as ovh
lb = ovh.CloudProject.get_load_balancer(service_name="XXXXXX",
region_name="XXX",
id="XXX")
pulumi.export("lb", lb)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
lb, err := cloudproject.GetLoadBalancer(ctx, &cloudproject.GetLoadBalancerArgs{
ServiceName: "XXXXXX",
RegionName: "XXX",
Id: "XXX",
}, nil)
if err != nil {
return err
}
ctx.Export("lb", lb)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var lb = Ovh.CloudProject.GetLoadBalancer.Invoke(new()
{
ServiceName = "XXXXXX",
RegionName = "XXX",
Id = "XXX",
});
return new Dictionary<string, object?>
{
["lb"] = lb,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.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 lb = CloudProjectFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()
.serviceName("XXXXXX")
.regionName("XXX")
.id("XXX")
.build());
ctx.export("lb", lb);
}
}
variables:
lb:
fn::invoke:
function: ovh:CloudProject:getLoadBalancer
arguments:
serviceName: XXXXXX
regionName: XXX
id: XXX
outputs:
lb: ${lb}
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(id: Optional[str] = None,
region_name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLoadBalancerResult
def get_load_balancer_output(id: Optional[pulumi.Input[str]] = None,
region_name: Optional[pulumi.Input[str]] = None,
service_name: 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: ovh:CloudProject/getLoadBalancer:getLoadBalancer
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- ID of the loadbalancer
- Region
Name string - Region of the loadbalancer.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Id string
- ID of the loadbalancer
- Region
Name string - Region of the loadbalancer.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id String
- ID of the loadbalancer
- region
Name String - Region of the loadbalancer.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id string
- ID of the loadbalancer
- region
Name string - Region of the loadbalancer.
- service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id str
- ID of the loadbalancer
- region_
name str - Region of the loadbalancer.
- service_
name str - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id String
- ID of the loadbalancer
- region
Name String - Region of the loadbalancer.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getLoadBalancer Result
The following output properties are available:
- Created
At string - Date of creation of the loadbalancer
- Flavor
Id string - ID of the flavor
- Floating
Ip GetLoad Balancer Floating Ip - Information about the floating IP
- Id string
- ID of the floating IP
- Name string
- Name of the loadbalancer
- Operating
Status string - Operating status of the loadbalancer
- Provisioning
Status string - Provisioning status of the loadbalancer
- Region
Name string - Region of the loadbalancer
- Service
Name string - ID of the public cloud project
- Updated
At string - Last update date of the loadbalancer
- Vip
Address string - IP address of the Virtual IP
- Vip
Network stringId - Openstack ID of the network for the Virtual IP
- Vip
Subnet stringId - ID of the subnet for the Virtual IP
- Created
At string - Date of creation of the loadbalancer
- Flavor
Id string - ID of the flavor
- Floating
Ip GetLoad Balancer Floating Ip - Information about the floating IP
- Id string
- ID of the floating IP
- Name string
- Name of the loadbalancer
- Operating
Status string - Operating status of the loadbalancer
- Provisioning
Status string - Provisioning status of the loadbalancer
- Region
Name string - Region of the loadbalancer
- Service
Name string - ID of the public cloud project
- Updated
At string - Last update date of the loadbalancer
- Vip
Address string - IP address of the Virtual IP
- Vip
Network stringId - Openstack ID of the network for the Virtual IP
- Vip
Subnet stringId - ID of the subnet for the Virtual IP
- created
At String - Date of creation of the loadbalancer
- flavor
Id String - ID of the flavor
- floating
Ip GetLoad Balancer Floating Ip - Information about the floating IP
- id String
- ID of the floating IP
- name String
- Name of the loadbalancer
- operating
Status String - Operating status of the loadbalancer
- provisioning
Status String - Provisioning status of the loadbalancer
- region
Name String - Region of the loadbalancer
- service
Name String - ID of the public cloud project
- updated
At String - Last update date of the loadbalancer
- vip
Address String - IP address of the Virtual IP
- vip
Network StringId - Openstack ID of the network for the Virtual IP
- vip
Subnet StringId - ID of the subnet for the Virtual IP
- created
At string - Date of creation of the loadbalancer
- flavor
Id string - ID of the flavor
- floating
Ip GetLoad Balancer Floating Ip - Information about the floating IP
- id string
- ID of the floating IP
- name string
- Name of the loadbalancer
- operating
Status string - Operating status of the loadbalancer
- provisioning
Status string - Provisioning status of the loadbalancer
- region
Name string - Region of the loadbalancer
- service
Name string - ID of the public cloud project
- updated
At string - Last update date of the loadbalancer
- vip
Address string - IP address of the Virtual IP
- vip
Network stringId - Openstack ID of the network for the Virtual IP
- vip
Subnet stringId - ID of the subnet for the Virtual IP
- created_
at str - Date of creation of the loadbalancer
- flavor_
id str - ID of the flavor
- floating_
ip GetLoad Balancer Floating Ip - Information about the floating IP
- id str
- ID of the floating IP
- name str
- Name of the loadbalancer
- operating_
status str - Operating status of the loadbalancer
- provisioning_
status str - Provisioning status of the loadbalancer
- region_
name str - Region of the loadbalancer
- service_
name str - ID of the public cloud project
- updated_
at str - Last update date of the loadbalancer
- vip_
address str - IP address of the Virtual IP
- vip_
network_ strid - Openstack ID of the network for the Virtual IP
- vip_
subnet_ strid - ID of the subnet for the Virtual IP
- created
At String - Date of creation of the loadbalancer
- flavor
Id String - ID of the flavor
- floating
Ip Property Map - Information about the floating IP
- id String
- ID of the floating IP
- name String
- Name of the loadbalancer
- operating
Status String - Operating status of the loadbalancer
- provisioning
Status String - Provisioning status of the loadbalancer
- region
Name String - Region of the loadbalancer
- service
Name String - ID of the public cloud project
- updated
At String - Last update date of the loadbalancer
- vip
Address String - IP address of the Virtual IP
- vip
Network StringId - Openstack ID of the network for the Virtual IP
- vip
Subnet StringId - ID of the subnet for the Virtual IP
Supporting Types
GetLoadBalancerFloatingIp
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
