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 list the load balancers of a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const lbs = ovh.getCloudLoadbalancers({
serviceName: "<public cloud project ID>",
});
export const loadbalancerNames = lbs.then(lbs => .map(lb => (lb.name)));
import pulumi
import pulumi_ovh as ovh
lbs = ovh.get_cloud_loadbalancers(service_name="<public cloud project ID>")
pulumi.export("loadbalancerNames", [lb.name for lb in lbs.loadbalancers])
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var lbs = Ovh.GetCloudLoadbalancers.Invoke(new()
{
ServiceName = "<public cloud project ID>",
});
return new Dictionary<string, object?>
{
["loadbalancerNames"] = .Select(lb =>
{
return lb.Name;
}).ToList(),
};
});
Example coming soon!
Example coming soon!
Example coming soon!
Using getCloudLoadbalancers
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 getCloudLoadbalancers(args: GetCloudLoadbalancersArgs, opts?: InvokeOptions): Promise<GetCloudLoadbalancersResult>
function getCloudLoadbalancersOutput(args: GetCloudLoadbalancersOutputArgs, opts?: InvokeOutputOptions): Output<GetCloudLoadbalancersResult>def get_cloud_loadbalancers(service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudLoadbalancersResult
def get_cloud_loadbalancers_output(service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetCloudLoadbalancersResult]func GetCloudLoadbalancers(ctx *Context, args *GetCloudLoadbalancersArgs, opts ...InvokeOption) (*GetCloudLoadbalancersResult, error)
func GetCloudLoadbalancersOutput(ctx *Context, args *GetCloudLoadbalancersOutputArgs, opts ...InvokeOption) GetCloudLoadbalancersResultOutput> Note: This function is named GetCloudLoadbalancers in the Go SDK.
public static class GetCloudLoadbalancers
{
public static Task<GetCloudLoadbalancersResult> InvokeAsync(GetCloudLoadbalancersArgs args, InvokeOptions? opts = null)
public static Output<GetCloudLoadbalancersResult> Invoke(GetCloudLoadbalancersInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetCloudLoadbalancersResult> Invoke(GetCloudLoadbalancersInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetCloudLoadbalancersResult> getCloudLoadbalancers(GetCloudLoadbalancersArgs args, InvokeOptions options)
public static Output<GetCloudLoadbalancersResult> getCloudLoadbalancers(GetCloudLoadbalancersArgs args, InvokeOptions options)
public static Output<GetCloudLoadbalancersResult> getCloudLoadbalancers(GetCloudLoadbalancersArgs args, InvokeOutputOptions options)
fn::invoke:
function: ovh:index/getCloudLoadbalancers:getCloudLoadbalancers
arguments:
# arguments dictionarydata "ovh_get_cloud_loadbalancers" "name" {
# arguments
}The following arguments are supported:
- Service
Name string - Service name of the resource representing the id of the cloud project.
- Service
Name string - Service name of the resource representing the id of the cloud project.
- service_
name string - Service name of the resource representing the id of the cloud project.
- service
Name String - Service name of the resource representing the id of the cloud project.
- service
Name string - Service name of the resource representing the id of the cloud project.
- service_
name str - Service name of the resource representing the id of the cloud project.
- service
Name String - Service name of the resource representing the id of the cloud project.
getCloudLoadbalancers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Loadbalancers
List<Get
Cloud Loadbalancers Loadbalancer> - List of load balancers. Each element exports:
- Service
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Loadbalancers
[]Get
Cloud Loadbalancers Loadbalancer - List of load balancers. Each element exports:
- Service
Name string
- id string
- The provider-assigned unique ID for this managed resource.
- loadbalancers list(object)
- List of load balancers. Each element exports:
- service_
name string
- id String
- The provider-assigned unique ID for this managed resource.
- loadbalancers
List<Get
Cloud Loadbalancers Loadbalancer> - List of load balancers. Each element exports:
- service
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- loadbalancers
Get
Cloud Loadbalancers Loadbalancer[] - List of load balancers. Each element exports:
- service
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- loadbalancers
Sequence[Get
Cloud Loadbalancers Loadbalancer] - List of load balancers. Each element exports:
- service_
name str
- id String
- The provider-assigned unique ID for this managed resource.
- loadbalancers List<Property Map>
- List of load balancers. Each element exports:
- service
Name String
Supporting Types
GetCloudLoadbalancersLoadbalancer
- 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 Loadbalancers 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 Loadbalancers Loadbalancer Network - VIP network:
- Region string
- Region.
- Resource
Status string - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - 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 Loadbalancers 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 Loadbalancers Loadbalancer Network - VIP network:
- Region string
- Region.
- Resource
Status string - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - 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). - 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 Loadbalancers 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 Loadbalancers Loadbalancer Network - VIP network:
- region String
- Region.
- resource
Status String - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - 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 Loadbalancers 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 Loadbalancers Loadbalancer Network - VIP network:
- region string
- Region.
- resource
Status string - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - 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 Loadbalancers 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 Loadbalancers Loadbalancer Network - VIP network:
- region str
- Region.
- resource_
status str - Load balancer readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - 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). - updated
At String - Last update date of the load balancer.
GetCloudLoadbalancersLoadbalancerCurrentState
- Availability
Zone string - Availability zone.
- Description string
- Load balancer description.
- Flavor
Get
Cloud Loadbalancers Loadbalancer Current State Flavor - Load balancer flavor reference:
- Name string
- Load balancer name.
- Network
Get
Cloud Loadbalancers 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 Loadbalancers Loadbalancer Current State Flavor - Load balancer flavor reference:
- Name string
- Load balancer name.
- Network
Get
Cloud Loadbalancers 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 Loadbalancers Loadbalancer Current State Flavor - Load balancer flavor reference:
- name String
- Load balancer name.
- network
Get
Cloud Loadbalancers 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 Loadbalancers Loadbalancer Current State Flavor - Load balancer flavor reference:
- name string
- Load balancer name.
- network
Get
Cloud Loadbalancers 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 Loadbalancers Loadbalancer Current State Flavor - Load balancer flavor reference:
- name str
- Load balancer name.
- network
Get
Cloud Loadbalancers 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.
GetCloudLoadbalancersLoadbalancerCurrentStateFlavor
- Id string
- Flavor ID.
- Id string
- Flavor ID.
- id string
- Flavor ID.
- id String
- Flavor ID.
- id string
- Flavor ID.
- id str
- Flavor ID.
- id String
- Flavor ID.
GetCloudLoadbalancersLoadbalancerCurrentStateNetwork
- Addresses
List<Get
Cloud Loadbalancers Loadbalancer Current State Network Address> - Addresses carried by the VIP port:
- Id string
- Flavor ID.
- Subnet
Id string - Subnet ID.
- Addresses
[]Get
Cloud Loadbalancers Loadbalancer Current State Network Address - Addresses carried by the VIP port:
- Id string
- Flavor ID.
- Subnet
Id string - Subnet ID.
- addresses list(object)
- Addresses carried by the VIP port:
- id string
- Flavor ID.
- subnet_
id string - Subnet ID.
- addresses
List<Get
Cloud Loadbalancers Loadbalancer Current State Network Address> - Addresses carried by the VIP port:
- id String
- Flavor ID.
- subnet
Id String - Subnet ID.
- addresses
Get
Cloud Loadbalancers Loadbalancer Current State Network Address[] - Addresses carried by the VIP port:
- id string
- Flavor ID.
- subnet
Id string - Subnet ID.
- addresses
Sequence[Get
Cloud Loadbalancers Loadbalancer Current State Network Address] - Addresses carried by the VIP port:
- id str
- Flavor ID.
- subnet_
id str - Subnet ID.
- addresses List<Property Map>
- Addresses carried by the VIP port:
- id String
- Flavor ID.
- subnet
Id String - Subnet ID.
GetCloudLoadbalancersLoadbalancerCurrentStateNetworkAddress
GetCloudLoadbalancersLoadbalancerNetwork
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