1. Registry
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudLoadbalancers
Viewing docs for OVHCloud v2.21.0
published on Friday, Sep 25, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.21.0
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 dictionary
    data "ovh_get_cloud_loadbalancers" "name" {
        # arguments
    }

    The following arguments are supported:

    ServiceName string
    Service name of the resource representing the id of the cloud project.
    ServiceName 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.
    serviceName String
    Service name of the resource representing the id of the cloud project.
    serviceName 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.
    serviceName 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<GetCloudLoadbalancersLoadbalancer>
    List of load balancers. Each element exports:
    ServiceName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Loadbalancers []GetCloudLoadbalancersLoadbalancer
    List of load balancers. Each element exports:
    ServiceName 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<GetCloudLoadbalancersLoadbalancer>
    List of load balancers. Each element exports:
    serviceName String
    id string
    The provider-assigned unique ID for this managed resource.
    loadbalancers GetCloudLoadbalancersLoadbalancer[]
    List of load balancers. Each element exports:
    serviceName string
    id str
    The provider-assigned unique ID for this managed resource.
    loadbalancers Sequence[GetCloudLoadbalancersLoadbalancer]
    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:
    serviceName String

    Supporting Types

    GetCloudLoadbalancersLoadbalancer

    AvailabilityZone string
    Availability zone.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the load balancer.
    CurrentState GetCloudLoadbalancersLoadbalancerCurrentState
    Current state of the load balancer:
    Description string
    Load balancer description.
    FlavorName string
    Name of the load balancer flavor.
    Id string
    Flavor ID.
    Name string
    Load balancer name.
    Network GetCloudLoadbalancersLoadbalancerNetwork
    VIP network:
    Region string
    Region.
    ResourceStatus string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    UpdatedAt string
    Last update date of the load balancer.
    AvailabilityZone string
    Availability zone.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the load balancer.
    CurrentState GetCloudLoadbalancersLoadbalancerCurrentState
    Current state of the load balancer:
    Description string
    Load balancer description.
    FlavorName string
    Name of the load balancer flavor.
    Id string
    Flavor ID.
    Name string
    Load balancer name.
    Network GetCloudLoadbalancersLoadbalancerNetwork
    VIP network:
    Region string
    Region.
    ResourceStatus string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    UpdatedAt 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.
    availabilityZone String
    Availability zone.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the load balancer.
    currentState GetCloudLoadbalancersLoadbalancerCurrentState
    Current state of the load balancer:
    description String
    Load balancer description.
    flavorName String
    Name of the load balancer flavor.
    id String
    Flavor ID.
    name String
    Load balancer name.
    network GetCloudLoadbalancersLoadbalancerNetwork
    VIP network:
    region String
    Region.
    resourceStatus String
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt String
    Last update date of the load balancer.
    availabilityZone string
    Availability zone.
    checksum string
    Computed hash representing the current target specification value.
    createdAt string
    Creation date of the load balancer.
    currentState GetCloudLoadbalancersLoadbalancerCurrentState
    Current state of the load balancer:
    description string
    Load balancer description.
    flavorName string
    Name of the load balancer flavor.
    id string
    Flavor ID.
    name string
    Load balancer name.
    network GetCloudLoadbalancersLoadbalancerNetwork
    VIP network:
    region string
    Region.
    resourceStatus string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt 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 GetCloudLoadbalancersLoadbalancerCurrentState
    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 GetCloudLoadbalancersLoadbalancerNetwork
    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.
    availabilityZone String
    Availability zone.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the load balancer.
    currentState Property Map
    Current state of the load balancer:
    description String
    Load balancer description.
    flavorName String
    Name of the load balancer flavor.
    id String
    Flavor ID.
    name String
    Load balancer name.
    network Property Map
    VIP network:
    region String
    Region.
    resourceStatus String
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt String
    Last update date of the load balancer.

    GetCloudLoadbalancersLoadbalancerCurrentState

    AvailabilityZone string
    Availability zone.
    Description string
    Load balancer description.
    Flavor GetCloudLoadbalancersLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    Name string
    Load balancer name.
    Network GetCloudLoadbalancersLoadbalancerCurrentStateNetwork
    VIP network:
    OperatingStatus string
    Operating status of the load balancer.
    ProvisioningStatus string
    Provisioning status of the load balancer.
    Region string
    Region.
    AvailabilityZone string
    Availability zone.
    Description string
    Load balancer description.
    Flavor GetCloudLoadbalancersLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    Name string
    Load balancer name.
    Network GetCloudLoadbalancersLoadbalancerCurrentStateNetwork
    VIP network:
    OperatingStatus string
    Operating status of the load balancer.
    ProvisioningStatus 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.
    availabilityZone String
    Availability zone.
    description String
    Load balancer description.
    flavor GetCloudLoadbalancersLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    name String
    Load balancer name.
    network GetCloudLoadbalancersLoadbalancerCurrentStateNetwork
    VIP network:
    operatingStatus String
    Operating status of the load balancer.
    provisioningStatus String
    Provisioning status of the load balancer.
    region String
    Region.
    availabilityZone string
    Availability zone.
    description string
    Load balancer description.
    flavor GetCloudLoadbalancersLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    name string
    Load balancer name.
    network GetCloudLoadbalancersLoadbalancerCurrentStateNetwork
    VIP network:
    operatingStatus string
    Operating status of the load balancer.
    provisioningStatus string
    Provisioning status of the load balancer.
    region string
    Region.
    availability_zone str
    Availability zone.
    description str
    Load balancer description.
    flavor GetCloudLoadbalancersLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    name str
    Load balancer name.
    network GetCloudLoadbalancersLoadbalancerCurrentStateNetwork
    VIP network:
    operating_status str
    Operating status of the load balancer.
    provisioning_status str
    Provisioning status of the load balancer.
    region str
    Region.
    availabilityZone 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:
    operatingStatus String
    Operating status of the load balancer.
    provisioningStatus 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<GetCloudLoadbalancersLoadbalancerCurrentStateNetworkAddress>
    Addresses carried by the VIP port:
    Id string
    Flavor ID.
    SubnetId string
    Subnet ID.
    Addresses []GetCloudLoadbalancersLoadbalancerCurrentStateNetworkAddress
    Addresses carried by the VIP port:
    Id string
    Flavor ID.
    SubnetId string
    Subnet ID.
    addresses list(object)
    Addresses carried by the VIP port:
    id string
    Flavor ID.
    subnet_id string
    Subnet ID.
    addresses List<GetCloudLoadbalancersLoadbalancerCurrentStateNetworkAddress>
    Addresses carried by the VIP port:
    id String
    Flavor ID.
    subnetId String
    Subnet ID.
    addresses GetCloudLoadbalancersLoadbalancerCurrentStateNetworkAddress[]
    Addresses carried by the VIP port:
    id string
    Flavor ID.
    subnetId string
    Subnet ID.
    addresses Sequence[GetCloudLoadbalancersLoadbalancerCurrentStateNetworkAddress]
    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.
    subnetId String
    Subnet ID.

    GetCloudLoadbalancersLoadbalancerCurrentStateNetworkAddress

    Ip string
    IP address.
    Type string
    Address type (FIXED, FLOATING).
    Ip string
    IP address.
    Type string
    Address type (FIXED, FLOATING).
    ip string
    IP address.
    type string
    Address type (FIXED, FLOATING).
    ip String
    IP address.
    type String
    Address type (FIXED, FLOATING).
    ip string
    IP address.
    type string
    Address type (FIXED, FLOATING).
    ip str
    IP address.
    type str
    Address type (FIXED, FLOATING).
    ip String
    IP address.
    type String
    Address type (FIXED, FLOATING).

    GetCloudLoadbalancersLoadbalancerNetwork

    Id string
    Flavor ID.
    Ip string
    IP address.
    SubnetId string
    Subnet ID.
    Id string
    Flavor ID.
    Ip string
    IP address.
    SubnetId string
    Subnet ID.
    id string
    Flavor ID.
    ip string
    IP address.
    subnet_id string
    Subnet ID.
    id String
    Flavor ID.
    ip String
    IP address.
    subnetId String
    Subnet ID.
    id string
    Flavor ID.
    ip string
    IP address.
    subnetId string
    Subnet ID.
    id str
    Flavor ID.
    ip str
    IP address.
    subnet_id str
    Subnet ID.
    id String
    Flavor ID.
    ip String
    IP address.
    subnetId String
    Subnet ID.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.21.0
    published on Friday, Sep 25, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial