Viewing docs for OVHCloud v2.21.0
published on Friday, Sep 25, 2026 by OVHcloud
published on Friday, Sep 25, 2026 by OVHcloud
Viewing docs for OVHCloud v2.21.0
published on Friday, Sep 25, 2026 by OVHcloud
published on Friday, Sep 25, 2026 by OVHcloud
Use this data source to get information about a load balancer in a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const lb = ovh.getCloudLoadbalancer({
serviceName: "<public cloud project ID>",
id: "<load balancer ID>",
});
export const loadbalancerVip = lb.then(lb => lb.currentState?.network?.addresses);
import pulumi
import pulumi_ovh as ovh
lb = ovh.get_cloud_loadbalancer(service_name="<public cloud project ID>",
id="<load balancer ID>")
pulumi.export("loadbalancerVip", lb.current_state.network.addresses)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
lb, err := ovh.LookupCloudLoadbalancer(ctx, &ovh.LookupCloudLoadbalancerArgs{
ServiceName: "<public cloud project ID>",
Id: "<load balancer ID>",
}, nil)
if err != nil {
return err
}
ctx.Export("loadbalancerVip", lb.CurrentState.Network.Addresses)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var lb = Ovh.GetCloudLoadbalancer.Invoke(new()
{
ServiceName = "<public cloud project ID>",
Id = "<load balancer ID>",
});
return new Dictionary<string, object?>
{
["loadbalancerVip"] = lb.Apply(getCloudLoadbalancerResult => getCloudLoadbalancerResult.CurrentState?.Network?.Addresses),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetCloudLoadbalancerArgs;
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 = OvhFunctions.getCloudLoadbalancer(GetCloudLoadbalancerArgs.builder()
.serviceName("<public cloud project ID>")
.id("<load balancer ID>")
.build());
ctx.export("loadbalancerVip", lb.currentState().network().addresses());
}
}
variables:
lb:
fn::invoke:
function: ovh:getCloudLoadbalancer
arguments:
serviceName: <public cloud project ID>
id: <load balancer ID>
outputs:
loadbalancerVip: ${lb.currentState.network.addresses}
Example coming soon!
Using getCloudLoadbalancer
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 getCloudLoadbalancer(args: GetCloudLoadbalancerArgs, opts?: InvokeOptions): Promise<GetCloudLoadbalancerResult>
function getCloudLoadbalancerOutput(args: GetCloudLoadbalancerOutputArgs, opts?: InvokeOutputOptions): Output<GetCloudLoadbalancerResult>def get_cloud_loadbalancer(id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudLoadbalancerResult
def get_cloud_loadbalancer_output(id: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetCloudLoadbalancerResult]func LookupCloudLoadbalancer(ctx *Context, args *LookupCloudLoadbalancerArgs, opts ...InvokeOption) (*LookupCloudLoadbalancerResult, error)
func LookupCloudLoadbalancerOutput(ctx *Context, args *LookupCloudLoadbalancerOutputArgs, opts ...InvokeOption) LookupCloudLoadbalancerResultOutput> Note: This function is named LookupCloudLoadbalancer in the Go SDK.
public static class GetCloudLoadbalancer
{
public static Task<GetCloudLoadbalancerResult> InvokeAsync(GetCloudLoadbalancerArgs args, InvokeOptions? opts = null)
public static Output<GetCloudLoadbalancerResult> Invoke(GetCloudLoadbalancerInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetCloudLoadbalancerResult> Invoke(GetCloudLoadbalancerInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetCloudLoadbalancerResult> getCloudLoadbalancer(GetCloudLoadbalancerArgs args, InvokeOptions options)
public static Output<GetCloudLoadbalancerResult> getCloudLoadbalancer(GetCloudLoadbalancerArgs args, InvokeOptions options)
public static Output<GetCloudLoadbalancerResult> getCloudLoadbalancer(GetCloudLoadbalancerArgs args, InvokeOutputOptions options)
fn::invoke:
function: ovh:index/getCloudLoadbalancer:getCloudLoadbalancer
arguments:
# arguments dictionarydata "ovh_get_cloud_loadbalancer" "name" {
# arguments
}The following arguments are supported:
- Id string
- ID of the load balancer.
- Service
Name string - Service name of the resource representing the id of the cloud project.
- Id string
- ID of the load balancer.
- Service
Name string - Service name of the resource representing the id of the cloud project.
- id string
- ID of the load balancer.
- service_
name string - Service name of the resource representing the id of the cloud project.
- id String
- ID of the load balancer.
- service
Name String - Service name of the resource representing the id of the cloud project.
- id string
- ID of the load balancer.
- service
Name string - Service name of the resource representing the id of the cloud project.
- id str
- ID of the load balancer.
- service_
name str - Service name of the resource representing the id of the cloud project.
- id String
- ID of the load balancer.
- service
Name String - Service name of the resource representing the id of the cloud project.
getCloudLoadbalancer Result
The following output properties are available:
- Availability
Zone string - Availability zone.
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the load balancer.
- Current
State GetCloud Loadbalancer Current State - Current state of the load balancer:
- Description string
- Load balancer description.
- Flavor
Name string - Name of the load balancer flavor.
- Id string
- Flavor ID.
- Name string
- Load balancer name.
- Network
Get
Cloud Loadbalancer Network - VIP network:
- Region string
- Region.
- Resource
Status string - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Service
Name string - Updated
At string - Last update date of the load balancer.
- Availability
Zone string - Availability zone.
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the load balancer.
- Current
State GetCloud Loadbalancer Current State - Current state of the load balancer:
- Description string
- Load balancer description.
- Flavor
Name string - Name of the load balancer flavor.
- Id string
- Flavor ID.
- Name string
- Load balancer name.
- Network
Get
Cloud Loadbalancer Network - VIP network:
- Region string
- Region.
- Resource
Status string - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Service
Name string - Updated
At string - Last update date of the load balancer.
- availability_
zone string - Availability zone.
- checksum string
- Computed hash representing the current target specification value.
- created_
at string - Creation date of the load balancer.
- current_
state object - Current state of the load balancer:
- description string
- Load balancer description.
- flavor_
name string - Name of the load balancer flavor.
- id string
- Flavor ID.
- name string
- Load balancer name.
- network object
- VIP network:
- region string
- Region.
- resource_
status string - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service_
name string - updated_
at string - Last update date of the load balancer.
- availability
Zone String - Availability zone.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the load balancer.
- current
State GetCloud Loadbalancer Current State - Current state of the load balancer:
- description String
- Load balancer description.
- flavor
Name String - Name of the load balancer flavor.
- id String
- Flavor ID.
- name String
- Load balancer name.
- network
Get
Cloud Loadbalancer Network - VIP network:
- region String
- Region.
- resource
Status String - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name String - updated
At String - Last update date of the load balancer.
- availability
Zone string - Availability zone.
- checksum string
- Computed hash representing the current target specification value.
- created
At string - Creation date of the load balancer.
- current
State GetCloud Loadbalancer Current State - Current state of the load balancer:
- description string
- Load balancer description.
- flavor
Name string - Name of the load balancer flavor.
- id string
- Flavor ID.
- name string
- Load balancer name.
- network
Get
Cloud Loadbalancer Network - VIP network:
- region string
- Region.
- resource
Status string - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name string - updated
At string - Last update date of the load balancer.
- availability_
zone str - Availability zone.
- checksum str
- Computed hash representing the current target specification value.
- created_
at str - Creation date of the load balancer.
- current_
state GetCloud Loadbalancer Current State - Current state of the load balancer:
- description str
- Load balancer description.
- flavor_
name str - Name of the load balancer flavor.
- id str
- Flavor ID.
- name str
- Load balancer name.
- network
Get
Cloud Loadbalancer Network - VIP network:
- region str
- Region.
- resource_
status str - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service_
name str - updated_
at str - Last update date of the load balancer.
- availability
Zone String - Availability zone.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the load balancer.
- current
State Property Map - Current state of the load balancer:
- description String
- Load balancer description.
- flavor
Name String - Name of the load balancer flavor.
- id String
- Flavor ID.
- name String
- Load balancer name.
- network Property Map
- VIP network:
- region String
- Region.
- resource
Status String - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name String - updated
At String - Last update date of the load balancer.
Supporting Types
GetCloudLoadbalancerCurrentState
- Availability
Zone string - Availability zone.
- Description string
- Load balancer description.
- Flavor
Get
Cloud Loadbalancer Current State Flavor - Load balancer flavor reference:
- Name string
- Load balancer name.
- Network
Get
Cloud Loadbalancer Current State Network - VIP network:
- Operating
Status string - Operating status of the load balancer.
- Provisioning
Status string - Provisioning status of the load balancer.
- Region string
- Region.
- Availability
Zone string - Availability zone.
- Description string
- Load balancer description.
- Flavor
Get
Cloud Loadbalancer Current State Flavor - Load balancer flavor reference:
- Name string
- Load balancer name.
- Network
Get
Cloud Loadbalancer Current State Network - VIP network:
- Operating
Status string - Operating status of the load balancer.
- Provisioning
Status string - Provisioning status of the load balancer.
- Region string
- Region.
- availability_
zone string - Availability zone.
- description string
- Load balancer description.
- flavor object
- Load balancer flavor reference:
- name string
- Load balancer name.
- network object
- VIP network:
- operating_
status string - Operating status of the load balancer.
- provisioning_
status string - Provisioning status of the load balancer.
- region string
- Region.
- availability
Zone String - Availability zone.
- description String
- Load balancer description.
- flavor
Get
Cloud Loadbalancer Current State Flavor - Load balancer flavor reference:
- name String
- Load balancer name.
- network
Get
Cloud Loadbalancer Current State Network - VIP network:
- operating
Status String - Operating status of the load balancer.
- provisioning
Status String - Provisioning status of the load balancer.
- region String
- Region.
- availability
Zone string - Availability zone.
- description string
- Load balancer description.
- flavor
Get
Cloud Loadbalancer Current State Flavor - Load balancer flavor reference:
- name string
- Load balancer name.
- network
Get
Cloud Loadbalancer Current State Network - VIP network:
- operating
Status string - Operating status of the load balancer.
- provisioning
Status string - Provisioning status of the load balancer.
- region string
- Region.
- availability_
zone str - Availability zone.
- description str
- Load balancer description.
- flavor
Get
Cloud Loadbalancer Current State Flavor - Load balancer flavor reference:
- name str
- Load balancer name.
- network
Get
Cloud Loadbalancer Current State Network - VIP network:
- operating_
status str - Operating status of the load balancer.
- provisioning_
status str - Provisioning status of the load balancer.
- region str
- Region.
- availability
Zone String - Availability zone.
- description String
- Load balancer description.
- flavor Property Map
- Load balancer flavor reference:
- name String
- Load balancer name.
- network Property Map
- VIP network:
- operating
Status String - Operating status of the load balancer.
- provisioning
Status String - Provisioning status of the load balancer.
- region String
- Region.
GetCloudLoadbalancerCurrentStateFlavor
- Id string
- ID of the load balancer.
- Id string
- ID of the load balancer.
- id string
- ID of the load balancer.
- id String
- ID of the load balancer.
- id string
- ID of the load balancer.
- id str
- ID of the load balancer.
- id String
- ID of the load balancer.
GetCloudLoadbalancerCurrentStateNetwork
- Addresses
List<Get
Cloud Loadbalancer Current State Network Address> - Addresses carried by the VIP port:
- Id string
- ID of the load balancer.
- Subnet
Id string - Subnet ID.
- Addresses
[]Get
Cloud Loadbalancer Current State Network Address - Addresses carried by the VIP port:
- Id string
- ID of the load balancer.
- Subnet
Id string - Subnet ID.
- addresses list(object)
- Addresses carried by the VIP port:
- id string
- ID of the load balancer.
- subnet_
id string - Subnet ID.
- addresses
List<Get
Cloud Loadbalancer Current State Network Address> - Addresses carried by the VIP port:
- id String
- ID of the load balancer.
- subnet
Id String - Subnet ID.
- addresses
Get
Cloud Loadbalancer Current State Network Address[] - Addresses carried by the VIP port:
- id string
- ID of the load balancer.
- subnet
Id string - Subnet ID.
- addresses
Sequence[Get
Cloud Loadbalancer Current State Network Address] - Addresses carried by the VIP port:
- id str
- ID of the load balancer.
- subnet_
id str - Subnet ID.
- addresses List<Property Map>
- Addresses carried by the VIP port:
- id String
- ID of the load balancer.
- subnet
Id String - Subnet ID.
GetCloudLoadbalancerCurrentStateNetworkAddress
GetCloudLoadbalancerNetwork
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.21.0
published on Friday, Sep 25, 2026 by OVHcloud
published on Friday, Sep 25, 2026 by OVHcloud