OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud
ovh.CloudProject.getLoadBalancer
Explore with Pulumi AI
Get the details of a public cloud project loadbalancer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const lbLoadBalancer = ovh.CloudProject.getLoadBalancer({
    serviceName: "XXXXXX",
    regionName: "XXX",
    id: "XXX",
});
export const lb = lbLoadBalancer;
import pulumi
import pulumi_ovh as ovh
lb_load_balancer = ovh.CloudProject.get_load_balancer(service_name="XXXXXX",
    region_name="XXX",
    id="XXX")
pulumi.export("lb", lb_load_balancer)
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 {
		lbLoadBalancer, err := cloudproject.GetLoadBalancer(ctx, &cloudproject.GetLoadBalancerArgs{
			ServiceName: "XXXXXX",
			RegionName:  "XXX",
			Id:          "XXX",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("lb", lbLoadBalancer)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var lbLoadBalancer = Ovh.CloudProject.GetLoadBalancer.Invoke(new()
    {
        ServiceName = "XXXXXX",
        RegionName = "XXX",
        Id = "XXX",
    });
    return new Dictionary<string, object?>
    {
        ["lb"] = lbLoadBalancer,
    };
});
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 lbLoadBalancer = CloudProjectFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()
            .serviceName("XXXXXX")
            .regionName("XXX")
            .id("XXX")
            .build());
        ctx.export("lb", lbLoadBalancer);
    }
}
variables:
  lbLoadBalancer:
    fn::invoke:
      function: ovh:CloudProject:getLoadBalancer
      arguments:
        serviceName: XXXXXX
        regionName: XXX
        id: XXX
outputs:
  lb: ${lbLoadBalancer}
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 GetLoadBalancer(ctx *Context, args *GetLoadBalancerArgs, opts ...InvokeOption) (*GetLoadBalancerResult, error)
func GetLoadBalancerOutput(ctx *Context, args *GetLoadBalancerOutputArgs, opts ...InvokeOption) GetLoadBalancerResultOutput> Note: This function is named GetLoadBalancer 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 cloudproject.Get Load 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.