Hetzner Cloud v1.19.1 published on Friday, May 10, 2024 by Pulumi
hcloud.getLoadBalancer
Explore with Pulumi AI
Provides details about a specific Hetzner Cloud Load Balancer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hcloud from "@pulumi/hcloud";
const lb1 = hcloud.getLoadBalancer({
    name: "my-load-balancer",
});
const lb2 = hcloud.getLoadBalancer({
    id: 123,
});
const lb3 = hcloud.getLoadBalancer({
    withSelector: "key=value",
});
import pulumi
import pulumi_hcloud as hcloud
lb1 = hcloud.get_load_balancer(name="my-load-balancer")
lb2 = hcloud.get_load_balancer(id=123)
lb3 = hcloud.get_load_balancer(with_selector="key=value")
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.LookupLoadBalancer(ctx, &hcloud.LookupLoadBalancerArgs{
			Name: pulumi.StringRef("my-load-balancer"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupLoadBalancer(ctx, &hcloud.LookupLoadBalancerArgs{
			Id: pulumi.IntRef(123),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupLoadBalancer(ctx, &hcloud.LookupLoadBalancerArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, 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 lb1 = HCloud.GetLoadBalancer.Invoke(new()
    {
        Name = "my-load-balancer",
    });
    var lb2 = HCloud.GetLoadBalancer.Invoke(new()
    {
        Id = 123,
    });
    var lb3 = HCloud.GetLoadBalancer.Invoke(new()
    {
        WithSelector = "key=value",
    });
});
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.GetLoadBalancerArgs;
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 lb1 = HcloudFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()
            .name("my-load-balancer")
            .build());
        final var lb2 = HcloudFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()
            .id("123")
            .build());
        final var lb3 = HcloudFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()
            .withSelector("key=value")
            .build());
    }
}
variables:
  lb1:
    fn::invoke:
      Function: hcloud:getLoadBalancer
      Arguments:
        name: my-load-balancer
  lb2:
    fn::invoke:
      Function: hcloud:getLoadBalancer
      Arguments:
        id: '123'
  lb3:
    fn::invoke:
      Function: hcloud:getLoadBalancer
      Arguments:
        withSelector: key=value
Using getLoadBalancer
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 getLoadBalancer(args: GetLoadBalancerArgs, opts?: InvokeOptions): Promise<GetLoadBalancerResult>
function getLoadBalancerOutput(args: GetLoadBalancerOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerResult>def get_load_balancer(id: Optional[int] = None,
                      name: Optional[str] = None,
                      with_selector: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetLoadBalancerResult
def get_load_balancer_output(id: Optional[pulumi.Input[int]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      with_selector: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerResult]func LookupLoadBalancer(ctx *Context, args *LookupLoadBalancerArgs, opts ...InvokeOption) (*LookupLoadBalancerResult, error)
func LookupLoadBalancerOutput(ctx *Context, args *LookupLoadBalancerOutputArgs, opts ...InvokeOption) LookupLoadBalancerResultOutput> Note: This function is named LookupLoadBalancer in the Go SDK.
public static class GetLoadBalancer 
{
    public static Task<GetLoadBalancerResult> InvokeAsync(GetLoadBalancerArgs args, InvokeOptions? opts = null)
    public static Output<GetLoadBalancerResult> Invoke(GetLoadBalancerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLoadBalancerResult> getLoadBalancer(GetLoadBalancerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: hcloud:index/getLoadBalancer:getLoadBalancer
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id int
 - ID of the Load Balancer.
 - Name string
 - Name of the Load Balancer.
 - With
Selector string - Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
 
- Id int
 - ID of the Load Balancer.
 - Name string
 - Name of the Load Balancer.
 - With
Selector string - Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
 
- id Integer
 - ID of the Load Balancer.
 - name String
 - Name of the Load Balancer.
 - with
Selector String - Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
 
- id number
 - ID of the Load Balancer.
 - name string
 - Name of the Load Balancer.
 - with
Selector string - Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
 
- id int
 - ID of the Load Balancer.
 - name str
 - Name of the Load Balancer.
 - with_
selector str - Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
 
- id Number
 - ID of the Load Balancer.
 - name String
 - Name of the Load Balancer.
 - with
Selector String - Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
 
getLoadBalancer Result
The following output properties are available:
- Algorithms
List<Pulumi.
HCloud. Outputs. Get Load Balancer Algorithm>  - (Optional) Configuration of the algorithm the Load Balancer use.
 - Delete
Protection bool - (bool) Whether delete protection is enabled.
 - Id int
 - (int) Unique ID of the Load Balancer.
 - Ipv4 string
 - (string) IPv4 Address of the Load Balancer.
 - Ipv6 string
 - (string) IPv4 Address of the Load Balancer.
 - Labels Dictionary<string, object>
 - (map) User-defined labels (key-value pairs) .
 - Load
Balancer stringType  - (string) Name of the Type of the Load Balancer.
 - Location string
 - (string) Name of the location the Load Balancer is in.
 - Network
Id int - (int) ID of the first private network that this Load Balancer is connected to.
 - Network
Ip string - (string) IP of the Load Balancer in the first private network that it is connected to.
 - Network
Zone string - Services
List<Pulumi.
HCloud. Outputs. Get Load Balancer Service>  - (list) List of services a Load Balancer provides.
 - Targets
List<Pulumi.
HCloud. Outputs. Get Load Balancer Target>  - (list) List of targets of the Load Balancer.
 - Name string
 - (string) Name of the Load Balancer.
 - With
Selector string 
- Algorithms
[]Get
Load Balancer Algorithm  - (Optional) Configuration of the algorithm the Load Balancer use.
 - Delete
Protection bool - (bool) Whether delete protection is enabled.
 - Id int
 - (int) Unique ID of the Load Balancer.
 - Ipv4 string
 - (string) IPv4 Address of the Load Balancer.
 - Ipv6 string
 - (string) IPv4 Address of the Load Balancer.
 - Labels map[string]interface{}
 - (map) User-defined labels (key-value pairs) .
 - Load
Balancer stringType  - (string) Name of the Type of the Load Balancer.
 - Location string
 - (string) Name of the location the Load Balancer is in.
 - Network
Id int - (int) ID of the first private network that this Load Balancer is connected to.
 - Network
Ip string - (string) IP of the Load Balancer in the first private network that it is connected to.
 - Network
Zone string - Services
[]Get
Load Balancer Service Type  - (list) List of services a Load Balancer provides.
 - Targets
[]Get
Load Balancer Target Type  - (list) List of targets of the Load Balancer.
 - Name string
 - (string) Name of the Load Balancer.
 - With
Selector string 
- algorithms
List<Get
Load Balancer Algorithm>  - (Optional) Configuration of the algorithm the Load Balancer use.
 - delete
Protection Boolean - (bool) Whether delete protection is enabled.
 - id Integer
 - (int) Unique ID of the Load Balancer.
 - ipv4 String
 - (string) IPv4 Address of the Load Balancer.
 - ipv6 String
 - (string) IPv4 Address of the Load Balancer.
 - labels Map<String,Object>
 - (map) User-defined labels (key-value pairs) .
 - load
Balancer StringType  - (string) Name of the Type of the Load Balancer.
 - location String
 - (string) Name of the location the Load Balancer is in.
 - network
Id Integer - (int) ID of the first private network that this Load Balancer is connected to.
 - network
Ip String - (string) IP of the Load Balancer in the first private network that it is connected to.
 - network
Zone String - services
List<Get
Load Balancer Service>  - (list) List of services a Load Balancer provides.
 - targets
List<Get
Load Balancer Target>  - (list) List of targets of the Load Balancer.
 - name String
 - (string) Name of the Load Balancer.
 - with
Selector String 
- algorithms
Get
Load Balancer Algorithm[]  - (Optional) Configuration of the algorithm the Load Balancer use.
 - delete
Protection boolean - (bool) Whether delete protection is enabled.
 - id number
 - (int) Unique ID of the Load Balancer.
 - ipv4 string
 - (string) IPv4 Address of the Load Balancer.
 - ipv6 string
 - (string) IPv4 Address of the Load Balancer.
 - labels {[key: string]: any}
 - (map) User-defined labels (key-value pairs) .
 - load
Balancer stringType  - (string) Name of the Type of the Load Balancer.
 - location string
 - (string) Name of the location the Load Balancer is in.
 - network
Id number - (int) ID of the first private network that this Load Balancer is connected to.
 - network
Ip string - (string) IP of the Load Balancer in the first private network that it is connected to.
 - network
Zone string - services
Get
Load Balancer Service[]  - (list) List of services a Load Balancer provides.
 - targets
Get
Load Balancer Target[]  - (list) List of targets of the Load Balancer.
 - name string
 - (string) Name of the Load Balancer.
 - with
Selector string 
- algorithms
Sequence[Get
Load Balancer Algorithm]  - (Optional) Configuration of the algorithm the Load Balancer use.
 - delete_
protection bool - (bool) Whether delete protection is enabled.
 - id int
 - (int) Unique ID of the Load Balancer.
 - ipv4 str
 - (string) IPv4 Address of the Load Balancer.
 - ipv6 str
 - (string) IPv4 Address of the Load Balancer.
 - labels Mapping[str, Any]
 - (map) User-defined labels (key-value pairs) .
 - load_
balancer_ strtype  - (string) Name of the Type of the Load Balancer.
 - location str
 - (string) Name of the location the Load Balancer is in.
 - network_
id int - (int) ID of the first private network that this Load Balancer is connected to.
 - network_
ip str - (string) IP of the Load Balancer in the first private network that it is connected to.
 - network_
zone str - services
Sequence[Get
Load Balancer Service]  - (list) List of services a Load Balancer provides.
 - targets
Sequence[Get
Load Balancer Target]  - (list) List of targets of the Load Balancer.
 - name str
 - (string) Name of the Load Balancer.
 - with_
selector str 
- algorithms List<Property Map>
 - (Optional) Configuration of the algorithm the Load Balancer use.
 - delete
Protection Boolean - (bool) Whether delete protection is enabled.
 - id Number
 - (int) Unique ID of the Load Balancer.
 - ipv4 String
 - (string) IPv4 Address of the Load Balancer.
 - ipv6 String
 - (string) IPv4 Address of the Load Balancer.
 - labels Map<Any>
 - (map) User-defined labels (key-value pairs) .
 - load
Balancer StringType  - (string) Name of the Type of the Load Balancer.
 - location String
 - (string) Name of the location the Load Balancer is in.
 - network
Id Number - (int) ID of the first private network that this Load Balancer is connected to.
 - network
Ip String - (string) IP of the Load Balancer in the first private network that it is connected to.
 - network
Zone String - services List<Property Map>
 - (list) List of services a Load Balancer provides.
 - targets List<Property Map>
 - (list) List of targets of the Load Balancer.
 - name String
 - (string) Name of the Load Balancer.
 - with
Selector String 
Supporting Types
GetLoadBalancerAlgorithm   
- Type string
 - (string) Type of the target. 
serverorlabel_selector 
- Type string
 - (string) Type of the target. 
serverorlabel_selector 
- type String
 - (string) Type of the target. 
serverorlabel_selector 
- type string
 - (string) Type of the target. 
serverorlabel_selector 
- type str
 - (string) Type of the target. 
serverorlabel_selector 
- type String
 - (string) Type of the target. 
serverorlabel_selector 
GetLoadBalancerService   
- Destination
Port int - (int) Port the service connects to the targets on. Can be everything between 
1and65535. - Health
Checks List<Pulumi.HCloud. Inputs. Get Load Balancer Service Health Check>  - (list) List of http configurations when 
protocolishttporhttps. - Https
List<Pulumi.
HCloud. Inputs. Get Load Balancer Service Http>  - (list) List of http configurations when 
protocolishttporhttps. - Listen
Port int - (int) Port the service listen on
. Can be everything between1and65535`. Must be unique per Load Balancer. - Protocol string
 - (string) Protocol the health check uses. 
http,httpsortcp - Proxyprotocol bool
 - (bool) Enable proxyprotocol.
 
- Destination
Port int - (int) Port the service connects to the targets on. Can be everything between 
1and65535. - Health
Checks []GetLoad Balancer Service Health Check  - (list) List of http configurations when 
protocolishttporhttps. - Https
[]Get
Load Balancer Service Http  - (list) List of http configurations when 
protocolishttporhttps. - Listen
Port int - (int) Port the service listen on
. Can be everything between1and65535`. Must be unique per Load Balancer. - Protocol string
 - (string) Protocol the health check uses. 
http,httpsortcp - Proxyprotocol bool
 - (bool) Enable proxyprotocol.
 
- destination
Port Integer - (int) Port the service connects to the targets on. Can be everything between 
1and65535. - health
Checks List<GetLoad Balancer Service Health Check>  - (list) List of http configurations when 
protocolishttporhttps. - https
List<Get
Load Balancer Service Http>  - (list) List of http configurations when 
protocolishttporhttps. - listen
Port Integer - (int) Port the service listen on
. Can be everything between1and65535`. Must be unique per Load Balancer. - protocol String
 - (string) Protocol the health check uses. 
http,httpsortcp - proxyprotocol Boolean
 - (bool) Enable proxyprotocol.
 
- destination
Port number - (int) Port the service connects to the targets on. Can be everything between 
1and65535. - health
Checks GetLoad Balancer Service Health Check[]  - (list) List of http configurations when 
protocolishttporhttps. - https
Get
Load Balancer Service Http[]  - (list) List of http configurations when 
protocolishttporhttps. - listen
Port number - (int) Port the service listen on
. Can be everything between1and65535`. Must be unique per Load Balancer. - protocol string
 - (string) Protocol the health check uses. 
http,httpsortcp - proxyprotocol boolean
 - (bool) Enable proxyprotocol.
 
- destination_
port int - (int) Port the service connects to the targets on. Can be everything between 
1and65535. - health_
checks Sequence[GetLoad Balancer Service Health Check]  - (list) List of http configurations when 
protocolishttporhttps. - https
Sequence[Get
Load Balancer Service Http]  - (list) List of http configurations when 
protocolishttporhttps. - listen_
port int - (int) Port the service listen on
. Can be everything between1and65535`. Must be unique per Load Balancer. - protocol str
 - (string) Protocol the health check uses. 
http,httpsortcp - proxyprotocol bool
 - (bool) Enable proxyprotocol.
 
- destination
Port Number - (int) Port the service connects to the targets on. Can be everything between 
1and65535. - health
Checks List<Property Map> - (list) List of http configurations when 
protocolishttporhttps. - https List<Property Map>
 - (list) List of http configurations when 
protocolishttporhttps. - listen
Port Number - (int) Port the service listen on
. Can be everything between1and65535`. Must be unique per Load Balancer. - protocol String
 - (string) Protocol the health check uses. 
http,httpsortcp - proxyprotocol Boolean
 - (bool) Enable proxyprotocol.
 
GetLoadBalancerServiceHealthCheck     
- Https
List<Pulumi.
HCloud. Inputs. Get Load Balancer Service Health Check Http>  - (list) List of http configurations when 
protocolishttporhttps. - Interval int
 - (int) Interval how often the health check will be performed, in seconds.
 - Port int
 - (int) Port the health check tries to connect to. Can be everything between 
1and65535. - Protocol string
 - (string) Protocol the health check uses. 
http,httpsortcp - Retries int
 - (int) Number of tries a health check will be performed until a target will be listed as 
unhealthy. - Timeout int
 - (int) Timeout when a health check try will be canceled if there is no response, in seconds.
 
- Https
[]Get
Load Balancer Service Health Check Http  - (list) List of http configurations when 
protocolishttporhttps. - Interval int
 - (int) Interval how often the health check will be performed, in seconds.
 - Port int
 - (int) Port the health check tries to connect to. Can be everything between 
1and65535. - Protocol string
 - (string) Protocol the health check uses. 
http,httpsortcp - Retries int
 - (int) Number of tries a health check will be performed until a target will be listed as 
unhealthy. - Timeout int
 - (int) Timeout when a health check try will be canceled if there is no response, in seconds.
 
- https
List<Get
Load Balancer Service Health Check Http>  - (list) List of http configurations when 
protocolishttporhttps. - interval Integer
 - (int) Interval how often the health check will be performed, in seconds.
 - port Integer
 - (int) Port the health check tries to connect to. Can be everything between 
1and65535. - protocol String
 - (string) Protocol the health check uses. 
http,httpsortcp - retries Integer
 - (int) Number of tries a health check will be performed until a target will be listed as 
unhealthy. - timeout Integer
 - (int) Timeout when a health check try will be canceled if there is no response, in seconds.
 
- https
Get
Load Balancer Service Health Check Http[]  - (list) List of http configurations when 
protocolishttporhttps. - interval number
 - (int) Interval how often the health check will be performed, in seconds.
 - port number
 - (int) Port the health check tries to connect to. Can be everything between 
1and65535. - protocol string
 - (string) Protocol the health check uses. 
http,httpsortcp - retries number
 - (int) Number of tries a health check will be performed until a target will be listed as 
unhealthy. - timeout number
 - (int) Timeout when a health check try will be canceled if there is no response, in seconds.
 
- https
Sequence[Get
Load Balancer Service Health Check Http]  - (list) List of http configurations when 
protocolishttporhttps. - interval int
 - (int) Interval how often the health check will be performed, in seconds.
 - port int
 - (int) Port the health check tries to connect to. Can be everything between 
1and65535. - protocol str
 - (string) Protocol the health check uses. 
http,httpsortcp - retries int
 - (int) Number of tries a health check will be performed until a target will be listed as 
unhealthy. - timeout int
 - (int) Timeout when a health check try will be canceled if there is no response, in seconds.
 
- https List<Property Map>
 - (list) List of http configurations when 
protocolishttporhttps. - interval Number
 - (int) Interval how often the health check will be performed, in seconds.
 - port Number
 - (int) Port the health check tries to connect to. Can be everything between 
1and65535. - protocol String
 - (string) Protocol the health check uses. 
http,httpsortcp - retries Number
 - (int) Number of tries a health check will be performed until a target will be listed as 
unhealthy. - timeout Number
 - (int) Timeout when a health check try will be canceled if there is no response, in seconds.
 
GetLoadBalancerServiceHealthCheckHttp      
- Domain string
 - string) Domain we try to access when performing the Health Check.
 - Path string
 - (string) Path we try to access when performing the Health Check.
 - Response string
 - (string) Response we expect to be included in the Target response when a Health Check was performed.
 - Status
Codes List<int> - (list[int]) We expect that the target answers with these status codes. If not the target is marked as 
unhealthy. - Tls bool
 - (bool) Enable TLS certificate checking.
 
- Domain string
 - string) Domain we try to access when performing the Health Check.
 - Path string
 - (string) Path we try to access when performing the Health Check.
 - Response string
 - (string) Response we expect to be included in the Target response when a Health Check was performed.
 - Status
Codes []int - (list[int]) We expect that the target answers with these status codes. If not the target is marked as 
unhealthy. - Tls bool
 - (bool) Enable TLS certificate checking.
 
- domain String
 - string) Domain we try to access when performing the Health Check.
 - path String
 - (string) Path we try to access when performing the Health Check.
 - response String
 - (string) Response we expect to be included in the Target response when a Health Check was performed.
 - status
Codes List<Integer> - (list[int]) We expect that the target answers with these status codes. If not the target is marked as 
unhealthy. - tls Boolean
 - (bool) Enable TLS certificate checking.
 
- domain string
 - string) Domain we try to access when performing the Health Check.
 - path string
 - (string) Path we try to access when performing the Health Check.
 - response string
 - (string) Response we expect to be included in the Target response when a Health Check was performed.
 - status
Codes number[] - (list[int]) We expect that the target answers with these status codes. If not the target is marked as 
unhealthy. - tls boolean
 - (bool) Enable TLS certificate checking.
 
- domain str
 - string) Domain we try to access when performing the Health Check.
 - path str
 - (string) Path we try to access when performing the Health Check.
 - response str
 - (string) Response we expect to be included in the Target response when a Health Check was performed.
 - status_
codes Sequence[int] - (list[int]) We expect that the target answers with these status codes. If not the target is marked as 
unhealthy. - tls bool
 - (bool) Enable TLS certificate checking.
 
- domain String
 - string) Domain we try to access when performing the Health Check.
 - path String
 - (string) Path we try to access when performing the Health Check.
 - response String
 - (string) Response we expect to be included in the Target response when a Health Check was performed.
 - status
Codes List<Number> - (list[int]) We expect that the target answers with these status codes. If not the target is marked as 
unhealthy. - tls Boolean
 - (bool) Enable TLS certificate checking.
 
GetLoadBalancerServiceHttp    
- Certificates List<string>
 - (list[int]) List of IDs from certificates which the Load Balancer has.
 - int
 - (int) Lifetime of the cookie for sticky session (in seconds).
 - string
 - (string) Name of the cookie for sticky session.
 - Redirect
Http bool - (string) Determine if all requests from port 80 should be redirected to port 443.
 - Sticky
Sessions bool - (string) Determine if sticky sessions are enabled or not.
 
- Certificates []string
 - (list[int]) List of IDs from certificates which the Load Balancer has.
 - int
 - (int) Lifetime of the cookie for sticky session (in seconds).
 - string
 - (string) Name of the cookie for sticky session.
 - Redirect
Http bool - (string) Determine if all requests from port 80 should be redirected to port 443.
 - Sticky
Sessions bool - (string) Determine if sticky sessions are enabled or not.
 
- certificates List<String>
 - (list[int]) List of IDs from certificates which the Load Balancer has.
 - Integer
 - (int) Lifetime of the cookie for sticky session (in seconds).
 - String
 - (string) Name of the cookie for sticky session.
 - redirect
Http Boolean - (string) Determine if all requests from port 80 should be redirected to port 443.
 - sticky
Sessions Boolean - (string) Determine if sticky sessions are enabled or not.
 
- certificates string[]
 - (list[int]) List of IDs from certificates which the Load Balancer has.
 - number
 - (int) Lifetime of the cookie for sticky session (in seconds).
 - string
 - (string) Name of the cookie for sticky session.
 - redirect
Http boolean - (string) Determine if all requests from port 80 should be redirected to port 443.
 - sticky
Sessions boolean - (string) Determine if sticky sessions are enabled or not.
 
- certificates Sequence[str]
 - (list[int]) List of IDs from certificates which the Load Balancer has.
 - int
 - (int) Lifetime of the cookie for sticky session (in seconds).
 - str
 - (string) Name of the cookie for sticky session.
 - redirect_
http bool - (string) Determine if all requests from port 80 should be redirected to port 443.
 - sticky_
sessions bool - (string) Determine if sticky sessions are enabled or not.
 
- certificates List<String>
 - (list[int]) List of IDs from certificates which the Load Balancer has.
 - Number
 - (int) Lifetime of the cookie for sticky session (in seconds).
 - String
 - (string) Name of the cookie for sticky session.
 - redirect
Http Boolean - (string) Determine if all requests from port 80 should be redirected to port 443.
 - sticky
Sessions Boolean - (string) Determine if sticky sessions are enabled or not.
 
GetLoadBalancerTarget   
- Label
Selector string - (string) Label Selector to add a group of resources based on the label.
 - Server
Id int - (int) ID of the server which should be a target for this Load Balancer.
 - Type string
 - (string) Type of the target. 
serverorlabel_selector 
- Label
Selector string - (string) Label Selector to add a group of resources based on the label.
 - Server
Id int - (int) ID of the server which should be a target for this Load Balancer.
 - Type string
 - (string) Type of the target. 
serverorlabel_selector 
- label
Selector String - (string) Label Selector to add a group of resources based on the label.
 - server
Id Integer - (int) ID of the server which should be a target for this Load Balancer.
 - type String
 - (string) Type of the target. 
serverorlabel_selector 
- label
Selector string - (string) Label Selector to add a group of resources based on the label.
 - server
Id number - (int) ID of the server which should be a target for this Load Balancer.
 - type string
 - (string) Type of the target. 
serverorlabel_selector 
- label_
selector str - (string) Label Selector to add a group of resources based on the label.
 - server_
id int - (int) ID of the server which should be a target for this Load Balancer.
 - type str
 - (string) Type of the target. 
serverorlabel_selector 
- label
Selector String - (string) Label Selector to add a group of resources based on the label.
 - server
Id Number - (int) ID of the server which should be a target for this Load Balancer.
 - type String
 - (string) Type of the target. 
serverorlabel_selector 
Package Details
- Repository
 - Hetzner Cloud pulumi/pulumi-hcloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
hcloudTerraform Provider.