OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud
ovh.CloudProject.getLoadBalancerFlavors
Explore with Pulumi AI
List loadbalancer flavors in the given public cloud region.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const flavors = ovh.CloudProject.getLoadBalancerFlavors({
regionName: "GRA9",
serviceName: "<public cloud project ID>",
});
import pulumi
import pulumi_ovh as ovh
flavors = ovh.CloudProject.get_load_balancer_flavors(region_name="GRA9",
service_name="<public cloud project ID>")
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 {
_, err := cloudproject.GetLoadBalancerFlavors(ctx, &cloudproject.GetLoadBalancerFlavorsArgs{
RegionName: "GRA9",
ServiceName: "<public cloud project ID>",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var flavors = Ovh.CloudProject.GetLoadBalancerFlavors.Invoke(new()
{
RegionName = "GRA9",
ServiceName = "<public cloud project ID>",
});
});
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.GetLoadBalancerFlavorsArgs;
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 flavors = CloudProjectFunctions.getLoadBalancerFlavors(GetLoadBalancerFlavorsArgs.builder()
.regionName("GRA9")
.serviceName("<public cloud project ID>")
.build());
}
}
variables:
flavors:
fn::invoke:
function: ovh:CloudProject:getLoadBalancerFlavors
arguments:
regionName: GRA9
serviceName: <public cloud project ID>
Using getLoadBalancerFlavors
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 getLoadBalancerFlavors(args: GetLoadBalancerFlavorsArgs, opts?: InvokeOptions): Promise<GetLoadBalancerFlavorsResult>
function getLoadBalancerFlavorsOutput(args: GetLoadBalancerFlavorsOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerFlavorsResult>
def get_load_balancer_flavors(region_name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLoadBalancerFlavorsResult
def get_load_balancer_flavors_output(region_name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerFlavorsResult]
func GetLoadBalancerFlavors(ctx *Context, args *GetLoadBalancerFlavorsArgs, opts ...InvokeOption) (*GetLoadBalancerFlavorsResult, error)
func GetLoadBalancerFlavorsOutput(ctx *Context, args *GetLoadBalancerFlavorsOutputArgs, opts ...InvokeOption) GetLoadBalancerFlavorsResultOutput
> Note: This function is named GetLoadBalancerFlavors
in the Go SDK.
public static class GetLoadBalancerFlavors
{
public static Task<GetLoadBalancerFlavorsResult> InvokeAsync(GetLoadBalancerFlavorsArgs args, InvokeOptions? opts = null)
public static Output<GetLoadBalancerFlavorsResult> Invoke(GetLoadBalancerFlavorsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLoadBalancerFlavorsResult> getLoadBalancerFlavors(GetLoadBalancerFlavorsArgs args, InvokeOptions options)
public static Output<GetLoadBalancerFlavorsResult> getLoadBalancerFlavors(GetLoadBalancerFlavorsArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getLoadBalancerFlavors:getLoadBalancerFlavors
arguments:
# arguments dictionary
The following arguments are supported:
- Region
Name string - Region name
- Service
Name string - Service name
- Region
Name string - Region name
- Service
Name string - Service name
- region
Name String - Region name
- service
Name String - Service name
- region
Name string - Region name
- service
Name string - Service name
- region_
name str - Region name
- service_
name str - Service name
- region
Name String - Region name
- service
Name String - Service name
getLoadBalancerFlavors Result
The following output properties are available:
- Flavors
List<Get
Load Balancer Flavors Flavor> - Id string
- The provider-assigned unique ID for this managed resource.
- Region
Name string - Region name
- Service
Name string - Service name
- Flavors
[]Get
Load Balancer Flavors Flavor - Id string
- The provider-assigned unique ID for this managed resource.
- Region
Name string - Region name
- Service
Name string - Service name
- flavors
List<Get
Load Balancer Flavors Flavor> - id String
- The provider-assigned unique ID for this managed resource.
- region
Name String - Region name
- service
Name String - Service name
- flavors
Get
Load Balancer Flavors Flavor[] - id string
- The provider-assigned unique ID for this managed resource.
- region
Name string - Region name
- service
Name string - Service name
- flavors
Sequence[cloudproject.
Get Load Balancer Flavors Flavor] - id str
- The provider-assigned unique ID for this managed resource.
- region_
name str - Region name
- service_
name str - Service name
- flavors List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- region
Name String - Region name
- service
Name String - Service name
Supporting Types
GetLoadBalancerFlavorsFlavor
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.