1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getLoadBalancerFlavors
OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud

ovh.CloudProject.getLoadBalancerFlavors

Explore with Pulumi AI

ovh logo
OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud

    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:

    RegionName string
    Region name
    ServiceName string
    Service name
    RegionName string
    Region name
    ServiceName string
    Service name
    regionName String
    Region name
    serviceName String
    Service name
    regionName string
    Region name
    serviceName string
    Service name
    region_name str
    Region name
    service_name str
    Service name
    regionName String
    Region name
    serviceName String
    Service name

    getLoadBalancerFlavors Result

    The following output properties are available:

    Flavors List<GetLoadBalancerFlavorsFlavor>
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionName string
    Region name
    ServiceName string
    Service name
    Flavors []GetLoadBalancerFlavorsFlavor
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionName string
    Region name
    ServiceName string
    Service name
    flavors List<GetLoadBalancerFlavorsFlavor>
    id String
    The provider-assigned unique ID for this managed resource.
    regionName String
    Region name
    serviceName String
    Service name
    flavors GetLoadBalancerFlavorsFlavor[]
    id string
    The provider-assigned unique ID for this managed resource.
    regionName string
    Region name
    serviceName string
    Service name
    flavors Sequence[cloudproject.GetLoadBalancerFlavorsFlavor]
    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.
    regionName String
    Region name
    serviceName String
    Service name

    Supporting Types

    GetLoadBalancerFlavorsFlavor

    Id string
    Flavor id
    Name string
    Flavor name
    Region string
    Region name
    Id string
    Flavor id
    Name string
    Flavor name
    Region string
    Region name
    id String
    Flavor id
    name String
    Flavor name
    region String
    Region name
    id string
    Flavor id
    name string
    Flavor name
    region string
    Region name
    id str
    Flavor id
    name str
    Flavor name
    region str
    Region name
    id String
    Flavor id
    name String
    Flavor name
    region String
    Region name

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud