Hetzner Cloud v1.22.0 published on Wednesday, Feb 26, 2025 by Pulumi
hcloud.getLoadBalancerType
Explore with Pulumi AI
Provides details about a specific Hetzner Cloud Load Balancer Type.
Use this resource to get detailed information about a specific Load Balancer Type.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hcloud from "@pulumi/hcloud";
const byId = hcloud.getLoadBalancerType({
    id: 1,
});
const byName = hcloud.getLoadBalancerType({
    name: "lb11",
});
const main = new hcloud.LoadBalancer("main", {
    name: "my-load-balancer",
    loadBalancerType: name,
    location: "fsn1",
});
import pulumi
import pulumi_hcloud as hcloud
by_id = hcloud.get_load_balancer_type(id=1)
by_name = hcloud.get_load_balancer_type(name="lb11")
main = hcloud.LoadBalancer("main",
    name="my-load-balancer",
    load_balancer_type=name,
    location="fsn1")
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.GetLoadBalancerType(ctx, &hcloud.GetLoadBalancerTypeArgs{
			Id: pulumi.IntRef(1),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetLoadBalancerType(ctx, &hcloud.GetLoadBalancerTypeArgs{
			Name: pulumi.StringRef("lb11"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.NewLoadBalancer(ctx, "main", &hcloud.LoadBalancerArgs{
			Name:             pulumi.String("my-load-balancer"),
			LoadBalancerType: pulumi.Any(name),
			Location:         pulumi.String("fsn1"),
		})
		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 byId = HCloud.GetLoadBalancerType.Invoke(new()
    {
        Id = 1,
    });
    var byName = HCloud.GetLoadBalancerType.Invoke(new()
    {
        Name = "lb11",
    });
    var main = new HCloud.LoadBalancer("main", new()
    {
        Name = "my-load-balancer",
        LoadBalancerType = name,
        Location = "fsn1",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hcloud.HcloudFunctions;
import com.pulumi.hcloud.inputs.GetLoadBalancerTypeArgs;
import com.pulumi.hcloud.LoadBalancer;
import com.pulumi.hcloud.LoadBalancerArgs;
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 byId = HcloudFunctions.getLoadBalancerType(GetLoadBalancerTypeArgs.builder()
            .id(1)
            .build());
        final var byName = HcloudFunctions.getLoadBalancerType(GetLoadBalancerTypeArgs.builder()
            .name("lb11")
            .build());
        var main = new LoadBalancer("main", LoadBalancerArgs.builder()
            .name("my-load-balancer")
            .loadBalancerType(name)
            .location("fsn1")
            .build());
    }
}
resources:
  main:
    type: hcloud:LoadBalancer
    properties:
      name: my-load-balancer
      loadBalancerType: ${name}
      location: fsn1
variables:
  byId:
    fn::invoke:
      function: hcloud:getLoadBalancerType
      arguments:
        id: 1
  byName:
    fn::invoke:
      function: hcloud:getLoadBalancerType
      arguments:
        name: lb11
Using getLoadBalancerType
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 getLoadBalancerType(args: GetLoadBalancerTypeArgs, opts?: InvokeOptions): Promise<GetLoadBalancerTypeResult>
function getLoadBalancerTypeOutput(args: GetLoadBalancerTypeOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerTypeResult>def get_load_balancer_type(id: Optional[int] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetLoadBalancerTypeResult
def get_load_balancer_type_output(id: Optional[pulumi.Input[int]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerTypeResult]func GetLoadBalancerType(ctx *Context, args *GetLoadBalancerTypeArgs, opts ...InvokeOption) (*GetLoadBalancerTypeResult, error)
func GetLoadBalancerTypeOutput(ctx *Context, args *GetLoadBalancerTypeOutputArgs, opts ...InvokeOption) GetLoadBalancerTypeResultOutput> Note: This function is named GetLoadBalancerType in the Go SDK.
public static class GetLoadBalancerType 
{
    public static Task<GetLoadBalancerTypeResult> InvokeAsync(GetLoadBalancerTypeArgs args, InvokeOptions? opts = null)
    public static Output<GetLoadBalancerTypeResult> Invoke(GetLoadBalancerTypeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLoadBalancerTypeResult> getLoadBalancerType(GetLoadBalancerTypeArgs args, InvokeOptions options)
public static Output<GetLoadBalancerTypeResult> getLoadBalancerType(GetLoadBalancerTypeArgs args, InvokeOptions options)
fn::invoke:
  function: hcloud:index/getLoadBalancerType:getLoadBalancerType
  arguments:
    # arguments dictionaryThe following arguments are supported:
getLoadBalancerType Result
The following output properties are available:
- Description string
- Description of the Load Balancer Type.
- Id int
- ID of the Load Balancer Type.
- MaxAssigned intCertificates 
- 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.
- MaxAssigned intCertificates 
- 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.
- maxAssigned IntegerCertificates 
- 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.
- maxAssigned numberCertificates 
- 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_ intcertificates 
- 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.
- maxAssigned NumberCertificates 
- 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 hcloudTerraform Provider.