1. Packages
  2. Hcloud Provider
  3. API Docs
  4. getLoadBalancerTypes
Hetzner Cloud v1.21.0 published on Tuesday, Nov 12, 2024 by Pulumi

hcloud.getLoadBalancerTypes

Explore with Pulumi AI

hcloud logo
Hetzner Cloud v1.21.0 published on Tuesday, Nov 12, 2024 by Pulumi

    Provides a list of available Hetzner Cloud Load Balancer Types.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hcloud from "@pulumi/hcloud";
    
    const all = hcloud.getLoadBalancerTypes({});
    
    import pulumi
    import pulumi_hcloud as hcloud
    
    all = hcloud.get_load_balancer_types()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-hcloud/sdk/go/hcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hcloud.GetLoadBalancerTypes(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using HCloud = Pulumi.HCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var all = HCloud.GetLoadBalancerTypes.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hcloud.HcloudFunctions;
    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 all = HcloudFunctions.getLoadBalancerTypes();
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          Function: hcloud:getLoadBalancerTypes
          Arguments: {}
    

    Using getLoadBalancerTypes

    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 getLoadBalancerTypes(opts?: InvokeOptions): Promise<GetLoadBalancerTypesResult>
    function getLoadBalancerTypesOutput(opts?: InvokeOptions): Output<GetLoadBalancerTypesResult>
    def get_load_balancer_types(opts: Optional[InvokeOptions] = None) -> GetLoadBalancerTypesResult
    def get_load_balancer_types_output(opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerTypesResult]
    func GetLoadBalancerTypes(ctx *Context, opts ...InvokeOption) (*GetLoadBalancerTypesResult, error)
    func GetLoadBalancerTypesOutput(ctx *Context, opts ...InvokeOption) GetLoadBalancerTypesResultOutput

    > Note: This function is named GetLoadBalancerTypes in the Go SDK.

    public static class GetLoadBalancerTypes 
    {
        public static Task<GetLoadBalancerTypesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetLoadBalancerTypesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoadBalancerTypesResult> getLoadBalancerTypes(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: hcloud:index/getLoadBalancerTypes:getLoadBalancerTypes
      arguments:
        # arguments dictionary

    getLoadBalancerTypes Result

    The following output properties are available:

    Id string
    LoadBalancerTypes List<Pulumi.HCloud.Outputs.GetLoadBalancerTypesLoadBalancerType>
    (list) List of all load balancer types. See data.hcloud_load_balancer_type for the schema.
    Id string
    LoadBalancerTypes []GetLoadBalancerTypesLoadBalancerType
    (list) List of all load balancer types. See data.hcloud_load_balancer_type for the schema.
    id String
    loadBalancerTypes List<GetLoadBalancerTypesLoadBalancerType>
    (list) List of all load balancer types. See data.hcloud_load_balancer_type for the schema.
    id string
    loadBalancerTypes GetLoadBalancerTypesLoadBalancerType[]
    (list) List of all load balancer types. See data.hcloud_load_balancer_type for the schema.
    id str
    load_balancer_types Sequence[GetLoadBalancerTypesLoadBalancerType]
    (list) List of all load balancer types. See data.hcloud_load_balancer_type for the schema.
    id String
    loadBalancerTypes List<Property Map>
    (list) List of all load balancer types. See data.hcloud_load_balancer_type for the schema.

    Supporting Types

    GetLoadBalancerTypesLoadBalancerType

    description String
    id Integer
    maxAssignedCertificates Integer
    maxConnections Integer
    maxServices Integer
    maxTargets Integer
    name String

    Package Details

    Repository
    Hetzner Cloud pulumi/pulumi-hcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the hcloud Terraform Provider.
    hcloud logo
    Hetzner Cloud v1.21.0 published on Tuesday, Nov 12, 2024 by Pulumi