OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.CloudProject.getLoadBalancers
Explore with Pulumi AI
List your public cloud loadbalancers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const lbsLoadBalancers = ovh.CloudProject.getLoadBalancers({
serviceName: "XXXXXX",
regionName: "XXX",
});
export const lbs = lbsLoadBalancers;
import pulumi
import pulumi_ovh as ovh
lbs_load_balancers = ovh.CloudProject.get_load_balancers(service_name="XXXXXX",
region_name="XXX")
pulumi.export("lbs", lbs_load_balancers)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProject"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
lbsLoadBalancers, err := CloudProject.GetLoadBalancers(ctx, &cloudproject.GetLoadBalancersArgs{
ServiceName: "XXXXXX",
RegionName: "XXX",
}, nil)
if err != nil {
return err
}
ctx.Export("lbs", lbsLoadBalancers)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var lbsLoadBalancers = Ovh.CloudProject.GetLoadBalancers.Invoke(new()
{
ServiceName = "XXXXXX",
RegionName = "XXX",
});
return new Dictionary<string, object?>
{
["lbs"] = lbsLoadBalancers,
};
});
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.GetLoadBalancersArgs;
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 lbsLoadBalancers = CloudProjectFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
.serviceName("XXXXXX")
.regionName("XXX")
.build());
ctx.export("lbs", lbsLoadBalancers.applyValue(getLoadBalancersResult -> getLoadBalancersResult));
}
}
variables:
lbsLoadBalancers:
fn::invoke:
Function: ovh:CloudProject:getLoadBalancers
Arguments:
serviceName: XXXXXX
regionName: XXX
outputs:
lbs: ${lbsLoadBalancers}
Using getLoadBalancers
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 getLoadBalancers(args: GetLoadBalancersArgs, opts?: InvokeOptions): Promise<GetLoadBalancersResult>
function getLoadBalancersOutput(args: GetLoadBalancersOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancersResult>
def get_load_balancers(region_name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLoadBalancersResult
def get_load_balancers_output(region_name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancersResult]
func GetLoadBalancers(ctx *Context, args *GetLoadBalancersArgs, opts ...InvokeOption) (*GetLoadBalancersResult, error)
func GetLoadBalancersOutput(ctx *Context, args *GetLoadBalancersOutputArgs, opts ...InvokeOption) GetLoadBalancersResultOutput
> Note: This function is named GetLoadBalancers
in the Go SDK.
public static class GetLoadBalancers
{
public static Task<GetLoadBalancersResult> InvokeAsync(GetLoadBalancersArgs args, InvokeOptions? opts = null)
public static Output<GetLoadBalancersResult> Invoke(GetLoadBalancersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLoadBalancersResult> getLoadBalancers(GetLoadBalancersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:CloudProject/getLoadBalancers:getLoadBalancers
arguments:
# arguments dictionary
The following arguments are supported:
- Region
Name string - Region of the loadbalancers.
- Service
Name string - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- Region
Name string - Region of the loadbalancers.
- Service
Name string - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- region
Name String - Region of the loadbalancers.
- service
Name String - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- region
Name string - Region of the loadbalancers.
- service
Name string - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- region_
name str - Region of the loadbalancers.
- service_
name str - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- region
Name String - Region of the loadbalancers.
- service
Name String - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
getLoadBalancers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Loadbalancers
List<Get
Load Balancers Loadbalancer> - List of loadbalancer
- Region
Name string - Region of the loadbalancers
- Service
Name string - ID of the public cloud project
- Id string
- The provider-assigned unique ID for this managed resource.
- Loadbalancers
[]Get
Load Balancers Loadbalancer - List of loadbalancer
- Region
Name string - Region of the loadbalancers
- Service
Name string - ID of the public cloud project
- id String
- The provider-assigned unique ID for this managed resource.
- loadbalancers
List<Get
Load Balancers Loadbalancer> - List of loadbalancer
- region
Name String - Region of the loadbalancers
- service
Name String - ID of the public cloud project
- id string
- The provider-assigned unique ID for this managed resource.
- loadbalancers
Get
Load Balancers Loadbalancer[] - List of loadbalancer
- region
Name string - Region of the loadbalancers
- service
Name string - ID of the public cloud project
- id str
- The provider-assigned unique ID for this managed resource.
- loadbalancers
Sequence[cloudproject.
Get Load Balancers Loadbalancer] - List of loadbalancer
- region_
name str - Region of the loadbalancers
- service_
name str - ID of the public cloud project
- id String
- The provider-assigned unique ID for this managed resource.
- loadbalancers List<Property Map>
- List of loadbalancer
- region
Name String - Region of the loadbalancers
- service
Name String - ID of the public cloud project
Supporting Types
GetLoadBalancersLoadbalancer
- Created
At string - Date of creation of the loadbalancer
- Flavor
Id string - ID of the flavor
- Floating
Ip GetLoad Balancers Loadbalancer 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 string
- Region of the loadbalancer
- 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 Balancers Loadbalancer 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 string
- Region of the loadbalancer
- 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 Balancers Loadbalancer 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 String
- Region of the loadbalancer
- 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 Balancers Loadbalancer 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 string
- Region of the loadbalancer
- 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 Balancers Loadbalancer 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 str
- Region of the loadbalancer
- 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 String
- Region of the loadbalancer
- 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
GetLoadBalancersLoadbalancerFloatingIp
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.