1. Packages
  2. Hcloud Provider
  3. API Docs
  4. getLoadBalancerTypes
Hetzner Cloud v1.21.1 published on Friday, Nov 22, 2024 by Pulumi

hcloud.getLoadBalancerTypes

Explore with Pulumi AI

hcloud logo
Hetzner Cloud v1.21.1 published on Friday, Nov 22, 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
    The ID of this resource.
    loadBalancerTypes List<Property Map>

    Supporting Types

    GetLoadBalancerTypesLoadBalancerType

    Description string
    Description of the Load Balancer Type.
    Id int
    ID of the Load Balancer Type.
    MaxAssignedCertificates int
    Maximum number of certificates that can be assigned for the Load Balancer of this type.
    MaxConnections int
    Maximum number of simultaneous open connections for the Load Balancer of this type.
    MaxServices int
    Maximum number of services for the Load Balancer of this type.
    MaxTargets int
    Maximum number of targets for the Load Balancer of this type.
    Name string
    Name of the Load Balancer Type.
    Description string
    Description of the Load Balancer Type.
    Id int
    ID of the Load Balancer Type.
    MaxAssignedCertificates int
    Maximum number of certificates that can be assigned for the Load Balancer of this type.
    MaxConnections int
    Maximum number of simultaneous open connections for the Load Balancer of this type.
    MaxServices int
    Maximum number of services for the Load Balancer of this type.
    MaxTargets int
    Maximum number of targets for the Load Balancer of this type.
    Name string
    Name of the Load Balancer Type.
    description String
    Description of the Load Balancer Type.
    id Integer
    ID of the Load Balancer Type.
    maxAssignedCertificates Integer
    Maximum number of certificates that can be assigned for the Load Balancer of this type.
    maxConnections Integer
    Maximum number of simultaneous open connections for the Load Balancer of this type.
    maxServices Integer
    Maximum number of services for the Load Balancer of this type.
    maxTargets Integer
    Maximum number of targets for the Load Balancer of this type.
    name String
    Name of the Load Balancer Type.
    description string
    Description of the Load Balancer Type.
    id number
    ID of the Load Balancer Type.
    maxAssignedCertificates number
    Maximum number of certificates that can be assigned for the Load Balancer of this type.
    maxConnections number
    Maximum number of simultaneous open connections for the Load Balancer of this type.
    maxServices number
    Maximum number of services for the Load Balancer of this type.
    maxTargets number
    Maximum number of targets for the Load Balancer of this type.
    name string
    Name of the Load Balancer Type.
    description str
    Description of the Load Balancer Type.
    id int
    ID of the Load Balancer Type.
    max_assigned_certificates int
    Maximum number of certificates that can be assigned for the Load Balancer of this type.
    max_connections int
    Maximum number of simultaneous open connections for the Load Balancer of this type.
    max_services int
    Maximum number of services for the Load Balancer of this type.
    max_targets int
    Maximum number of targets for the Load Balancer of this type.
    name str
    Name of the Load Balancer Type.
    description String
    Description of the Load Balancer Type.
    id Number
    ID of the Load Balancer Type.
    maxAssignedCertificates Number
    Maximum number of certificates that can be assigned for the Load Balancer of this type.
    maxConnections Number
    Maximum number of simultaneous open connections for the Load Balancer of this type.
    maxServices Number
    Maximum number of services for the Load Balancer of this type.
    maxTargets Number
    Maximum number of targets for the Load Balancer of this type.
    name String
    Name of the Load Balancer Type.

    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.1 published on Friday, Nov 22, 2024 by Pulumi