hcloud

package
v1.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

A Pulumi package for creating and managing hcloud cloud resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	pulumi.CustomResourceState

	Certificate    pulumi.StringOutput      `pulumi:"certificate"`
	Created        pulumi.StringOutput      `pulumi:"created"`
	DomainNames    pulumi.StringArrayOutput `pulumi:"domainNames"`
	Fingerprint    pulumi.StringOutput      `pulumi:"fingerprint"`
	Labels         pulumi.MapOutput         `pulumi:"labels"`
	Name           pulumi.StringOutput      `pulumi:"name"`
	NotValidAfter  pulumi.StringOutput      `pulumi:"notValidAfter"`
	NotValidBefore pulumi.StringOutput      `pulumi:"notValidBefore"`
	PrivateKey     pulumi.StringOutput      `pulumi:"privateKey"`
	Type           pulumi.StringOutput      `pulumi:"type"`
}

Alias for `UploadedCertificate` to remain backwards compatible. Deprecated.

func GetCertificate

func GetCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error)

GetCertificate gets an existing Certificate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCertificate

func NewCertificate(ctx *pulumi.Context,
	name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error)

NewCertificate registers a new resource with the given unique name, arguments, and options.

func (*Certificate) ElementType added in v0.4.1

func (*Certificate) ElementType() reflect.Type

func (*Certificate) ToCertificateOutput added in v0.4.1

func (i *Certificate) ToCertificateOutput() CertificateOutput

func (*Certificate) ToCertificateOutputWithContext added in v0.4.1

func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateArgs

type CertificateArgs struct {
	Certificate pulumi.StringInput
	Labels      pulumi.MapInput
	Name        pulumi.StringPtrInput
	PrivateKey  pulumi.StringInput
}

The set of arguments for constructing a Certificate resource.

func (CertificateArgs) ElementType

func (CertificateArgs) ElementType() reflect.Type

type CertificateArray added in v0.6.2

type CertificateArray []CertificateInput

func (CertificateArray) ElementType added in v0.6.2

func (CertificateArray) ElementType() reflect.Type

func (CertificateArray) ToCertificateArrayOutput added in v0.6.2

func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArray) ToCertificateArrayOutputWithContext added in v0.6.2

func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateArrayInput added in v0.6.2

type CertificateArrayInput interface {
	pulumi.Input

	ToCertificateArrayOutput() CertificateArrayOutput
	ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput
}

CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values. You can construct a concrete instance of `CertificateArrayInput` via:

CertificateArray{ CertificateArgs{...} }

type CertificateArrayOutput added in v0.6.2

type CertificateArrayOutput struct{ *pulumi.OutputState }

func (CertificateArrayOutput) ElementType added in v0.6.2

func (CertificateArrayOutput) ElementType() reflect.Type

func (CertificateArrayOutput) Index added in v0.6.2

func (CertificateArrayOutput) ToCertificateArrayOutput added in v0.6.2

func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArrayOutput) ToCertificateArrayOutputWithContext added in v0.6.2

func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateInput added in v0.4.1

type CertificateInput interface {
	pulumi.Input

	ToCertificateOutput() CertificateOutput
	ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
}

type CertificateMap added in v0.6.2

type CertificateMap map[string]CertificateInput

func (CertificateMap) ElementType added in v0.6.2

func (CertificateMap) ElementType() reflect.Type

func (CertificateMap) ToCertificateMapOutput added in v0.6.2

func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMap) ToCertificateMapOutputWithContext added in v0.6.2

func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateMapInput added in v0.6.2

type CertificateMapInput interface {
	pulumi.Input

	ToCertificateMapOutput() CertificateMapOutput
	ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput
}

CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values. You can construct a concrete instance of `CertificateMapInput` via:

CertificateMap{ "key": CertificateArgs{...} }

type CertificateMapOutput added in v0.6.2

type CertificateMapOutput struct{ *pulumi.OutputState }

func (CertificateMapOutput) ElementType added in v0.6.2

func (CertificateMapOutput) ElementType() reflect.Type

func (CertificateMapOutput) MapIndex added in v0.6.2

func (CertificateMapOutput) ToCertificateMapOutput added in v0.6.2

func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMapOutput) ToCertificateMapOutputWithContext added in v0.6.2

func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateOutput added in v0.4.1

type CertificateOutput struct{ *pulumi.OutputState }

func (CertificateOutput) Certificate added in v1.9.0

func (o CertificateOutput) Certificate() pulumi.StringOutput

func (CertificateOutput) Created added in v1.9.0

func (CertificateOutput) DomainNames added in v1.9.0

func (o CertificateOutput) DomainNames() pulumi.StringArrayOutput

func (CertificateOutput) ElementType added in v0.4.1

func (CertificateOutput) ElementType() reflect.Type

func (CertificateOutput) Fingerprint added in v1.9.0

func (o CertificateOutput) Fingerprint() pulumi.StringOutput

func (CertificateOutput) Labels added in v1.9.0

func (o CertificateOutput) Labels() pulumi.MapOutput

func (CertificateOutput) Name added in v1.9.0

func (CertificateOutput) NotValidAfter added in v1.9.0

func (o CertificateOutput) NotValidAfter() pulumi.StringOutput

func (CertificateOutput) NotValidBefore added in v1.9.0

func (o CertificateOutput) NotValidBefore() pulumi.StringOutput

func (CertificateOutput) PrivateKey added in v1.9.0

func (o CertificateOutput) PrivateKey() pulumi.StringOutput

func (CertificateOutput) ToCertificateOutput added in v0.4.1

func (o CertificateOutput) ToCertificateOutput() CertificateOutput

func (CertificateOutput) ToCertificateOutputWithContext added in v0.4.1

func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

func (CertificateOutput) Type added in v1.9.0

type CertificateState

type CertificateState struct {
	Certificate    pulumi.StringPtrInput
	Created        pulumi.StringPtrInput
	DomainNames    pulumi.StringArrayInput
	Fingerprint    pulumi.StringPtrInput
	Labels         pulumi.MapInput
	Name           pulumi.StringPtrInput
	NotValidAfter  pulumi.StringPtrInput
	NotValidBefore pulumi.StringPtrInput
	PrivateKey     pulumi.StringPtrInput
	Type           pulumi.StringPtrInput
}

func (CertificateState) ElementType

func (CertificateState) ElementType() reflect.Type

type Firewall added in v0.7.0

type Firewall struct {
	pulumi.CustomResourceState

	// Resources the firewall should be assigned to
	ApplyTos FirewallApplyToArrayOutput `pulumi:"applyTos"`
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// Name of the Firewall.
	Name pulumi.StringOutput `pulumi:"name"`
	// Configuration of a Rule from this Firewall.
	Rules FirewallRuleArrayOutput `pulumi:"rules"`
}

Provides a Hetzner Cloud Firewall to represent a Firewall in the Hetzner Cloud.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		myfirewall, err := hcloud.NewFirewall(ctx, "myfirewall", &hcloud.FirewallArgs{
			Rules: hcloud.FirewallRuleArray{
				&hcloud.FirewallRuleArgs{
					Direction: pulumi.String("in"),
					Protocol:  pulumi.String("icmp"),
					SourceIps: pulumi.StringArray{
						pulumi.String("0.0.0.0/0"),
						pulumi.String("::/0"),
					},
				},
				&hcloud.FirewallRuleArgs{
					Direction: pulumi.String("in"),
					Protocol:  pulumi.String("tcp"),
					Port:      pulumi.String("80-85"),
					SourceIps: pulumi.StringArray{
						pulumi.String("0.0.0.0/0"),
						pulumi.String("::/0"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image:      pulumi.String("debian-11"),
			ServerType: pulumi.String("cx11"),
			FirewallIds: pulumi.IntArray{
				myfirewall.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Firewalls can be imported using its `id`:

```sh $ pulumi import hcloud:index/firewall:Firewall myfirewall id ```

func GetFirewall added in v0.7.0

func GetFirewall(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FirewallState, opts ...pulumi.ResourceOption) (*Firewall, error)

GetFirewall gets an existing Firewall resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFirewall added in v0.7.0

func NewFirewall(ctx *pulumi.Context,
	name string, args *FirewallArgs, opts ...pulumi.ResourceOption) (*Firewall, error)

NewFirewall registers a new resource with the given unique name, arguments, and options.

func (*Firewall) ElementType added in v0.7.0

func (*Firewall) ElementType() reflect.Type

func (*Firewall) ToFirewallOutput added in v0.7.0

func (i *Firewall) ToFirewallOutput() FirewallOutput

func (*Firewall) ToFirewallOutputWithContext added in v0.7.0

func (i *Firewall) ToFirewallOutputWithContext(ctx context.Context) FirewallOutput

type FirewallApplyTo added in v1.5.0

type FirewallApplyTo struct {
	// Label Selector to select servers the firewall should be applied to (only one
	// of `server` and `labelSelector`can be applied in one block)
	LabelSelector *string `pulumi:"labelSelector"`
	// ID of the server you want to apply the firewall to (only one of `server`
	// and `labelSelector`can be applied in one block)
	Server *int `pulumi:"server"`
}

type FirewallApplyToArgs added in v1.5.0

type FirewallApplyToArgs struct {
	// Label Selector to select servers the firewall should be applied to (only one
	// of `server` and `labelSelector`can be applied in one block)
	LabelSelector pulumi.StringPtrInput `pulumi:"labelSelector"`
	// ID of the server you want to apply the firewall to (only one of `server`
	// and `labelSelector`can be applied in one block)
	Server pulumi.IntPtrInput `pulumi:"server"`
}

func (FirewallApplyToArgs) ElementType added in v1.5.0

func (FirewallApplyToArgs) ElementType() reflect.Type

func (FirewallApplyToArgs) ToFirewallApplyToOutput added in v1.5.0

func (i FirewallApplyToArgs) ToFirewallApplyToOutput() FirewallApplyToOutput

func (FirewallApplyToArgs) ToFirewallApplyToOutputWithContext added in v1.5.0

func (i FirewallApplyToArgs) ToFirewallApplyToOutputWithContext(ctx context.Context) FirewallApplyToOutput

type FirewallApplyToArray added in v1.5.0

type FirewallApplyToArray []FirewallApplyToInput

func (FirewallApplyToArray) ElementType added in v1.5.0

func (FirewallApplyToArray) ElementType() reflect.Type

func (FirewallApplyToArray) ToFirewallApplyToArrayOutput added in v1.5.0

func (i FirewallApplyToArray) ToFirewallApplyToArrayOutput() FirewallApplyToArrayOutput

func (FirewallApplyToArray) ToFirewallApplyToArrayOutputWithContext added in v1.5.0

func (i FirewallApplyToArray) ToFirewallApplyToArrayOutputWithContext(ctx context.Context) FirewallApplyToArrayOutput

type FirewallApplyToArrayInput added in v1.5.0

type FirewallApplyToArrayInput interface {
	pulumi.Input

	ToFirewallApplyToArrayOutput() FirewallApplyToArrayOutput
	ToFirewallApplyToArrayOutputWithContext(context.Context) FirewallApplyToArrayOutput
}

FirewallApplyToArrayInput is an input type that accepts FirewallApplyToArray and FirewallApplyToArrayOutput values. You can construct a concrete instance of `FirewallApplyToArrayInput` via:

FirewallApplyToArray{ FirewallApplyToArgs{...} }

type FirewallApplyToArrayOutput added in v1.5.0

type FirewallApplyToArrayOutput struct{ *pulumi.OutputState }

func (FirewallApplyToArrayOutput) ElementType added in v1.5.0

func (FirewallApplyToArrayOutput) ElementType() reflect.Type

func (FirewallApplyToArrayOutput) Index added in v1.5.0

func (FirewallApplyToArrayOutput) ToFirewallApplyToArrayOutput added in v1.5.0

func (o FirewallApplyToArrayOutput) ToFirewallApplyToArrayOutput() FirewallApplyToArrayOutput

func (FirewallApplyToArrayOutput) ToFirewallApplyToArrayOutputWithContext added in v1.5.0

func (o FirewallApplyToArrayOutput) ToFirewallApplyToArrayOutputWithContext(ctx context.Context) FirewallApplyToArrayOutput

type FirewallApplyToInput added in v1.5.0

type FirewallApplyToInput interface {
	pulumi.Input

	ToFirewallApplyToOutput() FirewallApplyToOutput
	ToFirewallApplyToOutputWithContext(context.Context) FirewallApplyToOutput
}

FirewallApplyToInput is an input type that accepts FirewallApplyToArgs and FirewallApplyToOutput values. You can construct a concrete instance of `FirewallApplyToInput` via:

FirewallApplyToArgs{...}

type FirewallApplyToOutput added in v1.5.0

type FirewallApplyToOutput struct{ *pulumi.OutputState }

func (FirewallApplyToOutput) ElementType added in v1.5.0

func (FirewallApplyToOutput) ElementType() reflect.Type

func (FirewallApplyToOutput) LabelSelector added in v1.5.0

func (o FirewallApplyToOutput) LabelSelector() pulumi.StringPtrOutput

Label Selector to select servers the firewall should be applied to (only one of `server` and `labelSelector`can be applied in one block)

func (FirewallApplyToOutput) Server added in v1.5.0

ID of the server you want to apply the firewall to (only one of `server` and `labelSelector`can be applied in one block)

func (FirewallApplyToOutput) ToFirewallApplyToOutput added in v1.5.0

func (o FirewallApplyToOutput) ToFirewallApplyToOutput() FirewallApplyToOutput

func (FirewallApplyToOutput) ToFirewallApplyToOutputWithContext added in v1.5.0

func (o FirewallApplyToOutput) ToFirewallApplyToOutputWithContext(ctx context.Context) FirewallApplyToOutput

type FirewallArgs added in v0.7.0

type FirewallArgs struct {
	// Resources the firewall should be assigned to
	ApplyTos FirewallApplyToArrayInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Name of the Firewall.
	Name pulumi.StringPtrInput
	// Configuration of a Rule from this Firewall.
	Rules FirewallRuleArrayInput
}

The set of arguments for constructing a Firewall resource.

func (FirewallArgs) ElementType added in v0.7.0

func (FirewallArgs) ElementType() reflect.Type

type FirewallArray added in v0.7.0

type FirewallArray []FirewallInput

func (FirewallArray) ElementType added in v0.7.0

func (FirewallArray) ElementType() reflect.Type

func (FirewallArray) ToFirewallArrayOutput added in v0.7.0

func (i FirewallArray) ToFirewallArrayOutput() FirewallArrayOutput

func (FirewallArray) ToFirewallArrayOutputWithContext added in v0.7.0

func (i FirewallArray) ToFirewallArrayOutputWithContext(ctx context.Context) FirewallArrayOutput

type FirewallArrayInput added in v0.7.0

type FirewallArrayInput interface {
	pulumi.Input

	ToFirewallArrayOutput() FirewallArrayOutput
	ToFirewallArrayOutputWithContext(context.Context) FirewallArrayOutput
}

FirewallArrayInput is an input type that accepts FirewallArray and FirewallArrayOutput values. You can construct a concrete instance of `FirewallArrayInput` via:

FirewallArray{ FirewallArgs{...} }

type FirewallArrayOutput added in v0.7.0

type FirewallArrayOutput struct{ *pulumi.OutputState }

func (FirewallArrayOutput) ElementType added in v0.7.0

func (FirewallArrayOutput) ElementType() reflect.Type

func (FirewallArrayOutput) Index added in v0.7.0

func (FirewallArrayOutput) ToFirewallArrayOutput added in v0.7.0

func (o FirewallArrayOutput) ToFirewallArrayOutput() FirewallArrayOutput

func (FirewallArrayOutput) ToFirewallArrayOutputWithContext added in v0.7.0

func (o FirewallArrayOutput) ToFirewallArrayOutputWithContext(ctx context.Context) FirewallArrayOutput

type FirewallAttachment added in v1.8.0

type FirewallAttachment struct {
	pulumi.CustomResourceState

	// ID of the firewall the resources
	// should be attached to.
	FirewallId pulumi.IntOutput `pulumi:"firewallId"`
	// List of label selectors used to
	// select resources to attach to the firewall.
	LabelSelectors pulumi.StringArrayOutput `pulumi:"labelSelectors"`
	// List of Server IDs to attach to the
	// firewall.
	ServerIds pulumi.IntArrayOutput `pulumi:"serverIds"`
}

Attaches resource to a Hetzner Cloud Firewall.

*Note*: only one `FirewallAttachment` per Firewall is allowed. Any resources that should be attached to that Firewall need to be specified in that `FirewallAttachment`.

## Example Usage

### Attach Servers

<!--Start PulumiCodeChooser --> ```go 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 {
		testServer, err := hcloud.NewServer(ctx, "testServer", &hcloud.ServerArgs{
			ServerType: pulumi.String("cx11"),
			Image:      pulumi.String("ubuntu-20.04"),
		})
		if err != nil {
			return err
		}
		basicFirewall, err := hcloud.NewFirewall(ctx, "basicFirewall", nil)
		if err != nil {
			return err
		}
		_, err = hcloud.NewFirewallAttachment(ctx, "fwRef", &hcloud.FirewallAttachmentArgs{
			FirewallId: basicFirewall.ID(),
			ServerIds: pulumi.IntArray{
				testServer.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

### Attach Label Selectors

<!--Start PulumiCodeChooser --> ```go 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.NewServer(ctx, "testServer", &hcloud.ServerArgs{
			ServerType: pulumi.String("cx11"),
			Image:      pulumi.String("ubuntu-20.04"),
			Labels: pulumi.Map{
				"firewall-attachment": pulumi.Any("test-server"),
			},
		})
		if err != nil {
			return err
		}
		basicFirewall, err := hcloud.NewFirewall(ctx, "basicFirewall", nil)
		if err != nil {
			return err
		}
		_, err = hcloud.NewFirewallAttachment(ctx, "fwRef", &hcloud.FirewallAttachmentArgs{
			FirewallId: basicFirewall.ID(),
			LabelSelectors: pulumi.StringArray{
				pulumi.String("firewall-attachment=test-server"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

func GetFirewallAttachment added in v1.8.0

func GetFirewallAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FirewallAttachmentState, opts ...pulumi.ResourceOption) (*FirewallAttachment, error)

GetFirewallAttachment gets an existing FirewallAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFirewallAttachment added in v1.8.0

func NewFirewallAttachment(ctx *pulumi.Context,
	name string, args *FirewallAttachmentArgs, opts ...pulumi.ResourceOption) (*FirewallAttachment, error)

NewFirewallAttachment registers a new resource with the given unique name, arguments, and options.

func (*FirewallAttachment) ElementType added in v1.8.0

func (*FirewallAttachment) ElementType() reflect.Type

func (*FirewallAttachment) ToFirewallAttachmentOutput added in v1.8.0

func (i *FirewallAttachment) ToFirewallAttachmentOutput() FirewallAttachmentOutput

func (*FirewallAttachment) ToFirewallAttachmentOutputWithContext added in v1.8.0

func (i *FirewallAttachment) ToFirewallAttachmentOutputWithContext(ctx context.Context) FirewallAttachmentOutput

type FirewallAttachmentArgs added in v1.8.0

type FirewallAttachmentArgs struct {
	// ID of the firewall the resources
	// should be attached to.
	FirewallId pulumi.IntInput
	// List of label selectors used to
	// select resources to attach to the firewall.
	LabelSelectors pulumi.StringArrayInput
	// List of Server IDs to attach to the
	// firewall.
	ServerIds pulumi.IntArrayInput
}

The set of arguments for constructing a FirewallAttachment resource.

func (FirewallAttachmentArgs) ElementType added in v1.8.0

func (FirewallAttachmentArgs) ElementType() reflect.Type

type FirewallAttachmentArray added in v1.8.0

type FirewallAttachmentArray []FirewallAttachmentInput

func (FirewallAttachmentArray) ElementType added in v1.8.0

func (FirewallAttachmentArray) ElementType() reflect.Type

func (FirewallAttachmentArray) ToFirewallAttachmentArrayOutput added in v1.8.0

func (i FirewallAttachmentArray) ToFirewallAttachmentArrayOutput() FirewallAttachmentArrayOutput

func (FirewallAttachmentArray) ToFirewallAttachmentArrayOutputWithContext added in v1.8.0

func (i FirewallAttachmentArray) ToFirewallAttachmentArrayOutputWithContext(ctx context.Context) FirewallAttachmentArrayOutput

type FirewallAttachmentArrayInput added in v1.8.0

type FirewallAttachmentArrayInput interface {
	pulumi.Input

	ToFirewallAttachmentArrayOutput() FirewallAttachmentArrayOutput
	ToFirewallAttachmentArrayOutputWithContext(context.Context) FirewallAttachmentArrayOutput
}

FirewallAttachmentArrayInput is an input type that accepts FirewallAttachmentArray and FirewallAttachmentArrayOutput values. You can construct a concrete instance of `FirewallAttachmentArrayInput` via:

FirewallAttachmentArray{ FirewallAttachmentArgs{...} }

type FirewallAttachmentArrayOutput added in v1.8.0

type FirewallAttachmentArrayOutput struct{ *pulumi.OutputState }

func (FirewallAttachmentArrayOutput) ElementType added in v1.8.0

func (FirewallAttachmentArrayOutput) Index added in v1.8.0

func (FirewallAttachmentArrayOutput) ToFirewallAttachmentArrayOutput added in v1.8.0

func (o FirewallAttachmentArrayOutput) ToFirewallAttachmentArrayOutput() FirewallAttachmentArrayOutput

func (FirewallAttachmentArrayOutput) ToFirewallAttachmentArrayOutputWithContext added in v1.8.0

func (o FirewallAttachmentArrayOutput) ToFirewallAttachmentArrayOutputWithContext(ctx context.Context) FirewallAttachmentArrayOutput

type FirewallAttachmentInput added in v1.8.0

type FirewallAttachmentInput interface {
	pulumi.Input

	ToFirewallAttachmentOutput() FirewallAttachmentOutput
	ToFirewallAttachmentOutputWithContext(ctx context.Context) FirewallAttachmentOutput
}

type FirewallAttachmentMap added in v1.8.0

type FirewallAttachmentMap map[string]FirewallAttachmentInput

func (FirewallAttachmentMap) ElementType added in v1.8.0

func (FirewallAttachmentMap) ElementType() reflect.Type

func (FirewallAttachmentMap) ToFirewallAttachmentMapOutput added in v1.8.0

func (i FirewallAttachmentMap) ToFirewallAttachmentMapOutput() FirewallAttachmentMapOutput

func (FirewallAttachmentMap) ToFirewallAttachmentMapOutputWithContext added in v1.8.0

func (i FirewallAttachmentMap) ToFirewallAttachmentMapOutputWithContext(ctx context.Context) FirewallAttachmentMapOutput

type FirewallAttachmentMapInput added in v1.8.0

type FirewallAttachmentMapInput interface {
	pulumi.Input

	ToFirewallAttachmentMapOutput() FirewallAttachmentMapOutput
	ToFirewallAttachmentMapOutputWithContext(context.Context) FirewallAttachmentMapOutput
}

FirewallAttachmentMapInput is an input type that accepts FirewallAttachmentMap and FirewallAttachmentMapOutput values. You can construct a concrete instance of `FirewallAttachmentMapInput` via:

FirewallAttachmentMap{ "key": FirewallAttachmentArgs{...} }

type FirewallAttachmentMapOutput added in v1.8.0

type FirewallAttachmentMapOutput struct{ *pulumi.OutputState }

func (FirewallAttachmentMapOutput) ElementType added in v1.8.0

func (FirewallAttachmentMapOutput) MapIndex added in v1.8.0

func (FirewallAttachmentMapOutput) ToFirewallAttachmentMapOutput added in v1.8.0

func (o FirewallAttachmentMapOutput) ToFirewallAttachmentMapOutput() FirewallAttachmentMapOutput

func (FirewallAttachmentMapOutput) ToFirewallAttachmentMapOutputWithContext added in v1.8.0

func (o FirewallAttachmentMapOutput) ToFirewallAttachmentMapOutputWithContext(ctx context.Context) FirewallAttachmentMapOutput

type FirewallAttachmentOutput added in v1.8.0

type FirewallAttachmentOutput struct{ *pulumi.OutputState }

func (FirewallAttachmentOutput) ElementType added in v1.8.0

func (FirewallAttachmentOutput) ElementType() reflect.Type

func (FirewallAttachmentOutput) FirewallId added in v1.9.0

func (o FirewallAttachmentOutput) FirewallId() pulumi.IntOutput

ID of the firewall the resources should be attached to.

func (FirewallAttachmentOutput) LabelSelectors added in v1.9.0

List of label selectors used to select resources to attach to the firewall.

func (FirewallAttachmentOutput) ServerIds added in v1.9.0

List of Server IDs to attach to the firewall.

func (FirewallAttachmentOutput) ToFirewallAttachmentOutput added in v1.8.0

func (o FirewallAttachmentOutput) ToFirewallAttachmentOutput() FirewallAttachmentOutput

func (FirewallAttachmentOutput) ToFirewallAttachmentOutputWithContext added in v1.8.0

func (o FirewallAttachmentOutput) ToFirewallAttachmentOutputWithContext(ctx context.Context) FirewallAttachmentOutput

type FirewallAttachmentState added in v1.8.0

type FirewallAttachmentState struct {
	// ID of the firewall the resources
	// should be attached to.
	FirewallId pulumi.IntPtrInput
	// List of label selectors used to
	// select resources to attach to the firewall.
	LabelSelectors pulumi.StringArrayInput
	// List of Server IDs to attach to the
	// firewall.
	ServerIds pulumi.IntArrayInput
}

func (FirewallAttachmentState) ElementType added in v1.8.0

func (FirewallAttachmentState) ElementType() reflect.Type

type FirewallInput added in v0.7.0

type FirewallInput interface {
	pulumi.Input

	ToFirewallOutput() FirewallOutput
	ToFirewallOutputWithContext(ctx context.Context) FirewallOutput
}

type FirewallMap added in v0.7.0

type FirewallMap map[string]FirewallInput

func (FirewallMap) ElementType added in v0.7.0

func (FirewallMap) ElementType() reflect.Type

func (FirewallMap) ToFirewallMapOutput added in v0.7.0

func (i FirewallMap) ToFirewallMapOutput() FirewallMapOutput

func (FirewallMap) ToFirewallMapOutputWithContext added in v0.7.0

func (i FirewallMap) ToFirewallMapOutputWithContext(ctx context.Context) FirewallMapOutput

type FirewallMapInput added in v0.7.0

type FirewallMapInput interface {
	pulumi.Input

	ToFirewallMapOutput() FirewallMapOutput
	ToFirewallMapOutputWithContext(context.Context) FirewallMapOutput
}

FirewallMapInput is an input type that accepts FirewallMap and FirewallMapOutput values. You can construct a concrete instance of `FirewallMapInput` via:

FirewallMap{ "key": FirewallArgs{...} }

type FirewallMapOutput added in v0.7.0

type FirewallMapOutput struct{ *pulumi.OutputState }

func (FirewallMapOutput) ElementType added in v0.7.0

func (FirewallMapOutput) ElementType() reflect.Type

func (FirewallMapOutput) MapIndex added in v0.7.0

func (FirewallMapOutput) ToFirewallMapOutput added in v0.7.0

func (o FirewallMapOutput) ToFirewallMapOutput() FirewallMapOutput

func (FirewallMapOutput) ToFirewallMapOutputWithContext added in v0.7.0

func (o FirewallMapOutput) ToFirewallMapOutputWithContext(ctx context.Context) FirewallMapOutput

type FirewallOutput added in v0.7.0

type FirewallOutput struct{ *pulumi.OutputState }

func (FirewallOutput) ApplyTos added in v1.9.0

Resources the firewall should be assigned to

func (FirewallOutput) ElementType added in v0.7.0

func (FirewallOutput) ElementType() reflect.Type

func (FirewallOutput) Labels added in v1.9.0

func (o FirewallOutput) Labels() pulumi.MapOutput

User-defined labels (key-value pairs) should be created with.

func (FirewallOutput) Name added in v1.9.0

Name of the Firewall.

func (FirewallOutput) Rules added in v1.9.0

Configuration of a Rule from this Firewall.

func (FirewallOutput) ToFirewallOutput added in v0.7.0

func (o FirewallOutput) ToFirewallOutput() FirewallOutput

func (FirewallOutput) ToFirewallOutputWithContext added in v0.7.0

func (o FirewallOutput) ToFirewallOutputWithContext(ctx context.Context) FirewallOutput

type FirewallRule added in v0.7.0

type FirewallRule struct {
	// Description of the firewall rule
	Description *string `pulumi:"description"`
	// List of IPs or CIDRs that are allowed within this Firewall Rule (when `direction`
	// is `out`)
	DestinationIps []string `pulumi:"destinationIps"`
	// Direction of the Firewall Rule. `in`
	Direction string `pulumi:"direction"`
	// Port of the Firewall Rule. Required when `protocol` is `tcp` or `udp`. You can use `any`
	// to allow all ports for the specific protocol. Port ranges are also possible: `80-85` allows all ports between 80 and 85.
	Port *string `pulumi:"port"`
	// Protocol of the Firewall Rule. `tcp`, `icmp`, `udp`, `gre`, `esp`
	Protocol string `pulumi:"protocol"`
	// List of IPs or CIDRs that are allowed within this Firewall Rule (when `direction`
	// is `in`)
	SourceIps []string `pulumi:"sourceIps"`
}

type FirewallRuleArgs added in v0.7.0

type FirewallRuleArgs struct {
	// Description of the firewall rule
	Description pulumi.StringPtrInput `pulumi:"description"`
	// List of IPs or CIDRs that are allowed within this Firewall Rule (when `direction`
	// is `out`)
	DestinationIps pulumi.StringArrayInput `pulumi:"destinationIps"`
	// Direction of the Firewall Rule. `in`
	Direction pulumi.StringInput `pulumi:"direction"`
	// Port of the Firewall Rule. Required when `protocol` is `tcp` or `udp`. You can use `any`
	// to allow all ports for the specific protocol. Port ranges are also possible: `80-85` allows all ports between 80 and 85.
	Port pulumi.StringPtrInput `pulumi:"port"`
	// Protocol of the Firewall Rule. `tcp`, `icmp`, `udp`, `gre`, `esp`
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// List of IPs or CIDRs that are allowed within this Firewall Rule (when `direction`
	// is `in`)
	SourceIps pulumi.StringArrayInput `pulumi:"sourceIps"`
}

func (FirewallRuleArgs) ElementType added in v0.7.0

func (FirewallRuleArgs) ElementType() reflect.Type

func (FirewallRuleArgs) ToFirewallRuleOutput added in v0.7.0

func (i FirewallRuleArgs) ToFirewallRuleOutput() FirewallRuleOutput

func (FirewallRuleArgs) ToFirewallRuleOutputWithContext added in v0.7.0

func (i FirewallRuleArgs) ToFirewallRuleOutputWithContext(ctx context.Context) FirewallRuleOutput

type FirewallRuleArray added in v0.7.0

type FirewallRuleArray []FirewallRuleInput

func (FirewallRuleArray) ElementType added in v0.7.0

func (FirewallRuleArray) ElementType() reflect.Type

func (FirewallRuleArray) ToFirewallRuleArrayOutput added in v0.7.0

func (i FirewallRuleArray) ToFirewallRuleArrayOutput() FirewallRuleArrayOutput

func (FirewallRuleArray) ToFirewallRuleArrayOutputWithContext added in v0.7.0

func (i FirewallRuleArray) ToFirewallRuleArrayOutputWithContext(ctx context.Context) FirewallRuleArrayOutput

type FirewallRuleArrayInput added in v0.7.0

type FirewallRuleArrayInput interface {
	pulumi.Input

	ToFirewallRuleArrayOutput() FirewallRuleArrayOutput
	ToFirewallRuleArrayOutputWithContext(context.Context) FirewallRuleArrayOutput
}

FirewallRuleArrayInput is an input type that accepts FirewallRuleArray and FirewallRuleArrayOutput values. You can construct a concrete instance of `FirewallRuleArrayInput` via:

FirewallRuleArray{ FirewallRuleArgs{...} }

type FirewallRuleArrayOutput added in v0.7.0

type FirewallRuleArrayOutput struct{ *pulumi.OutputState }

func (FirewallRuleArrayOutput) ElementType added in v0.7.0

func (FirewallRuleArrayOutput) ElementType() reflect.Type

func (FirewallRuleArrayOutput) Index added in v0.7.0

func (FirewallRuleArrayOutput) ToFirewallRuleArrayOutput added in v0.7.0

func (o FirewallRuleArrayOutput) ToFirewallRuleArrayOutput() FirewallRuleArrayOutput

func (FirewallRuleArrayOutput) ToFirewallRuleArrayOutputWithContext added in v0.7.0

func (o FirewallRuleArrayOutput) ToFirewallRuleArrayOutputWithContext(ctx context.Context) FirewallRuleArrayOutput

type FirewallRuleInput added in v0.7.0

type FirewallRuleInput interface {
	pulumi.Input

	ToFirewallRuleOutput() FirewallRuleOutput
	ToFirewallRuleOutputWithContext(context.Context) FirewallRuleOutput
}

FirewallRuleInput is an input type that accepts FirewallRuleArgs and FirewallRuleOutput values. You can construct a concrete instance of `FirewallRuleInput` via:

FirewallRuleArgs{...}

type FirewallRuleOutput added in v0.7.0

type FirewallRuleOutput struct{ *pulumi.OutputState }

func (FirewallRuleOutput) Description added in v1.2.0

func (o FirewallRuleOutput) Description() pulumi.StringPtrOutput

Description of the firewall rule

func (FirewallRuleOutput) DestinationIps added in v0.7.0

func (o FirewallRuleOutput) DestinationIps() pulumi.StringArrayOutput

List of IPs or CIDRs that are allowed within this Firewall Rule (when `direction` is `out`)

func (FirewallRuleOutput) Direction added in v0.7.0

func (o FirewallRuleOutput) Direction() pulumi.StringOutput

Direction of the Firewall Rule. `in`

func (FirewallRuleOutput) ElementType added in v0.7.0

func (FirewallRuleOutput) ElementType() reflect.Type

func (FirewallRuleOutput) Port added in v0.7.0

Port of the Firewall Rule. Required when `protocol` is `tcp` or `udp`. You can use `any` to allow all ports for the specific protocol. Port ranges are also possible: `80-85` allows all ports between 80 and 85.

func (FirewallRuleOutput) Protocol added in v0.7.0

func (o FirewallRuleOutput) Protocol() pulumi.StringOutput

Protocol of the Firewall Rule. `tcp`, `icmp`, `udp`, `gre`, `esp`

func (FirewallRuleOutput) SourceIps added in v0.7.0

List of IPs or CIDRs that are allowed within this Firewall Rule (when `direction` is `in`)

func (FirewallRuleOutput) ToFirewallRuleOutput added in v0.7.0

func (o FirewallRuleOutput) ToFirewallRuleOutput() FirewallRuleOutput

func (FirewallRuleOutput) ToFirewallRuleOutputWithContext added in v0.7.0

func (o FirewallRuleOutput) ToFirewallRuleOutputWithContext(ctx context.Context) FirewallRuleOutput

type FirewallState added in v0.7.0

type FirewallState struct {
	// Resources the firewall should be assigned to
	ApplyTos FirewallApplyToArrayInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Name of the Firewall.
	Name pulumi.StringPtrInput
	// Configuration of a Rule from this Firewall.
	Rules FirewallRuleArrayInput
}

func (FirewallState) ElementType added in v0.7.0

func (FirewallState) ElementType() reflect.Type

type FloatingIp

type FloatingIp struct {
	pulumi.CustomResourceState

	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrOutput `pulumi:"deleteProtection"`
	// Description of the Floating IP.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Name of home location (routing is optimized for that location). Optional if serverId argument is passed.
	HomeLocation pulumi.StringOutput `pulumi:"homeLocation"`
	// (string) IP Address of the Floating IP.
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// (string) IPv6 subnet. (Only set if `type` is `ipv6`)
	IpNetwork pulumi.StringOutput `pulumi:"ipNetwork"`
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// Name of the Floating IP.
	Name pulumi.StringOutput `pulumi:"name"`
	// Server to assign the Floating IP to.
	ServerId pulumi.IntOutput `pulumi:"serverId"`
	// Type of the Floating IP. `ipv4` `ipv6`
	Type pulumi.StringOutput `pulumi:"type"`
}

Provides a Hetzner Cloud Floating IP to represent a publicly-accessible static IP address that can be mapped to one of your servers.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		node1, err := hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image:      pulumi.String("debian-11"),
			ServerType: pulumi.String("cx11"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewFloatingIp(ctx, "master", &hcloud.FloatingIpArgs{
			Type:     pulumi.String("ipv4"),
			ServerId: node1.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Floating IPs can be imported using its `id`:

```sh $ pulumi import hcloud:index/floatingIp:FloatingIp myip id ```

func GetFloatingIp

func GetFloatingIp(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FloatingIpState, opts ...pulumi.ResourceOption) (*FloatingIp, error)

GetFloatingIp gets an existing FloatingIp resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFloatingIp

func NewFloatingIp(ctx *pulumi.Context,
	name string, args *FloatingIpArgs, opts ...pulumi.ResourceOption) (*FloatingIp, error)

NewFloatingIp registers a new resource with the given unique name, arguments, and options.

func (*FloatingIp) ElementType added in v0.4.1

func (*FloatingIp) ElementType() reflect.Type

func (*FloatingIp) ToFloatingIpOutput added in v0.4.1

func (i *FloatingIp) ToFloatingIpOutput() FloatingIpOutput

func (*FloatingIp) ToFloatingIpOutputWithContext added in v0.4.1

func (i *FloatingIp) ToFloatingIpOutputWithContext(ctx context.Context) FloatingIpOutput

type FloatingIpArgs

type FloatingIpArgs struct {
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// Description of the Floating IP.
	Description pulumi.StringPtrInput
	// Name of home location (routing is optimized for that location). Optional if serverId argument is passed.
	HomeLocation pulumi.StringPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Name of the Floating IP.
	Name pulumi.StringPtrInput
	// Server to assign the Floating IP to.
	ServerId pulumi.IntPtrInput
	// Type of the Floating IP. `ipv4` `ipv6`
	Type pulumi.StringInput
}

The set of arguments for constructing a FloatingIp resource.

func (FloatingIpArgs) ElementType

func (FloatingIpArgs) ElementType() reflect.Type

type FloatingIpArray added in v0.6.2

type FloatingIpArray []FloatingIpInput

func (FloatingIpArray) ElementType added in v0.6.2

func (FloatingIpArray) ElementType() reflect.Type

func (FloatingIpArray) ToFloatingIpArrayOutput added in v0.6.2

func (i FloatingIpArray) ToFloatingIpArrayOutput() FloatingIpArrayOutput

func (FloatingIpArray) ToFloatingIpArrayOutputWithContext added in v0.6.2

func (i FloatingIpArray) ToFloatingIpArrayOutputWithContext(ctx context.Context) FloatingIpArrayOutput

type FloatingIpArrayInput added in v0.6.2

type FloatingIpArrayInput interface {
	pulumi.Input

	ToFloatingIpArrayOutput() FloatingIpArrayOutput
	ToFloatingIpArrayOutputWithContext(context.Context) FloatingIpArrayOutput
}

FloatingIpArrayInput is an input type that accepts FloatingIpArray and FloatingIpArrayOutput values. You can construct a concrete instance of `FloatingIpArrayInput` via:

FloatingIpArray{ FloatingIpArgs{...} }

type FloatingIpArrayOutput added in v0.6.2

type FloatingIpArrayOutput struct{ *pulumi.OutputState }

func (FloatingIpArrayOutput) ElementType added in v0.6.2

func (FloatingIpArrayOutput) ElementType() reflect.Type

func (FloatingIpArrayOutput) Index added in v0.6.2

func (FloatingIpArrayOutput) ToFloatingIpArrayOutput added in v0.6.2

func (o FloatingIpArrayOutput) ToFloatingIpArrayOutput() FloatingIpArrayOutput

func (FloatingIpArrayOutput) ToFloatingIpArrayOutputWithContext added in v0.6.2

func (o FloatingIpArrayOutput) ToFloatingIpArrayOutputWithContext(ctx context.Context) FloatingIpArrayOutput

type FloatingIpAssignment

type FloatingIpAssignment struct {
	pulumi.CustomResourceState

	// ID of the Floating IP.
	FloatingIpId pulumi.IntOutput `pulumi:"floatingIpId"`
	// Server to assign the Floating IP to.
	ServerId pulumi.IntOutput `pulumi:"serverId"`
}

Provides a Hetzner Cloud Floating IP Assignment to assign a Floating IP to a Hetzner Cloud Server. Deleting a Floating IP Assignment will unassign the Floating IP from the Server.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		node1, err := hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image:      pulumi.String("debian-11"),
			ServerType: pulumi.String("cx11"),
			Datacenter: pulumi.String("fsn1-dc8"),
		})
		if err != nil {
			return err
		}
		master, err := hcloud.NewFloatingIp(ctx, "master", &hcloud.FloatingIpArgs{
			Type:         pulumi.String("ipv4"),
			HomeLocation: pulumi.String("nbg1"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewFloatingIpAssignment(ctx, "main", &hcloud.FloatingIpAssignmentArgs{
			FloatingIpId: master.ID(),
			ServerId:     node1.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Floating IP Assignments can be imported using the `floating_ip_id`:

```sh $ pulumi import hcloud:index/floatingIpAssignment:FloatingIpAssignment myfloatingipassignment <floating_ip_id> ```

func GetFloatingIpAssignment

func GetFloatingIpAssignment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FloatingIpAssignmentState, opts ...pulumi.ResourceOption) (*FloatingIpAssignment, error)

GetFloatingIpAssignment gets an existing FloatingIpAssignment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFloatingIpAssignment

func NewFloatingIpAssignment(ctx *pulumi.Context,
	name string, args *FloatingIpAssignmentArgs, opts ...pulumi.ResourceOption) (*FloatingIpAssignment, error)

NewFloatingIpAssignment registers a new resource with the given unique name, arguments, and options.

func (*FloatingIpAssignment) ElementType added in v0.4.1

func (*FloatingIpAssignment) ElementType() reflect.Type

func (*FloatingIpAssignment) ToFloatingIpAssignmentOutput added in v0.4.1

func (i *FloatingIpAssignment) ToFloatingIpAssignmentOutput() FloatingIpAssignmentOutput

func (*FloatingIpAssignment) ToFloatingIpAssignmentOutputWithContext added in v0.4.1

func (i *FloatingIpAssignment) ToFloatingIpAssignmentOutputWithContext(ctx context.Context) FloatingIpAssignmentOutput

type FloatingIpAssignmentArgs

type FloatingIpAssignmentArgs struct {
	// ID of the Floating IP.
	FloatingIpId pulumi.IntInput
	// Server to assign the Floating IP to.
	ServerId pulumi.IntInput
}

The set of arguments for constructing a FloatingIpAssignment resource.

func (FloatingIpAssignmentArgs) ElementType

func (FloatingIpAssignmentArgs) ElementType() reflect.Type

type FloatingIpAssignmentArray added in v0.6.2

type FloatingIpAssignmentArray []FloatingIpAssignmentInput

func (FloatingIpAssignmentArray) ElementType added in v0.6.2

func (FloatingIpAssignmentArray) ElementType() reflect.Type

func (FloatingIpAssignmentArray) ToFloatingIpAssignmentArrayOutput added in v0.6.2

func (i FloatingIpAssignmentArray) ToFloatingIpAssignmentArrayOutput() FloatingIpAssignmentArrayOutput

func (FloatingIpAssignmentArray) ToFloatingIpAssignmentArrayOutputWithContext added in v0.6.2

func (i FloatingIpAssignmentArray) ToFloatingIpAssignmentArrayOutputWithContext(ctx context.Context) FloatingIpAssignmentArrayOutput

type FloatingIpAssignmentArrayInput added in v0.6.2

type FloatingIpAssignmentArrayInput interface {
	pulumi.Input

	ToFloatingIpAssignmentArrayOutput() FloatingIpAssignmentArrayOutput
	ToFloatingIpAssignmentArrayOutputWithContext(context.Context) FloatingIpAssignmentArrayOutput
}

FloatingIpAssignmentArrayInput is an input type that accepts FloatingIpAssignmentArray and FloatingIpAssignmentArrayOutput values. You can construct a concrete instance of `FloatingIpAssignmentArrayInput` via:

FloatingIpAssignmentArray{ FloatingIpAssignmentArgs{...} }

type FloatingIpAssignmentArrayOutput added in v0.6.2

type FloatingIpAssignmentArrayOutput struct{ *pulumi.OutputState }

func (FloatingIpAssignmentArrayOutput) ElementType added in v0.6.2

func (FloatingIpAssignmentArrayOutput) Index added in v0.6.2

func (FloatingIpAssignmentArrayOutput) ToFloatingIpAssignmentArrayOutput added in v0.6.2

func (o FloatingIpAssignmentArrayOutput) ToFloatingIpAssignmentArrayOutput() FloatingIpAssignmentArrayOutput

func (FloatingIpAssignmentArrayOutput) ToFloatingIpAssignmentArrayOutputWithContext added in v0.6.2

func (o FloatingIpAssignmentArrayOutput) ToFloatingIpAssignmentArrayOutputWithContext(ctx context.Context) FloatingIpAssignmentArrayOutput

type FloatingIpAssignmentInput added in v0.4.1

type FloatingIpAssignmentInput interface {
	pulumi.Input

	ToFloatingIpAssignmentOutput() FloatingIpAssignmentOutput
	ToFloatingIpAssignmentOutputWithContext(ctx context.Context) FloatingIpAssignmentOutput
}

type FloatingIpAssignmentMap added in v0.6.2

type FloatingIpAssignmentMap map[string]FloatingIpAssignmentInput

func (FloatingIpAssignmentMap) ElementType added in v0.6.2

func (FloatingIpAssignmentMap) ElementType() reflect.Type

func (FloatingIpAssignmentMap) ToFloatingIpAssignmentMapOutput added in v0.6.2

func (i FloatingIpAssignmentMap) ToFloatingIpAssignmentMapOutput() FloatingIpAssignmentMapOutput

func (FloatingIpAssignmentMap) ToFloatingIpAssignmentMapOutputWithContext added in v0.6.2

func (i FloatingIpAssignmentMap) ToFloatingIpAssignmentMapOutputWithContext(ctx context.Context) FloatingIpAssignmentMapOutput

type FloatingIpAssignmentMapInput added in v0.6.2

type FloatingIpAssignmentMapInput interface {
	pulumi.Input

	ToFloatingIpAssignmentMapOutput() FloatingIpAssignmentMapOutput
	ToFloatingIpAssignmentMapOutputWithContext(context.Context) FloatingIpAssignmentMapOutput
}

FloatingIpAssignmentMapInput is an input type that accepts FloatingIpAssignmentMap and FloatingIpAssignmentMapOutput values. You can construct a concrete instance of `FloatingIpAssignmentMapInput` via:

FloatingIpAssignmentMap{ "key": FloatingIpAssignmentArgs{...} }

type FloatingIpAssignmentMapOutput added in v0.6.2

type FloatingIpAssignmentMapOutput struct{ *pulumi.OutputState }

func (FloatingIpAssignmentMapOutput) ElementType added in v0.6.2

func (FloatingIpAssignmentMapOutput) MapIndex added in v0.6.2

func (FloatingIpAssignmentMapOutput) ToFloatingIpAssignmentMapOutput added in v0.6.2

func (o FloatingIpAssignmentMapOutput) ToFloatingIpAssignmentMapOutput() FloatingIpAssignmentMapOutput

func (FloatingIpAssignmentMapOutput) ToFloatingIpAssignmentMapOutputWithContext added in v0.6.2

func (o FloatingIpAssignmentMapOutput) ToFloatingIpAssignmentMapOutputWithContext(ctx context.Context) FloatingIpAssignmentMapOutput

type FloatingIpAssignmentOutput added in v0.4.1

type FloatingIpAssignmentOutput struct{ *pulumi.OutputState }

func (FloatingIpAssignmentOutput) ElementType added in v0.4.1

func (FloatingIpAssignmentOutput) ElementType() reflect.Type

func (FloatingIpAssignmentOutput) FloatingIpId added in v1.9.0

func (o FloatingIpAssignmentOutput) FloatingIpId() pulumi.IntOutput

ID of the Floating IP.

func (FloatingIpAssignmentOutput) ServerId added in v1.9.0

Server to assign the Floating IP to.

func (FloatingIpAssignmentOutput) ToFloatingIpAssignmentOutput added in v0.4.1

func (o FloatingIpAssignmentOutput) ToFloatingIpAssignmentOutput() FloatingIpAssignmentOutput

func (FloatingIpAssignmentOutput) ToFloatingIpAssignmentOutputWithContext added in v0.4.1

func (o FloatingIpAssignmentOutput) ToFloatingIpAssignmentOutputWithContext(ctx context.Context) FloatingIpAssignmentOutput

type FloatingIpAssignmentState

type FloatingIpAssignmentState struct {
	// ID of the Floating IP.
	FloatingIpId pulumi.IntPtrInput
	// Server to assign the Floating IP to.
	ServerId pulumi.IntPtrInput
}

func (FloatingIpAssignmentState) ElementType

func (FloatingIpAssignmentState) ElementType() reflect.Type

type FloatingIpInput added in v0.4.1

type FloatingIpInput interface {
	pulumi.Input

	ToFloatingIpOutput() FloatingIpOutput
	ToFloatingIpOutputWithContext(ctx context.Context) FloatingIpOutput
}

type FloatingIpMap added in v0.6.2

type FloatingIpMap map[string]FloatingIpInput

func (FloatingIpMap) ElementType added in v0.6.2

func (FloatingIpMap) ElementType() reflect.Type

func (FloatingIpMap) ToFloatingIpMapOutput added in v0.6.2

func (i FloatingIpMap) ToFloatingIpMapOutput() FloatingIpMapOutput

func (FloatingIpMap) ToFloatingIpMapOutputWithContext added in v0.6.2

func (i FloatingIpMap) ToFloatingIpMapOutputWithContext(ctx context.Context) FloatingIpMapOutput

type FloatingIpMapInput added in v0.6.2

type FloatingIpMapInput interface {
	pulumi.Input

	ToFloatingIpMapOutput() FloatingIpMapOutput
	ToFloatingIpMapOutputWithContext(context.Context) FloatingIpMapOutput
}

FloatingIpMapInput is an input type that accepts FloatingIpMap and FloatingIpMapOutput values. You can construct a concrete instance of `FloatingIpMapInput` via:

FloatingIpMap{ "key": FloatingIpArgs{...} }

type FloatingIpMapOutput added in v0.6.2

type FloatingIpMapOutput struct{ *pulumi.OutputState }

func (FloatingIpMapOutput) ElementType added in v0.6.2

func (FloatingIpMapOutput) ElementType() reflect.Type

func (FloatingIpMapOutput) MapIndex added in v0.6.2

func (FloatingIpMapOutput) ToFloatingIpMapOutput added in v0.6.2

func (o FloatingIpMapOutput) ToFloatingIpMapOutput() FloatingIpMapOutput

func (FloatingIpMapOutput) ToFloatingIpMapOutputWithContext added in v0.6.2

func (o FloatingIpMapOutput) ToFloatingIpMapOutputWithContext(ctx context.Context) FloatingIpMapOutput

type FloatingIpOutput added in v0.4.1

type FloatingIpOutput struct{ *pulumi.OutputState }

func (FloatingIpOutput) DeleteProtection added in v1.9.0

func (o FloatingIpOutput) DeleteProtection() pulumi.BoolPtrOutput

Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.

func (FloatingIpOutput) Description added in v1.9.0

func (o FloatingIpOutput) Description() pulumi.StringPtrOutput

Description of the Floating IP.

func (FloatingIpOutput) ElementType added in v0.4.1

func (FloatingIpOutput) ElementType() reflect.Type

func (FloatingIpOutput) HomeLocation added in v1.9.0

func (o FloatingIpOutput) HomeLocation() pulumi.StringOutput

Name of home location (routing is optimized for that location). Optional if serverId argument is passed.

func (FloatingIpOutput) IpAddress added in v1.9.0

func (o FloatingIpOutput) IpAddress() pulumi.StringOutput

(string) IP Address of the Floating IP.

func (FloatingIpOutput) IpNetwork added in v1.9.0

func (o FloatingIpOutput) IpNetwork() pulumi.StringOutput

(string) IPv6 subnet. (Only set if `type` is `ipv6`)

func (FloatingIpOutput) Labels added in v1.9.0

func (o FloatingIpOutput) Labels() pulumi.MapOutput

User-defined labels (key-value pairs) should be created with.

func (FloatingIpOutput) Name added in v1.9.0

Name of the Floating IP.

func (FloatingIpOutput) ServerId added in v1.9.0

func (o FloatingIpOutput) ServerId() pulumi.IntOutput

Server to assign the Floating IP to.

func (FloatingIpOutput) ToFloatingIpOutput added in v0.4.1

func (o FloatingIpOutput) ToFloatingIpOutput() FloatingIpOutput

func (FloatingIpOutput) ToFloatingIpOutputWithContext added in v0.4.1

func (o FloatingIpOutput) ToFloatingIpOutputWithContext(ctx context.Context) FloatingIpOutput

func (FloatingIpOutput) Type added in v1.9.0

Type of the Floating IP. `ipv4` `ipv6`

type FloatingIpState

type FloatingIpState struct {
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// Description of the Floating IP.
	Description pulumi.StringPtrInput
	// Name of home location (routing is optimized for that location). Optional if serverId argument is passed.
	HomeLocation pulumi.StringPtrInput
	// (string) IP Address of the Floating IP.
	IpAddress pulumi.StringPtrInput
	// (string) IPv6 subnet. (Only set if `type` is `ipv6`)
	IpNetwork pulumi.StringPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Name of the Floating IP.
	Name pulumi.StringPtrInput
	// Server to assign the Floating IP to.
	ServerId pulumi.IntPtrInput
	// Type of the Floating IP. `ipv4` `ipv6`
	Type pulumi.StringPtrInput
}

func (FloatingIpState) ElementType

func (FloatingIpState) ElementType() reflect.Type

type GetCertificatesArgs added in v1.5.0

type GetCertificatesArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getCertificates.

type GetCertificatesCertificate added in v1.5.0

type GetCertificatesCertificate struct {
	Certificate    string                 `pulumi:"certificate"`
	Created        string                 `pulumi:"created"`
	DomainNames    []string               `pulumi:"domainNames"`
	Fingerprint    string                 `pulumi:"fingerprint"`
	Id             int                    `pulumi:"id"`
	Labels         map[string]interface{} `pulumi:"labels"`
	Name           *string                `pulumi:"name"`
	NotValidAfter  string                 `pulumi:"notValidAfter"`
	NotValidBefore string                 `pulumi:"notValidBefore"`
	Type           string                 `pulumi:"type"`
}

type GetCertificatesCertificateArgs added in v1.5.0

type GetCertificatesCertificateArgs struct {
	Certificate    pulumi.StringInput      `pulumi:"certificate"`
	Created        pulumi.StringInput      `pulumi:"created"`
	DomainNames    pulumi.StringArrayInput `pulumi:"domainNames"`
	Fingerprint    pulumi.StringInput      `pulumi:"fingerprint"`
	Id             pulumi.IntInput         `pulumi:"id"`
	Labels         pulumi.MapInput         `pulumi:"labels"`
	Name           pulumi.StringPtrInput   `pulumi:"name"`
	NotValidAfter  pulumi.StringInput      `pulumi:"notValidAfter"`
	NotValidBefore pulumi.StringInput      `pulumi:"notValidBefore"`
	Type           pulumi.StringInput      `pulumi:"type"`
}

func (GetCertificatesCertificateArgs) ElementType added in v1.5.0

func (GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutput added in v1.5.0

func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput

func (GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutputWithContext added in v1.5.0

func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput

type GetCertificatesCertificateArray added in v1.5.0

type GetCertificatesCertificateArray []GetCertificatesCertificateInput

func (GetCertificatesCertificateArray) ElementType added in v1.5.0

func (GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutput added in v1.5.0

func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput

func (GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutputWithContext added in v1.5.0

func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateArrayInput added in v1.5.0

type GetCertificatesCertificateArrayInput interface {
	pulumi.Input

	ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput
	ToGetCertificatesCertificateArrayOutputWithContext(context.Context) GetCertificatesCertificateArrayOutput
}

GetCertificatesCertificateArrayInput is an input type that accepts GetCertificatesCertificateArray and GetCertificatesCertificateArrayOutput values. You can construct a concrete instance of `GetCertificatesCertificateArrayInput` via:

GetCertificatesCertificateArray{ GetCertificatesCertificateArgs{...} }

type GetCertificatesCertificateArrayOutput added in v1.5.0

type GetCertificatesCertificateArrayOutput struct{ *pulumi.OutputState }

func (GetCertificatesCertificateArrayOutput) ElementType added in v1.5.0

func (GetCertificatesCertificateArrayOutput) Index added in v1.5.0

func (GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutput added in v1.5.0

func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput

func (GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutputWithContext added in v1.5.0

func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateInput added in v1.5.0

type GetCertificatesCertificateInput interface {
	pulumi.Input

	ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput
	ToGetCertificatesCertificateOutputWithContext(context.Context) GetCertificatesCertificateOutput
}

GetCertificatesCertificateInput is an input type that accepts GetCertificatesCertificateArgs and GetCertificatesCertificateOutput values. You can construct a concrete instance of `GetCertificatesCertificateInput` via:

GetCertificatesCertificateArgs{...}

type GetCertificatesCertificateOutput added in v1.5.0

type GetCertificatesCertificateOutput struct{ *pulumi.OutputState }

func (GetCertificatesCertificateOutput) Certificate added in v1.5.0

func (GetCertificatesCertificateOutput) Created added in v1.5.0

func (GetCertificatesCertificateOutput) DomainNames added in v1.5.0

func (GetCertificatesCertificateOutput) ElementType added in v1.5.0

func (GetCertificatesCertificateOutput) Fingerprint added in v1.5.0

func (GetCertificatesCertificateOutput) Id added in v1.5.0

func (GetCertificatesCertificateOutput) Labels added in v1.5.0

func (GetCertificatesCertificateOutput) Name added in v1.5.0

func (GetCertificatesCertificateOutput) NotValidAfter added in v1.5.0

func (GetCertificatesCertificateOutput) NotValidBefore added in v1.5.0

func (GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutput added in v1.5.0

func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput

func (GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutputWithContext added in v1.5.0

func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput

func (GetCertificatesCertificateOutput) Type added in v1.5.0

type GetCertificatesOutputArgs added in v1.6.0

type GetCertificatesOutputArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getCertificates.

func (GetCertificatesOutputArgs) ElementType added in v1.6.0

func (GetCertificatesOutputArgs) ElementType() reflect.Type

type GetCertificatesResult added in v1.5.0

type GetCertificatesResult struct {
	// (list) List of all matching certificates. See `data.hcloud_certificate` for schema.
	Certificates []GetCertificatesCertificate `pulumi:"certificates"`
	// The provider-assigned unique ID for this managed resource.
	Id           string  `pulumi:"id"`
	WithSelector *string `pulumi:"withSelector"`
}

A collection of values returned by getCertificates.

func GetCertificates added in v1.5.0

func GetCertificates(ctx *pulumi.Context, args *GetCertificatesArgs, opts ...pulumi.InvokeOption) (*GetCertificatesResult, error)

Provides details about multiple Hetzner Cloud Certificates.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetCertificates(ctx, &hcloud.GetCertificatesArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetCertificatesResultOutput added in v1.6.0

type GetCertificatesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCertificates.

func GetCertificatesOutput added in v1.6.0

func (GetCertificatesResultOutput) Certificates added in v1.6.0

(list) List of all matching certificates. See `data.hcloud_certificate` for schema.

func (GetCertificatesResultOutput) ElementType added in v1.6.0

func (GetCertificatesResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetCertificatesResultOutput) ToGetCertificatesResultOutput added in v1.6.0

func (o GetCertificatesResultOutput) ToGetCertificatesResultOutput() GetCertificatesResultOutput

func (GetCertificatesResultOutput) ToGetCertificatesResultOutputWithContext added in v1.6.0

func (o GetCertificatesResultOutput) ToGetCertificatesResultOutputWithContext(ctx context.Context) GetCertificatesResultOutput

func (GetCertificatesResultOutput) WithSelector added in v1.6.0

type GetDatacenterArgs

type GetDatacenterArgs struct {
	// ID of the datacenter.
	Id *int `pulumi:"id"`
	// Name of the datacenter.
	Name *string `pulumi:"name"`
}

A collection of arguments for invoking getDatacenter.

type GetDatacenterOutputArgs added in v1.6.0

type GetDatacenterOutputArgs struct {
	// ID of the datacenter.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// Name of the datacenter.
	Name pulumi.StringPtrInput `pulumi:"name"`
}

A collection of arguments for invoking getDatacenter.

func (GetDatacenterOutputArgs) ElementType added in v1.6.0

func (GetDatacenterOutputArgs) ElementType() reflect.Type

type GetDatacenterResult

type GetDatacenterResult struct {
	// (list) List of available server types.
	AvailableServerTypeIds []int `pulumi:"availableServerTypeIds"`
	// (string) Description of the datacenter.
	Description string `pulumi:"description"`
	// (int) Unique ID of the datacenter.
	Id int `pulumi:"id"`
	// (map) Physical datacenter location.
	Location map[string]string `pulumi:"location"`
	// (string) Name of the datacenter.
	Name string `pulumi:"name"`
	// (list) List of server types supported by the datacenter.
	SupportedServerTypeIds []int `pulumi:"supportedServerTypeIds"`
}

A collection of values returned by getDatacenter.

func GetDatacenter

func GetDatacenter(ctx *pulumi.Context, args *GetDatacenterArgs, opts ...pulumi.InvokeOption) (*GetDatacenterResult, error)

Provides details about a specific Hetzner Cloud Datacenter. Use this resource to get detailed information about specific datacenter.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetDatacenter(ctx, &hcloud.GetDatacenterArgs{
			Name: pulumi.StringRef("fsn1-dc8"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetDatacenter(ctx, &hcloud.GetDatacenterArgs{
			Id: pulumi.IntRef(4),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetDatacenterResultOutput added in v1.6.0

type GetDatacenterResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDatacenter.

func GetDatacenterOutput added in v1.6.0

func GetDatacenterOutput(ctx *pulumi.Context, args GetDatacenterOutputArgs, opts ...pulumi.InvokeOption) GetDatacenterResultOutput

func (GetDatacenterResultOutput) AvailableServerTypeIds added in v1.6.0

func (o GetDatacenterResultOutput) AvailableServerTypeIds() pulumi.IntArrayOutput

(list) List of available server types.

func (GetDatacenterResultOutput) Description added in v1.6.0

(string) Description of the datacenter.

func (GetDatacenterResultOutput) ElementType added in v1.6.0

func (GetDatacenterResultOutput) ElementType() reflect.Type

func (GetDatacenterResultOutput) Id added in v1.6.0

(int) Unique ID of the datacenter.

func (GetDatacenterResultOutput) Location added in v1.6.0

(map) Physical datacenter location.

func (GetDatacenterResultOutput) Name added in v1.6.0

(string) Name of the datacenter.

func (GetDatacenterResultOutput) SupportedServerTypeIds added in v1.6.0

func (o GetDatacenterResultOutput) SupportedServerTypeIds() pulumi.IntArrayOutput

(list) List of server types supported by the datacenter.

func (GetDatacenterResultOutput) ToGetDatacenterResultOutput added in v1.6.0

func (o GetDatacenterResultOutput) ToGetDatacenterResultOutput() GetDatacenterResultOutput

func (GetDatacenterResultOutput) ToGetDatacenterResultOutputWithContext added in v1.6.0

func (o GetDatacenterResultOutput) ToGetDatacenterResultOutputWithContext(ctx context.Context) GetDatacenterResultOutput

type GetDatacentersArgs

type GetDatacentersArgs struct {
	// (list) List of unique datacenter identifiers. **Deprecated**: Use `datacenters` attribute instead.
	//
	// Deprecated: Use datacenters list instead
	DatacenterIds []string `pulumi:"datacenterIds"`
	// (list) List of all datacenter descriptions. **Deprecated**: Use `datacenters` attribute instead.
	//
	// Deprecated: Use datacenters list instead
	Descriptions []string `pulumi:"descriptions"`
	Id           *string  `pulumi:"id"`
	// (list) List of datacenter names. **Deprecated**: Use `datacenters` attribute instead.
	//
	// Deprecated: Use datacenters list instead
	Names []string `pulumi:"names"`
}

A collection of arguments for invoking getDatacenters.

type GetDatacentersDatacenter added in v1.5.0

type GetDatacentersDatacenter struct {
	AvailableServerTypeIds []int             `pulumi:"availableServerTypeIds"`
	Description            string            `pulumi:"description"`
	Id                     int               `pulumi:"id"`
	Location               map[string]string `pulumi:"location"`
	Name                   string            `pulumi:"name"`
	SupportedServerTypeIds []int             `pulumi:"supportedServerTypeIds"`
}

type GetDatacentersDatacenterArgs added in v1.5.0

type GetDatacentersDatacenterArgs struct {
	AvailableServerTypeIds pulumi.IntArrayInput  `pulumi:"availableServerTypeIds"`
	Description            pulumi.StringInput    `pulumi:"description"`
	Id                     pulumi.IntInput       `pulumi:"id"`
	Location               pulumi.StringMapInput `pulumi:"location"`
	Name                   pulumi.StringInput    `pulumi:"name"`
	SupportedServerTypeIds pulumi.IntArrayInput  `pulumi:"supportedServerTypeIds"`
}

func (GetDatacentersDatacenterArgs) ElementType added in v1.5.0

func (GetDatacentersDatacenterArgs) ToGetDatacentersDatacenterOutput added in v1.5.0

func (i GetDatacentersDatacenterArgs) ToGetDatacentersDatacenterOutput() GetDatacentersDatacenterOutput

func (GetDatacentersDatacenterArgs) ToGetDatacentersDatacenterOutputWithContext added in v1.5.0

func (i GetDatacentersDatacenterArgs) ToGetDatacentersDatacenterOutputWithContext(ctx context.Context) GetDatacentersDatacenterOutput

type GetDatacentersDatacenterArray added in v1.5.0

type GetDatacentersDatacenterArray []GetDatacentersDatacenterInput

func (GetDatacentersDatacenterArray) ElementType added in v1.5.0

func (GetDatacentersDatacenterArray) ToGetDatacentersDatacenterArrayOutput added in v1.5.0

func (i GetDatacentersDatacenterArray) ToGetDatacentersDatacenterArrayOutput() GetDatacentersDatacenterArrayOutput

func (GetDatacentersDatacenterArray) ToGetDatacentersDatacenterArrayOutputWithContext added in v1.5.0

func (i GetDatacentersDatacenterArray) ToGetDatacentersDatacenterArrayOutputWithContext(ctx context.Context) GetDatacentersDatacenterArrayOutput

type GetDatacentersDatacenterArrayInput added in v1.5.0

type GetDatacentersDatacenterArrayInput interface {
	pulumi.Input

	ToGetDatacentersDatacenterArrayOutput() GetDatacentersDatacenterArrayOutput
	ToGetDatacentersDatacenterArrayOutputWithContext(context.Context) GetDatacentersDatacenterArrayOutput
}

GetDatacentersDatacenterArrayInput is an input type that accepts GetDatacentersDatacenterArray and GetDatacentersDatacenterArrayOutput values. You can construct a concrete instance of `GetDatacentersDatacenterArrayInput` via:

GetDatacentersDatacenterArray{ GetDatacentersDatacenterArgs{...} }

type GetDatacentersDatacenterArrayOutput added in v1.5.0

type GetDatacentersDatacenterArrayOutput struct{ *pulumi.OutputState }

func (GetDatacentersDatacenterArrayOutput) ElementType added in v1.5.0

func (GetDatacentersDatacenterArrayOutput) Index added in v1.5.0

func (GetDatacentersDatacenterArrayOutput) ToGetDatacentersDatacenterArrayOutput added in v1.5.0

func (o GetDatacentersDatacenterArrayOutput) ToGetDatacentersDatacenterArrayOutput() GetDatacentersDatacenterArrayOutput

func (GetDatacentersDatacenterArrayOutput) ToGetDatacentersDatacenterArrayOutputWithContext added in v1.5.0

func (o GetDatacentersDatacenterArrayOutput) ToGetDatacentersDatacenterArrayOutputWithContext(ctx context.Context) GetDatacentersDatacenterArrayOutput

type GetDatacentersDatacenterInput added in v1.5.0

type GetDatacentersDatacenterInput interface {
	pulumi.Input

	ToGetDatacentersDatacenterOutput() GetDatacentersDatacenterOutput
	ToGetDatacentersDatacenterOutputWithContext(context.Context) GetDatacentersDatacenterOutput
}

GetDatacentersDatacenterInput is an input type that accepts GetDatacentersDatacenterArgs and GetDatacentersDatacenterOutput values. You can construct a concrete instance of `GetDatacentersDatacenterInput` via:

GetDatacentersDatacenterArgs{...}

type GetDatacentersDatacenterOutput added in v1.5.0

type GetDatacentersDatacenterOutput struct{ *pulumi.OutputState }

func (GetDatacentersDatacenterOutput) AvailableServerTypeIds added in v1.5.0

func (o GetDatacentersDatacenterOutput) AvailableServerTypeIds() pulumi.IntArrayOutput

func (GetDatacentersDatacenterOutput) Description added in v1.5.0

func (GetDatacentersDatacenterOutput) ElementType added in v1.5.0

func (GetDatacentersDatacenterOutput) Id added in v1.5.0

func (GetDatacentersDatacenterOutput) Location added in v1.5.0

func (GetDatacentersDatacenterOutput) Name added in v1.5.0

func (GetDatacentersDatacenterOutput) SupportedServerTypeIds added in v1.5.0

func (o GetDatacentersDatacenterOutput) SupportedServerTypeIds() pulumi.IntArrayOutput

func (GetDatacentersDatacenterOutput) ToGetDatacentersDatacenterOutput added in v1.5.0

func (o GetDatacentersDatacenterOutput) ToGetDatacentersDatacenterOutput() GetDatacentersDatacenterOutput

func (GetDatacentersDatacenterOutput) ToGetDatacentersDatacenterOutputWithContext added in v1.5.0

func (o GetDatacentersDatacenterOutput) ToGetDatacentersDatacenterOutputWithContext(ctx context.Context) GetDatacentersDatacenterOutput

type GetDatacentersOutputArgs added in v1.6.0

type GetDatacentersOutputArgs struct {
	// (list) List of unique datacenter identifiers. **Deprecated**: Use `datacenters` attribute instead.
	//
	// Deprecated: Use datacenters list instead
	DatacenterIds pulumi.StringArrayInput `pulumi:"datacenterIds"`
	// (list) List of all datacenter descriptions. **Deprecated**: Use `datacenters` attribute instead.
	//
	// Deprecated: Use datacenters list instead
	Descriptions pulumi.StringArrayInput `pulumi:"descriptions"`
	Id           pulumi.StringPtrInput   `pulumi:"id"`
	// (list) List of datacenter names. **Deprecated**: Use `datacenters` attribute instead.
	//
	// Deprecated: Use datacenters list instead
	Names pulumi.StringArrayInput `pulumi:"names"`
}

A collection of arguments for invoking getDatacenters.

func (GetDatacentersOutputArgs) ElementType added in v1.6.0

func (GetDatacentersOutputArgs) ElementType() reflect.Type

type GetDatacentersResult

type GetDatacentersResult struct {
	// (list) List of unique datacenter identifiers. **Deprecated**: Use `datacenters` attribute instead.
	//
	// Deprecated: Use datacenters list instead
	DatacenterIds []string `pulumi:"datacenterIds"`
	// (list) List of all datacenters. See `data.hcloud_datacenter` for schema.
	Datacenters []GetDatacentersDatacenter `pulumi:"datacenters"`
	// (list) List of all datacenter descriptions. **Deprecated**: Use `datacenters` attribute instead.
	//
	// Deprecated: Use datacenters list instead
	Descriptions []string `pulumi:"descriptions"`
	Id           *string  `pulumi:"id"`
	// (list) List of datacenter names. **Deprecated**: Use `datacenters` attribute instead.
	//
	// Deprecated: Use datacenters list instead
	Names []string `pulumi:"names"`
}

A collection of values returned by getDatacenters.

func GetDatacenters

func GetDatacenters(ctx *pulumi.Context, args *GetDatacentersArgs, opts ...pulumi.InvokeOption) (*GetDatacentersResult, error)

Provides a list of available Hetzner Cloud Datacenters. This resource may be useful to create highly available infrastructure, distributed across several datacenters.

type GetDatacentersResultOutput added in v1.6.0

type GetDatacentersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDatacenters.

func GetDatacentersOutput added in v1.6.0

func GetDatacentersOutput(ctx *pulumi.Context, args GetDatacentersOutputArgs, opts ...pulumi.InvokeOption) GetDatacentersResultOutput

func (GetDatacentersResultOutput) DatacenterIds deprecated added in v1.6.0

(list) List of unique datacenter identifiers. **Deprecated**: Use `datacenters` attribute instead.

Deprecated: Use datacenters list instead

func (GetDatacentersResultOutput) Datacenters added in v1.6.0

(list) List of all datacenters. See `data.hcloud_datacenter` for schema.

func (GetDatacentersResultOutput) Descriptions deprecated added in v1.6.0

(list) List of all datacenter descriptions. **Deprecated**: Use `datacenters` attribute instead.

Deprecated: Use datacenters list instead

func (GetDatacentersResultOutput) ElementType added in v1.6.0

func (GetDatacentersResultOutput) ElementType() reflect.Type

func (GetDatacentersResultOutput) Id added in v1.6.0

func (GetDatacentersResultOutput) Names deprecated added in v1.6.0

(list) List of datacenter names. **Deprecated**: Use `datacenters` attribute instead.

Deprecated: Use datacenters list instead

func (GetDatacentersResultOutput) ToGetDatacentersResultOutput added in v1.6.0

func (o GetDatacentersResultOutput) ToGetDatacentersResultOutput() GetDatacentersResultOutput

func (GetDatacentersResultOutput) ToGetDatacentersResultOutputWithContext added in v1.6.0

func (o GetDatacentersResultOutput) ToGetDatacentersResultOutputWithContext(ctx context.Context) GetDatacentersResultOutput

type GetFirewallApplyTo added in v1.5.0

type GetFirewallApplyTo struct {
	// (string) Label Selector to select servers the firewall is applied to. Empty if a server is directly
	// referenced
	LabelSelector string `pulumi:"labelSelector"`
	// (int) ID of a server where the firewall is applied to. `0` if applied to a label_selector
	Server int `pulumi:"server"`
}

type GetFirewallApplyToArgs added in v1.5.0

type GetFirewallApplyToArgs struct {
	// (string) Label Selector to select servers the firewall is applied to. Empty if a server is directly
	// referenced
	LabelSelector pulumi.StringInput `pulumi:"labelSelector"`
	// (int) ID of a server where the firewall is applied to. `0` if applied to a label_selector
	Server pulumi.IntInput `pulumi:"server"`
}

func (GetFirewallApplyToArgs) ElementType added in v1.5.0

func (GetFirewallApplyToArgs) ElementType() reflect.Type

func (GetFirewallApplyToArgs) ToGetFirewallApplyToOutput added in v1.5.0

func (i GetFirewallApplyToArgs) ToGetFirewallApplyToOutput() GetFirewallApplyToOutput

func (GetFirewallApplyToArgs) ToGetFirewallApplyToOutputWithContext added in v1.5.0

func (i GetFirewallApplyToArgs) ToGetFirewallApplyToOutputWithContext(ctx context.Context) GetFirewallApplyToOutput

type GetFirewallApplyToArray added in v1.5.0

type GetFirewallApplyToArray []GetFirewallApplyToInput

func (GetFirewallApplyToArray) ElementType added in v1.5.0

func (GetFirewallApplyToArray) ElementType() reflect.Type

func (GetFirewallApplyToArray) ToGetFirewallApplyToArrayOutput added in v1.5.0

func (i GetFirewallApplyToArray) ToGetFirewallApplyToArrayOutput() GetFirewallApplyToArrayOutput

func (GetFirewallApplyToArray) ToGetFirewallApplyToArrayOutputWithContext added in v1.5.0

func (i GetFirewallApplyToArray) ToGetFirewallApplyToArrayOutputWithContext(ctx context.Context) GetFirewallApplyToArrayOutput

type GetFirewallApplyToArrayInput added in v1.5.0

type GetFirewallApplyToArrayInput interface {
	pulumi.Input

	ToGetFirewallApplyToArrayOutput() GetFirewallApplyToArrayOutput
	ToGetFirewallApplyToArrayOutputWithContext(context.Context) GetFirewallApplyToArrayOutput
}

GetFirewallApplyToArrayInput is an input type that accepts GetFirewallApplyToArray and GetFirewallApplyToArrayOutput values. You can construct a concrete instance of `GetFirewallApplyToArrayInput` via:

GetFirewallApplyToArray{ GetFirewallApplyToArgs{...} }

type GetFirewallApplyToArrayOutput added in v1.5.0

type GetFirewallApplyToArrayOutput struct{ *pulumi.OutputState }

func (GetFirewallApplyToArrayOutput) ElementType added in v1.5.0

func (GetFirewallApplyToArrayOutput) Index added in v1.5.0

func (GetFirewallApplyToArrayOutput) ToGetFirewallApplyToArrayOutput added in v1.5.0

func (o GetFirewallApplyToArrayOutput) ToGetFirewallApplyToArrayOutput() GetFirewallApplyToArrayOutput

func (GetFirewallApplyToArrayOutput) ToGetFirewallApplyToArrayOutputWithContext added in v1.5.0

func (o GetFirewallApplyToArrayOutput) ToGetFirewallApplyToArrayOutputWithContext(ctx context.Context) GetFirewallApplyToArrayOutput

type GetFirewallApplyToInput added in v1.5.0

type GetFirewallApplyToInput interface {
	pulumi.Input

	ToGetFirewallApplyToOutput() GetFirewallApplyToOutput
	ToGetFirewallApplyToOutputWithContext(context.Context) GetFirewallApplyToOutput
}

GetFirewallApplyToInput is an input type that accepts GetFirewallApplyToArgs and GetFirewallApplyToOutput values. You can construct a concrete instance of `GetFirewallApplyToInput` via:

GetFirewallApplyToArgs{...}

type GetFirewallApplyToOutput added in v1.5.0

type GetFirewallApplyToOutput struct{ *pulumi.OutputState }

func (GetFirewallApplyToOutput) ElementType added in v1.5.0

func (GetFirewallApplyToOutput) ElementType() reflect.Type

func (GetFirewallApplyToOutput) LabelSelector added in v1.5.0

func (o GetFirewallApplyToOutput) LabelSelector() pulumi.StringOutput

(string) Label Selector to select servers the firewall is applied to. Empty if a server is directly referenced

func (GetFirewallApplyToOutput) Server added in v1.5.0

(int) ID of a server where the firewall is applied to. `0` if applied to a label_selector

func (GetFirewallApplyToOutput) ToGetFirewallApplyToOutput added in v1.5.0

func (o GetFirewallApplyToOutput) ToGetFirewallApplyToOutput() GetFirewallApplyToOutput

func (GetFirewallApplyToOutput) ToGetFirewallApplyToOutputWithContext added in v1.5.0

func (o GetFirewallApplyToOutput) ToGetFirewallApplyToOutputWithContext(ctx context.Context) GetFirewallApplyToOutput

type GetFirewallRule added in v0.7.0

type GetFirewallRule struct {
	// (Optional, string) Description of the firewall rule
	Description *string `pulumi:"description"`
	// (Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `out`)
	DestinationIps []string `pulumi:"destinationIps"`
	// (Required, string) Direction of the Firewall Rule. `in`, `out`
	Direction string `pulumi:"direction"`
	// (Required, string) Port of the Firewall Rule. Required when `protocol` is `tcp` or `udp`
	Port *string `pulumi:"port"`
	// (Required, string) Protocol of the Firewall Rule. `tcp`, `icmp`, `udp`, `gre`, `esp`
	Protocol *string `pulumi:"protocol"`
	// (Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `in`)
	SourceIps []string `pulumi:"sourceIps"`
}

type GetFirewallRuleArgs added in v0.7.0

type GetFirewallRuleArgs struct {
	// (Optional, string) Description of the firewall rule
	Description pulumi.StringPtrInput `pulumi:"description"`
	// (Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `out`)
	DestinationIps pulumi.StringArrayInput `pulumi:"destinationIps"`
	// (Required, string) Direction of the Firewall Rule. `in`, `out`
	Direction pulumi.StringInput `pulumi:"direction"`
	// (Required, string) Port of the Firewall Rule. Required when `protocol` is `tcp` or `udp`
	Port pulumi.StringPtrInput `pulumi:"port"`
	// (Required, string) Protocol of the Firewall Rule. `tcp`, `icmp`, `udp`, `gre`, `esp`
	Protocol pulumi.StringPtrInput `pulumi:"protocol"`
	// (Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `in`)
	SourceIps pulumi.StringArrayInput `pulumi:"sourceIps"`
}

func (GetFirewallRuleArgs) ElementType added in v0.7.0

func (GetFirewallRuleArgs) ElementType() reflect.Type

func (GetFirewallRuleArgs) ToGetFirewallRuleOutput added in v0.7.0

func (i GetFirewallRuleArgs) ToGetFirewallRuleOutput() GetFirewallRuleOutput

func (GetFirewallRuleArgs) ToGetFirewallRuleOutputWithContext added in v0.7.0

func (i GetFirewallRuleArgs) ToGetFirewallRuleOutputWithContext(ctx context.Context) GetFirewallRuleOutput

type GetFirewallRuleArray added in v0.7.0

type GetFirewallRuleArray []GetFirewallRuleInput

func (GetFirewallRuleArray) ElementType added in v0.7.0

func (GetFirewallRuleArray) ElementType() reflect.Type

func (GetFirewallRuleArray) ToGetFirewallRuleArrayOutput added in v0.7.0

func (i GetFirewallRuleArray) ToGetFirewallRuleArrayOutput() GetFirewallRuleArrayOutput

func (GetFirewallRuleArray) ToGetFirewallRuleArrayOutputWithContext added in v0.7.0

func (i GetFirewallRuleArray) ToGetFirewallRuleArrayOutputWithContext(ctx context.Context) GetFirewallRuleArrayOutput

type GetFirewallRuleArrayInput added in v0.7.0

type GetFirewallRuleArrayInput interface {
	pulumi.Input

	ToGetFirewallRuleArrayOutput() GetFirewallRuleArrayOutput
	ToGetFirewallRuleArrayOutputWithContext(context.Context) GetFirewallRuleArrayOutput
}

GetFirewallRuleArrayInput is an input type that accepts GetFirewallRuleArray and GetFirewallRuleArrayOutput values. You can construct a concrete instance of `GetFirewallRuleArrayInput` via:

GetFirewallRuleArray{ GetFirewallRuleArgs{...} }

type GetFirewallRuleArrayOutput added in v0.7.0

type GetFirewallRuleArrayOutput struct{ *pulumi.OutputState }

func (GetFirewallRuleArrayOutput) ElementType added in v0.7.0

func (GetFirewallRuleArrayOutput) ElementType() reflect.Type

func (GetFirewallRuleArrayOutput) Index added in v0.7.0

func (GetFirewallRuleArrayOutput) ToGetFirewallRuleArrayOutput added in v0.7.0

func (o GetFirewallRuleArrayOutput) ToGetFirewallRuleArrayOutput() GetFirewallRuleArrayOutput

func (GetFirewallRuleArrayOutput) ToGetFirewallRuleArrayOutputWithContext added in v0.7.0

func (o GetFirewallRuleArrayOutput) ToGetFirewallRuleArrayOutputWithContext(ctx context.Context) GetFirewallRuleArrayOutput

type GetFirewallRuleInput added in v0.7.0

type GetFirewallRuleInput interface {
	pulumi.Input

	ToGetFirewallRuleOutput() GetFirewallRuleOutput
	ToGetFirewallRuleOutputWithContext(context.Context) GetFirewallRuleOutput
}

GetFirewallRuleInput is an input type that accepts GetFirewallRuleArgs and GetFirewallRuleOutput values. You can construct a concrete instance of `GetFirewallRuleInput` via:

GetFirewallRuleArgs{...}

type GetFirewallRuleOutput added in v0.7.0

type GetFirewallRuleOutput struct{ *pulumi.OutputState }

func (GetFirewallRuleOutput) Description added in v1.2.0

(Optional, string) Description of the firewall rule

func (GetFirewallRuleOutput) DestinationIps added in v1.0.1

func (o GetFirewallRuleOutput) DestinationIps() pulumi.StringArrayOutput

(Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `out`)

func (GetFirewallRuleOutput) Direction added in v0.7.0

(Required, string) Direction of the Firewall Rule. `in`, `out`

func (GetFirewallRuleOutput) ElementType added in v0.7.0

func (GetFirewallRuleOutput) ElementType() reflect.Type

func (GetFirewallRuleOutput) Port added in v0.7.0

(Required, string) Port of the Firewall Rule. Required when `protocol` is `tcp` or `udp`

func (GetFirewallRuleOutput) Protocol added in v0.7.0

(Required, string) Protocol of the Firewall Rule. `tcp`, `icmp`, `udp`, `gre`, `esp`

func (GetFirewallRuleOutput) SourceIps added in v0.7.0

(Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `in`)

func (GetFirewallRuleOutput) ToGetFirewallRuleOutput added in v0.7.0

func (o GetFirewallRuleOutput) ToGetFirewallRuleOutput() GetFirewallRuleOutput

func (GetFirewallRuleOutput) ToGetFirewallRuleOutputWithContext added in v0.7.0

func (o GetFirewallRuleOutput) ToGetFirewallRuleOutputWithContext(ctx context.Context) GetFirewallRuleOutput

type GetFirewallsArgs added in v1.5.0

type GetFirewallsArgs struct {
	// Sorts list by date.
	MostRecent *bool `pulumi:"mostRecent"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getFirewalls.

type GetFirewallsFirewall added in v1.5.0

type GetFirewallsFirewall struct {
	ApplyTos []GetFirewallsFirewallApplyTo `pulumi:"applyTos"`
	Id       *int                          `pulumi:"id"`
	Labels   map[string]interface{}        `pulumi:"labels"`
	Name     string                        `pulumi:"name"`
	Rules    []GetFirewallsFirewallRule    `pulumi:"rules"`
}

type GetFirewallsFirewallApplyTo added in v1.5.0

type GetFirewallsFirewallApplyTo struct {
	LabelSelector string `pulumi:"labelSelector"`
	Server        int    `pulumi:"server"`
}

type GetFirewallsFirewallApplyToArgs added in v1.5.0

type GetFirewallsFirewallApplyToArgs struct {
	LabelSelector pulumi.StringInput `pulumi:"labelSelector"`
	Server        pulumi.IntInput    `pulumi:"server"`
}

func (GetFirewallsFirewallApplyToArgs) ElementType added in v1.5.0

func (GetFirewallsFirewallApplyToArgs) ToGetFirewallsFirewallApplyToOutput added in v1.5.0

func (i GetFirewallsFirewallApplyToArgs) ToGetFirewallsFirewallApplyToOutput() GetFirewallsFirewallApplyToOutput

func (GetFirewallsFirewallApplyToArgs) ToGetFirewallsFirewallApplyToOutputWithContext added in v1.5.0

func (i GetFirewallsFirewallApplyToArgs) ToGetFirewallsFirewallApplyToOutputWithContext(ctx context.Context) GetFirewallsFirewallApplyToOutput

type GetFirewallsFirewallApplyToArray added in v1.5.0

type GetFirewallsFirewallApplyToArray []GetFirewallsFirewallApplyToInput

func (GetFirewallsFirewallApplyToArray) ElementType added in v1.5.0

func (GetFirewallsFirewallApplyToArray) ToGetFirewallsFirewallApplyToArrayOutput added in v1.5.0

func (i GetFirewallsFirewallApplyToArray) ToGetFirewallsFirewallApplyToArrayOutput() GetFirewallsFirewallApplyToArrayOutput

func (GetFirewallsFirewallApplyToArray) ToGetFirewallsFirewallApplyToArrayOutputWithContext added in v1.5.0

func (i GetFirewallsFirewallApplyToArray) ToGetFirewallsFirewallApplyToArrayOutputWithContext(ctx context.Context) GetFirewallsFirewallApplyToArrayOutput

type GetFirewallsFirewallApplyToArrayInput added in v1.5.0

type GetFirewallsFirewallApplyToArrayInput interface {
	pulumi.Input

	ToGetFirewallsFirewallApplyToArrayOutput() GetFirewallsFirewallApplyToArrayOutput
	ToGetFirewallsFirewallApplyToArrayOutputWithContext(context.Context) GetFirewallsFirewallApplyToArrayOutput
}

GetFirewallsFirewallApplyToArrayInput is an input type that accepts GetFirewallsFirewallApplyToArray and GetFirewallsFirewallApplyToArrayOutput values. You can construct a concrete instance of `GetFirewallsFirewallApplyToArrayInput` via:

GetFirewallsFirewallApplyToArray{ GetFirewallsFirewallApplyToArgs{...} }

type GetFirewallsFirewallApplyToArrayOutput added in v1.5.0

type GetFirewallsFirewallApplyToArrayOutput struct{ *pulumi.OutputState }

func (GetFirewallsFirewallApplyToArrayOutput) ElementType added in v1.5.0

func (GetFirewallsFirewallApplyToArrayOutput) Index added in v1.5.0

func (GetFirewallsFirewallApplyToArrayOutput) ToGetFirewallsFirewallApplyToArrayOutput added in v1.5.0

func (o GetFirewallsFirewallApplyToArrayOutput) ToGetFirewallsFirewallApplyToArrayOutput() GetFirewallsFirewallApplyToArrayOutput

func (GetFirewallsFirewallApplyToArrayOutput) ToGetFirewallsFirewallApplyToArrayOutputWithContext added in v1.5.0

func (o GetFirewallsFirewallApplyToArrayOutput) ToGetFirewallsFirewallApplyToArrayOutputWithContext(ctx context.Context) GetFirewallsFirewallApplyToArrayOutput

type GetFirewallsFirewallApplyToInput added in v1.5.0

type GetFirewallsFirewallApplyToInput interface {
	pulumi.Input

	ToGetFirewallsFirewallApplyToOutput() GetFirewallsFirewallApplyToOutput
	ToGetFirewallsFirewallApplyToOutputWithContext(context.Context) GetFirewallsFirewallApplyToOutput
}

GetFirewallsFirewallApplyToInput is an input type that accepts GetFirewallsFirewallApplyToArgs and GetFirewallsFirewallApplyToOutput values. You can construct a concrete instance of `GetFirewallsFirewallApplyToInput` via:

GetFirewallsFirewallApplyToArgs{...}

type GetFirewallsFirewallApplyToOutput added in v1.5.0

type GetFirewallsFirewallApplyToOutput struct{ *pulumi.OutputState }

func (GetFirewallsFirewallApplyToOutput) ElementType added in v1.5.0

func (GetFirewallsFirewallApplyToOutput) LabelSelector added in v1.5.0

func (GetFirewallsFirewallApplyToOutput) Server added in v1.5.0

func (GetFirewallsFirewallApplyToOutput) ToGetFirewallsFirewallApplyToOutput added in v1.5.0

func (o GetFirewallsFirewallApplyToOutput) ToGetFirewallsFirewallApplyToOutput() GetFirewallsFirewallApplyToOutput

func (GetFirewallsFirewallApplyToOutput) ToGetFirewallsFirewallApplyToOutputWithContext added in v1.5.0

func (o GetFirewallsFirewallApplyToOutput) ToGetFirewallsFirewallApplyToOutputWithContext(ctx context.Context) GetFirewallsFirewallApplyToOutput

type GetFirewallsFirewallArgs added in v1.5.0

type GetFirewallsFirewallArgs struct {
	ApplyTos GetFirewallsFirewallApplyToArrayInput `pulumi:"applyTos"`
	Id       pulumi.IntPtrInput                    `pulumi:"id"`
	Labels   pulumi.MapInput                       `pulumi:"labels"`
	Name     pulumi.StringInput                    `pulumi:"name"`
	Rules    GetFirewallsFirewallRuleArrayInput    `pulumi:"rules"`
}

func (GetFirewallsFirewallArgs) ElementType added in v1.5.0

func (GetFirewallsFirewallArgs) ElementType() reflect.Type

func (GetFirewallsFirewallArgs) ToGetFirewallsFirewallOutput added in v1.5.0

func (i GetFirewallsFirewallArgs) ToGetFirewallsFirewallOutput() GetFirewallsFirewallOutput

func (GetFirewallsFirewallArgs) ToGetFirewallsFirewallOutputWithContext added in v1.5.0

func (i GetFirewallsFirewallArgs) ToGetFirewallsFirewallOutputWithContext(ctx context.Context) GetFirewallsFirewallOutput

type GetFirewallsFirewallArray added in v1.5.0

type GetFirewallsFirewallArray []GetFirewallsFirewallInput

func (GetFirewallsFirewallArray) ElementType added in v1.5.0

func (GetFirewallsFirewallArray) ElementType() reflect.Type

func (GetFirewallsFirewallArray) ToGetFirewallsFirewallArrayOutput added in v1.5.0

func (i GetFirewallsFirewallArray) ToGetFirewallsFirewallArrayOutput() GetFirewallsFirewallArrayOutput

func (GetFirewallsFirewallArray) ToGetFirewallsFirewallArrayOutputWithContext added in v1.5.0

func (i GetFirewallsFirewallArray) ToGetFirewallsFirewallArrayOutputWithContext(ctx context.Context) GetFirewallsFirewallArrayOutput

type GetFirewallsFirewallArrayInput added in v1.5.0

type GetFirewallsFirewallArrayInput interface {
	pulumi.Input

	ToGetFirewallsFirewallArrayOutput() GetFirewallsFirewallArrayOutput
	ToGetFirewallsFirewallArrayOutputWithContext(context.Context) GetFirewallsFirewallArrayOutput
}

GetFirewallsFirewallArrayInput is an input type that accepts GetFirewallsFirewallArray and GetFirewallsFirewallArrayOutput values. You can construct a concrete instance of `GetFirewallsFirewallArrayInput` via:

GetFirewallsFirewallArray{ GetFirewallsFirewallArgs{...} }

type GetFirewallsFirewallArrayOutput added in v1.5.0

type GetFirewallsFirewallArrayOutput struct{ *pulumi.OutputState }

func (GetFirewallsFirewallArrayOutput) ElementType added in v1.5.0

func (GetFirewallsFirewallArrayOutput) Index added in v1.5.0

func (GetFirewallsFirewallArrayOutput) ToGetFirewallsFirewallArrayOutput added in v1.5.0

func (o GetFirewallsFirewallArrayOutput) ToGetFirewallsFirewallArrayOutput() GetFirewallsFirewallArrayOutput

func (GetFirewallsFirewallArrayOutput) ToGetFirewallsFirewallArrayOutputWithContext added in v1.5.0

func (o GetFirewallsFirewallArrayOutput) ToGetFirewallsFirewallArrayOutputWithContext(ctx context.Context) GetFirewallsFirewallArrayOutput

type GetFirewallsFirewallInput added in v1.5.0

type GetFirewallsFirewallInput interface {
	pulumi.Input

	ToGetFirewallsFirewallOutput() GetFirewallsFirewallOutput
	ToGetFirewallsFirewallOutputWithContext(context.Context) GetFirewallsFirewallOutput
}

GetFirewallsFirewallInput is an input type that accepts GetFirewallsFirewallArgs and GetFirewallsFirewallOutput values. You can construct a concrete instance of `GetFirewallsFirewallInput` via:

GetFirewallsFirewallArgs{...}

type GetFirewallsFirewallOutput added in v1.5.0

type GetFirewallsFirewallOutput struct{ *pulumi.OutputState }

func (GetFirewallsFirewallOutput) ApplyTos added in v1.5.0

func (GetFirewallsFirewallOutput) ElementType added in v1.5.0

func (GetFirewallsFirewallOutput) ElementType() reflect.Type

func (GetFirewallsFirewallOutput) Id added in v1.5.0

func (GetFirewallsFirewallOutput) Labels added in v1.5.0

func (GetFirewallsFirewallOutput) Name added in v1.5.0

func (GetFirewallsFirewallOutput) Rules added in v1.5.0

func (GetFirewallsFirewallOutput) ToGetFirewallsFirewallOutput added in v1.5.0

func (o GetFirewallsFirewallOutput) ToGetFirewallsFirewallOutput() GetFirewallsFirewallOutput

func (GetFirewallsFirewallOutput) ToGetFirewallsFirewallOutputWithContext added in v1.5.0

func (o GetFirewallsFirewallOutput) ToGetFirewallsFirewallOutputWithContext(ctx context.Context) GetFirewallsFirewallOutput

type GetFirewallsFirewallRule added in v1.5.0

type GetFirewallsFirewallRule struct {
	Description    *string  `pulumi:"description"`
	DestinationIps []string `pulumi:"destinationIps"`
	Direction      string   `pulumi:"direction"`
	Port           *string  `pulumi:"port"`
	Protocol       *string  `pulumi:"protocol"`
	SourceIps      []string `pulumi:"sourceIps"`
}

type GetFirewallsFirewallRuleArgs added in v1.5.0

type GetFirewallsFirewallRuleArgs struct {
	Description    pulumi.StringPtrInput   `pulumi:"description"`
	DestinationIps pulumi.StringArrayInput `pulumi:"destinationIps"`
	Direction      pulumi.StringInput      `pulumi:"direction"`
	Port           pulumi.StringPtrInput   `pulumi:"port"`
	Protocol       pulumi.StringPtrInput   `pulumi:"protocol"`
	SourceIps      pulumi.StringArrayInput `pulumi:"sourceIps"`
}

func (GetFirewallsFirewallRuleArgs) ElementType added in v1.5.0

func (GetFirewallsFirewallRuleArgs) ToGetFirewallsFirewallRuleOutput added in v1.5.0

func (i GetFirewallsFirewallRuleArgs) ToGetFirewallsFirewallRuleOutput() GetFirewallsFirewallRuleOutput

func (GetFirewallsFirewallRuleArgs) ToGetFirewallsFirewallRuleOutputWithContext added in v1.5.0

func (i GetFirewallsFirewallRuleArgs) ToGetFirewallsFirewallRuleOutputWithContext(ctx context.Context) GetFirewallsFirewallRuleOutput

type GetFirewallsFirewallRuleArray added in v1.5.0

type GetFirewallsFirewallRuleArray []GetFirewallsFirewallRuleInput

func (GetFirewallsFirewallRuleArray) ElementType added in v1.5.0

func (GetFirewallsFirewallRuleArray) ToGetFirewallsFirewallRuleArrayOutput added in v1.5.0

func (i GetFirewallsFirewallRuleArray) ToGetFirewallsFirewallRuleArrayOutput() GetFirewallsFirewallRuleArrayOutput

func (GetFirewallsFirewallRuleArray) ToGetFirewallsFirewallRuleArrayOutputWithContext added in v1.5.0

func (i GetFirewallsFirewallRuleArray) ToGetFirewallsFirewallRuleArrayOutputWithContext(ctx context.Context) GetFirewallsFirewallRuleArrayOutput

type GetFirewallsFirewallRuleArrayInput added in v1.5.0

type GetFirewallsFirewallRuleArrayInput interface {
	pulumi.Input

	ToGetFirewallsFirewallRuleArrayOutput() GetFirewallsFirewallRuleArrayOutput
	ToGetFirewallsFirewallRuleArrayOutputWithContext(context.Context) GetFirewallsFirewallRuleArrayOutput
}

GetFirewallsFirewallRuleArrayInput is an input type that accepts GetFirewallsFirewallRuleArray and GetFirewallsFirewallRuleArrayOutput values. You can construct a concrete instance of `GetFirewallsFirewallRuleArrayInput` via:

GetFirewallsFirewallRuleArray{ GetFirewallsFirewallRuleArgs{...} }

type GetFirewallsFirewallRuleArrayOutput added in v1.5.0

type GetFirewallsFirewallRuleArrayOutput struct{ *pulumi.OutputState }

func (GetFirewallsFirewallRuleArrayOutput) ElementType added in v1.5.0

func (GetFirewallsFirewallRuleArrayOutput) Index added in v1.5.0

func (GetFirewallsFirewallRuleArrayOutput) ToGetFirewallsFirewallRuleArrayOutput added in v1.5.0

func (o GetFirewallsFirewallRuleArrayOutput) ToGetFirewallsFirewallRuleArrayOutput() GetFirewallsFirewallRuleArrayOutput

func (GetFirewallsFirewallRuleArrayOutput) ToGetFirewallsFirewallRuleArrayOutputWithContext added in v1.5.0

func (o GetFirewallsFirewallRuleArrayOutput) ToGetFirewallsFirewallRuleArrayOutputWithContext(ctx context.Context) GetFirewallsFirewallRuleArrayOutput

type GetFirewallsFirewallRuleInput added in v1.5.0

type GetFirewallsFirewallRuleInput interface {
	pulumi.Input

	ToGetFirewallsFirewallRuleOutput() GetFirewallsFirewallRuleOutput
	ToGetFirewallsFirewallRuleOutputWithContext(context.Context) GetFirewallsFirewallRuleOutput
}

GetFirewallsFirewallRuleInput is an input type that accepts GetFirewallsFirewallRuleArgs and GetFirewallsFirewallRuleOutput values. You can construct a concrete instance of `GetFirewallsFirewallRuleInput` via:

GetFirewallsFirewallRuleArgs{...}

type GetFirewallsFirewallRuleOutput added in v1.5.0

type GetFirewallsFirewallRuleOutput struct{ *pulumi.OutputState }

func (GetFirewallsFirewallRuleOutput) Description added in v1.5.0

func (GetFirewallsFirewallRuleOutput) DestinationIps added in v1.5.0

func (GetFirewallsFirewallRuleOutput) Direction added in v1.5.0

func (GetFirewallsFirewallRuleOutput) ElementType added in v1.5.0

func (GetFirewallsFirewallRuleOutput) Port added in v1.5.0

func (GetFirewallsFirewallRuleOutput) Protocol added in v1.5.0

func (GetFirewallsFirewallRuleOutput) SourceIps added in v1.5.0

func (GetFirewallsFirewallRuleOutput) ToGetFirewallsFirewallRuleOutput added in v1.5.0

func (o GetFirewallsFirewallRuleOutput) ToGetFirewallsFirewallRuleOutput() GetFirewallsFirewallRuleOutput

func (GetFirewallsFirewallRuleOutput) ToGetFirewallsFirewallRuleOutputWithContext added in v1.5.0

func (o GetFirewallsFirewallRuleOutput) ToGetFirewallsFirewallRuleOutputWithContext(ctx context.Context) GetFirewallsFirewallRuleOutput

type GetFirewallsOutputArgs added in v1.6.0

type GetFirewallsOutputArgs struct {
	// Sorts list by date.
	MostRecent pulumi.BoolPtrInput `pulumi:"mostRecent"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getFirewalls.

func (GetFirewallsOutputArgs) ElementType added in v1.6.0

func (GetFirewallsOutputArgs) ElementType() reflect.Type

type GetFirewallsResult added in v1.5.0

type GetFirewallsResult struct {
	// (list) List of all matching firewalls. See `data.hcloud_firewall` for schema.
	Firewalls []GetFirewallsFirewall `pulumi:"firewalls"`
	// The provider-assigned unique ID for this managed resource.
	Id           string  `pulumi:"id"`
	MostRecent   *bool   `pulumi:"mostRecent"`
	WithSelector *string `pulumi:"withSelector"`
}

A collection of values returned by getFirewalls.

func GetFirewalls added in v1.5.0

func GetFirewalls(ctx *pulumi.Context, args *GetFirewallsArgs, opts ...pulumi.InvokeOption) (*GetFirewallsResult, error)

Provides details about multiple Hetzner Cloud Firewall.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetFirewalls(ctx, &hcloud.GetFirewallsArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetFirewallsResultOutput added in v1.6.0

type GetFirewallsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFirewalls.

func GetFirewallsOutput added in v1.6.0

func GetFirewallsOutput(ctx *pulumi.Context, args GetFirewallsOutputArgs, opts ...pulumi.InvokeOption) GetFirewallsResultOutput

func (GetFirewallsResultOutput) ElementType added in v1.6.0

func (GetFirewallsResultOutput) ElementType() reflect.Type

func (GetFirewallsResultOutput) Firewalls added in v1.6.0

(list) List of all matching firewalls. See `data.hcloud_firewall` for schema.

func (GetFirewallsResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetFirewallsResultOutput) MostRecent added in v1.6.0

func (GetFirewallsResultOutput) ToGetFirewallsResultOutput added in v1.6.0

func (o GetFirewallsResultOutput) ToGetFirewallsResultOutput() GetFirewallsResultOutput

func (GetFirewallsResultOutput) ToGetFirewallsResultOutputWithContext added in v1.6.0

func (o GetFirewallsResultOutput) ToGetFirewallsResultOutputWithContext(ctx context.Context) GetFirewallsResultOutput

func (GetFirewallsResultOutput) WithSelector added in v1.6.0

type GetFloatingIpsArgs added in v1.5.0

type GetFloatingIpsArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getFloatingIps.

type GetFloatingIpsFloatingIp added in v1.5.0

type GetFloatingIpsFloatingIp struct {
	DeleteProtection bool                   `pulumi:"deleteProtection"`
	Description      string                 `pulumi:"description"`
	HomeLocation     string                 `pulumi:"homeLocation"`
	Id               int                    `pulumi:"id"`
	IpAddress        string                 `pulumi:"ipAddress"`
	IpNetwork        string                 `pulumi:"ipNetwork"`
	Labels           map[string]interface{} `pulumi:"labels"`
	Name             *string                `pulumi:"name"`
	ServerId         int                    `pulumi:"serverId"`
	Type             string                 `pulumi:"type"`
}

type GetFloatingIpsFloatingIpArgs added in v1.5.0

type GetFloatingIpsFloatingIpArgs struct {
	DeleteProtection pulumi.BoolInput      `pulumi:"deleteProtection"`
	Description      pulumi.StringInput    `pulumi:"description"`
	HomeLocation     pulumi.StringInput    `pulumi:"homeLocation"`
	Id               pulumi.IntInput       `pulumi:"id"`
	IpAddress        pulumi.StringInput    `pulumi:"ipAddress"`
	IpNetwork        pulumi.StringInput    `pulumi:"ipNetwork"`
	Labels           pulumi.MapInput       `pulumi:"labels"`
	Name             pulumi.StringPtrInput `pulumi:"name"`
	ServerId         pulumi.IntInput       `pulumi:"serverId"`
	Type             pulumi.StringInput    `pulumi:"type"`
}

func (GetFloatingIpsFloatingIpArgs) ElementType added in v1.5.0

func (GetFloatingIpsFloatingIpArgs) ToGetFloatingIpsFloatingIpOutput added in v1.5.0

func (i GetFloatingIpsFloatingIpArgs) ToGetFloatingIpsFloatingIpOutput() GetFloatingIpsFloatingIpOutput

func (GetFloatingIpsFloatingIpArgs) ToGetFloatingIpsFloatingIpOutputWithContext added in v1.5.0

func (i GetFloatingIpsFloatingIpArgs) ToGetFloatingIpsFloatingIpOutputWithContext(ctx context.Context) GetFloatingIpsFloatingIpOutput

type GetFloatingIpsFloatingIpArray added in v1.5.0

type GetFloatingIpsFloatingIpArray []GetFloatingIpsFloatingIpInput

func (GetFloatingIpsFloatingIpArray) ElementType added in v1.5.0

func (GetFloatingIpsFloatingIpArray) ToGetFloatingIpsFloatingIpArrayOutput added in v1.5.0

func (i GetFloatingIpsFloatingIpArray) ToGetFloatingIpsFloatingIpArrayOutput() GetFloatingIpsFloatingIpArrayOutput

func (GetFloatingIpsFloatingIpArray) ToGetFloatingIpsFloatingIpArrayOutputWithContext added in v1.5.0

func (i GetFloatingIpsFloatingIpArray) ToGetFloatingIpsFloatingIpArrayOutputWithContext(ctx context.Context) GetFloatingIpsFloatingIpArrayOutput

type GetFloatingIpsFloatingIpArrayInput added in v1.5.0

type GetFloatingIpsFloatingIpArrayInput interface {
	pulumi.Input

	ToGetFloatingIpsFloatingIpArrayOutput() GetFloatingIpsFloatingIpArrayOutput
	ToGetFloatingIpsFloatingIpArrayOutputWithContext(context.Context) GetFloatingIpsFloatingIpArrayOutput
}

GetFloatingIpsFloatingIpArrayInput is an input type that accepts GetFloatingIpsFloatingIpArray and GetFloatingIpsFloatingIpArrayOutput values. You can construct a concrete instance of `GetFloatingIpsFloatingIpArrayInput` via:

GetFloatingIpsFloatingIpArray{ GetFloatingIpsFloatingIpArgs{...} }

type GetFloatingIpsFloatingIpArrayOutput added in v1.5.0

type GetFloatingIpsFloatingIpArrayOutput struct{ *pulumi.OutputState }

func (GetFloatingIpsFloatingIpArrayOutput) ElementType added in v1.5.0

func (GetFloatingIpsFloatingIpArrayOutput) Index added in v1.5.0

func (GetFloatingIpsFloatingIpArrayOutput) ToGetFloatingIpsFloatingIpArrayOutput added in v1.5.0

func (o GetFloatingIpsFloatingIpArrayOutput) ToGetFloatingIpsFloatingIpArrayOutput() GetFloatingIpsFloatingIpArrayOutput

func (GetFloatingIpsFloatingIpArrayOutput) ToGetFloatingIpsFloatingIpArrayOutputWithContext added in v1.5.0

func (o GetFloatingIpsFloatingIpArrayOutput) ToGetFloatingIpsFloatingIpArrayOutputWithContext(ctx context.Context) GetFloatingIpsFloatingIpArrayOutput

type GetFloatingIpsFloatingIpInput added in v1.5.0

type GetFloatingIpsFloatingIpInput interface {
	pulumi.Input

	ToGetFloatingIpsFloatingIpOutput() GetFloatingIpsFloatingIpOutput
	ToGetFloatingIpsFloatingIpOutputWithContext(context.Context) GetFloatingIpsFloatingIpOutput
}

GetFloatingIpsFloatingIpInput is an input type that accepts GetFloatingIpsFloatingIpArgs and GetFloatingIpsFloatingIpOutput values. You can construct a concrete instance of `GetFloatingIpsFloatingIpInput` via:

GetFloatingIpsFloatingIpArgs{...}

type GetFloatingIpsFloatingIpOutput added in v1.5.0

type GetFloatingIpsFloatingIpOutput struct{ *pulumi.OutputState }

func (GetFloatingIpsFloatingIpOutput) DeleteProtection added in v1.5.0

func (o GetFloatingIpsFloatingIpOutput) DeleteProtection() pulumi.BoolOutput

func (GetFloatingIpsFloatingIpOutput) Description added in v1.5.0

func (GetFloatingIpsFloatingIpOutput) ElementType added in v1.5.0

func (GetFloatingIpsFloatingIpOutput) HomeLocation added in v1.5.0

func (GetFloatingIpsFloatingIpOutput) Id added in v1.5.0

func (GetFloatingIpsFloatingIpOutput) IpAddress added in v1.5.0

func (GetFloatingIpsFloatingIpOutput) IpNetwork added in v1.5.0

func (GetFloatingIpsFloatingIpOutput) Labels added in v1.5.0

func (GetFloatingIpsFloatingIpOutput) Name added in v1.5.0

func (GetFloatingIpsFloatingIpOutput) ServerId added in v1.5.0

func (GetFloatingIpsFloatingIpOutput) ToGetFloatingIpsFloatingIpOutput added in v1.5.0

func (o GetFloatingIpsFloatingIpOutput) ToGetFloatingIpsFloatingIpOutput() GetFloatingIpsFloatingIpOutput

func (GetFloatingIpsFloatingIpOutput) ToGetFloatingIpsFloatingIpOutputWithContext added in v1.5.0

func (o GetFloatingIpsFloatingIpOutput) ToGetFloatingIpsFloatingIpOutputWithContext(ctx context.Context) GetFloatingIpsFloatingIpOutput

func (GetFloatingIpsFloatingIpOutput) Type added in v1.5.0

type GetFloatingIpsOutputArgs added in v1.6.0

type GetFloatingIpsOutputArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getFloatingIps.

func (GetFloatingIpsOutputArgs) ElementType added in v1.6.0

func (GetFloatingIpsOutputArgs) ElementType() reflect.Type

type GetFloatingIpsResult added in v1.5.0

type GetFloatingIpsResult struct {
	// (list) List of all matching floating ips. See `data.hcloud_floating_ip` for schema.
	FloatingIps []GetFloatingIpsFloatingIp `pulumi:"floatingIps"`
	// The provider-assigned unique ID for this managed resource.
	Id           string  `pulumi:"id"`
	WithSelector *string `pulumi:"withSelector"`
}

A collection of values returned by getFloatingIps.

func GetFloatingIps added in v1.5.0

func GetFloatingIps(ctx *pulumi.Context, args *GetFloatingIpsArgs, opts ...pulumi.InvokeOption) (*GetFloatingIpsResult, error)

Provides details about multiple Hetzner Cloud Floating IPs.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetFloatingIps(ctx, &hcloud.GetFloatingIpsArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetFloatingIpsResultOutput added in v1.6.0

type GetFloatingIpsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFloatingIps.

func GetFloatingIpsOutput added in v1.6.0

func GetFloatingIpsOutput(ctx *pulumi.Context, args GetFloatingIpsOutputArgs, opts ...pulumi.InvokeOption) GetFloatingIpsResultOutput

func (GetFloatingIpsResultOutput) ElementType added in v1.6.0

func (GetFloatingIpsResultOutput) ElementType() reflect.Type

func (GetFloatingIpsResultOutput) FloatingIps added in v1.6.0

(list) List of all matching floating ips. See `data.hcloud_floating_ip` for schema.

func (GetFloatingIpsResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetFloatingIpsResultOutput) ToGetFloatingIpsResultOutput added in v1.6.0

func (o GetFloatingIpsResultOutput) ToGetFloatingIpsResultOutput() GetFloatingIpsResultOutput

func (GetFloatingIpsResultOutput) ToGetFloatingIpsResultOutputWithContext added in v1.6.0

func (o GetFloatingIpsResultOutput) ToGetFloatingIpsResultOutputWithContext(ctx context.Context) GetFloatingIpsResultOutput

func (GetFloatingIpsResultOutput) WithSelector added in v1.6.0

type GetImageArgs

type GetImageArgs struct {
	// ID of the Image.
	Id *int `pulumi:"id"`
	// Also return the image if it is marked as deprecated.
	IncludeDeprecated *bool `pulumi:"includeDeprecated"`
	// If more than one result is returned, use the most recent Image.
	MostRecent *bool `pulumi:"mostRecent"`
	// Name of the Image.
	Name *string `pulumi:"name"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	// Select only images with this architecture, could be `x86` (default) or `arm`.
	WithArchitecture *string `pulumi:"withArchitecture"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
	// Select only images with the specified status, could contain `creating` or `available`.
	WithStatuses []string `pulumi:"withStatuses"`
}

A collection of arguments for invoking getImage.

type GetImageOutputArgs added in v1.6.0

type GetImageOutputArgs struct {
	// ID of the Image.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// Also return the image if it is marked as deprecated.
	IncludeDeprecated pulumi.BoolPtrInput `pulumi:"includeDeprecated"`
	// If more than one result is returned, use the most recent Image.
	MostRecent pulumi.BoolPtrInput `pulumi:"mostRecent"`
	// Name of the Image.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Deprecated: Please use the withSelector property instead.
	Selector pulumi.StringPtrInput `pulumi:"selector"`
	// Select only images with this architecture, could be `x86` (default) or `arm`.
	WithArchitecture pulumi.StringPtrInput `pulumi:"withArchitecture"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
	// Select only images with the specified status, could contain `creating` or `available`.
	WithStatuses pulumi.StringArrayInput `pulumi:"withStatuses"`
}

A collection of arguments for invoking getImage.

func (GetImageOutputArgs) ElementType added in v1.6.0

func (GetImageOutputArgs) ElementType() reflect.Type

type GetImageResult

type GetImageResult struct {
	// (string) Architecture of the Image.
	Architecture string `pulumi:"architecture"`
	// (string) Date when the Image was created (in ISO-8601 format).
	Created string `pulumi:"created"`
	// (string) Point in time when the image is considered to be deprecated (in ISO-8601 format).
	Deprecated string `pulumi:"deprecated"`
	// (string) Description of the Image.
	Description string `pulumi:"description"`
	// (int) Unique ID of the Image.
	Id                int                    `pulumi:"id"`
	IncludeDeprecated *bool                  `pulumi:"includeDeprecated"`
	Labels            map[string]interface{} `pulumi:"labels"`
	MostRecent        *bool                  `pulumi:"mostRecent"`
	// (string) Name of the Image, only present when the Image is of type `system`.
	Name string `pulumi:"name"`
	// (string) Flavor of operating system contained in the image, could be `ubuntu`, `centos`, `debian`, `fedora` or `unknown`.
	OsFlavor string `pulumi:"osFlavor"`
	// (string) Operating system version.
	OsVersion string `pulumi:"osVersion"`
	// (bool) Indicates that rapid deploy of the image is available.
	RapidDeploy bool `pulumi:"rapidDeploy"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	// (string) Type of the Image, could be `system`, `backup` or `snapshot`.
	Type             string   `pulumi:"type"`
	WithArchitecture *string  `pulumi:"withArchitecture"`
	WithSelector     *string  `pulumi:"withSelector"`
	WithStatuses     []string `pulumi:"withStatuses"`
}

A collection of values returned by getImage.

func GetImage

func GetImage(ctx *pulumi.Context, args *GetImageArgs, opts ...pulumi.InvokeOption) (*GetImageResult, error)

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		image1, err := hcloud.GetImage(ctx, &hcloud.GetImageArgs{
			Id: pulumi.IntRef(1234),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetImage(ctx, &hcloud.GetImageArgs{
			Name:             pulumi.StringRef("ubuntu-18.04"),
			WithArchitecture: pulumi.StringRef("x86"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetImage(ctx, &hcloud.GetImageArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.NewServer(ctx, "main", &hcloud.ServerArgs{
			Image: pulumi.Int(image1.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetImageResultOutput added in v1.6.0

type GetImageResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getImage.

func GetImageOutput added in v1.6.0

func GetImageOutput(ctx *pulumi.Context, args GetImageOutputArgs, opts ...pulumi.InvokeOption) GetImageResultOutput

func (GetImageResultOutput) Architecture added in v1.11.0

func (o GetImageResultOutput) Architecture() pulumi.StringOutput

(string) Architecture of the Image.

func (GetImageResultOutput) Created added in v1.6.0

(string) Date when the Image was created (in ISO-8601 format).

func (GetImageResultOutput) Deprecated added in v1.6.0

func (o GetImageResultOutput) Deprecated() pulumi.StringOutput

(string) Point in time when the image is considered to be deprecated (in ISO-8601 format).

func (GetImageResultOutput) Description added in v1.6.0

func (o GetImageResultOutput) Description() pulumi.StringOutput

(string) Description of the Image.

func (GetImageResultOutput) ElementType added in v1.6.0

func (GetImageResultOutput) ElementType() reflect.Type

func (GetImageResultOutput) Id added in v1.6.0

(int) Unique ID of the Image.

func (GetImageResultOutput) IncludeDeprecated added in v1.14.0

func (o GetImageResultOutput) IncludeDeprecated() pulumi.BoolPtrOutput

func (GetImageResultOutput) Labels added in v1.6.0

func (GetImageResultOutput) MostRecent added in v1.6.0

func (o GetImageResultOutput) MostRecent() pulumi.BoolPtrOutput

func (GetImageResultOutput) Name added in v1.6.0

(string) Name of the Image, only present when the Image is of type `system`.

func (GetImageResultOutput) OsFlavor added in v1.6.0

(string) Flavor of operating system contained in the image, could be `ubuntu`, `centos`, `debian`, `fedora` or `unknown`.

func (GetImageResultOutput) OsVersion added in v1.6.0

(string) Operating system version.

func (GetImageResultOutput) RapidDeploy added in v1.6.0

func (o GetImageResultOutput) RapidDeploy() pulumi.BoolOutput

(bool) Indicates that rapid deploy of the image is available.

func (GetImageResultOutput) Selector deprecated added in v1.6.0

Deprecated: Please use the withSelector property instead.

func (GetImageResultOutput) ToGetImageResultOutput added in v1.6.0

func (o GetImageResultOutput) ToGetImageResultOutput() GetImageResultOutput

func (GetImageResultOutput) ToGetImageResultOutputWithContext added in v1.6.0

func (o GetImageResultOutput) ToGetImageResultOutputWithContext(ctx context.Context) GetImageResultOutput

func (GetImageResultOutput) Type added in v1.6.0

(string) Type of the Image, could be `system`, `backup` or `snapshot`.

func (GetImageResultOutput) WithArchitecture added in v1.11.0

func (o GetImageResultOutput) WithArchitecture() pulumi.StringPtrOutput

func (GetImageResultOutput) WithSelector added in v1.6.0

func (o GetImageResultOutput) WithSelector() pulumi.StringPtrOutput

func (GetImageResultOutput) WithStatuses added in v1.6.0

type GetImagesArgs added in v1.5.0

type GetImagesArgs struct {
	// Also list images that are marked as deprecated.
	IncludeDeprecated *bool `pulumi:"includeDeprecated"`
	// Sorts list by date.
	MostRecent *bool `pulumi:"mostRecent"`
	// List only images with this architecture, could contain `x86` or `arm`.
	WithArchitectures []string `pulumi:"withArchitectures"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
	// List only images with the specified status, could contain `creating` or `available`.
	WithStatuses []string `pulumi:"withStatuses"`
}

A collection of arguments for invoking getImages.

type GetImagesImage added in v1.5.0

type GetImagesImage struct {
	Architecture string                 `pulumi:"architecture"`
	Created      string                 `pulumi:"created"`
	Deprecated   string                 `pulumi:"deprecated"`
	Description  string                 `pulumi:"description"`
	Id           int                    `pulumi:"id"`
	Labels       map[string]interface{} `pulumi:"labels"`
	Name         string                 `pulumi:"name"`
	OsFlavor     string                 `pulumi:"osFlavor"`
	OsVersion    string                 `pulumi:"osVersion"`
	RapidDeploy  bool                   `pulumi:"rapidDeploy"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	Type     string  `pulumi:"type"`
}

type GetImagesImageArgs added in v1.5.0

type GetImagesImageArgs struct {
	Architecture pulumi.StringInput `pulumi:"architecture"`
	Created      pulumi.StringInput `pulumi:"created"`
	Deprecated   pulumi.StringInput `pulumi:"deprecated"`
	Description  pulumi.StringInput `pulumi:"description"`
	Id           pulumi.IntInput    `pulumi:"id"`
	Labels       pulumi.MapInput    `pulumi:"labels"`
	Name         pulumi.StringInput `pulumi:"name"`
	OsFlavor     pulumi.StringInput `pulumi:"osFlavor"`
	OsVersion    pulumi.StringInput `pulumi:"osVersion"`
	RapidDeploy  pulumi.BoolInput   `pulumi:"rapidDeploy"`
	// Deprecated: Please use the withSelector property instead.
	Selector pulumi.StringPtrInput `pulumi:"selector"`
	Type     pulumi.StringInput    `pulumi:"type"`
}

func (GetImagesImageArgs) ElementType added in v1.5.0

func (GetImagesImageArgs) ElementType() reflect.Type

func (GetImagesImageArgs) ToGetImagesImageOutput added in v1.5.0

func (i GetImagesImageArgs) ToGetImagesImageOutput() GetImagesImageOutput

func (GetImagesImageArgs) ToGetImagesImageOutputWithContext added in v1.5.0

func (i GetImagesImageArgs) ToGetImagesImageOutputWithContext(ctx context.Context) GetImagesImageOutput

type GetImagesImageArray added in v1.5.0

type GetImagesImageArray []GetImagesImageInput

func (GetImagesImageArray) ElementType added in v1.5.0

func (GetImagesImageArray) ElementType() reflect.Type

func (GetImagesImageArray) ToGetImagesImageArrayOutput added in v1.5.0

func (i GetImagesImageArray) ToGetImagesImageArrayOutput() GetImagesImageArrayOutput

func (GetImagesImageArray) ToGetImagesImageArrayOutputWithContext added in v1.5.0

func (i GetImagesImageArray) ToGetImagesImageArrayOutputWithContext(ctx context.Context) GetImagesImageArrayOutput

type GetImagesImageArrayInput added in v1.5.0

type GetImagesImageArrayInput interface {
	pulumi.Input

	ToGetImagesImageArrayOutput() GetImagesImageArrayOutput
	ToGetImagesImageArrayOutputWithContext(context.Context) GetImagesImageArrayOutput
}

GetImagesImageArrayInput is an input type that accepts GetImagesImageArray and GetImagesImageArrayOutput values. You can construct a concrete instance of `GetImagesImageArrayInput` via:

GetImagesImageArray{ GetImagesImageArgs{...} }

type GetImagesImageArrayOutput added in v1.5.0

type GetImagesImageArrayOutput struct{ *pulumi.OutputState }

func (GetImagesImageArrayOutput) ElementType added in v1.5.0

func (GetImagesImageArrayOutput) ElementType() reflect.Type

func (GetImagesImageArrayOutput) Index added in v1.5.0

func (GetImagesImageArrayOutput) ToGetImagesImageArrayOutput added in v1.5.0

func (o GetImagesImageArrayOutput) ToGetImagesImageArrayOutput() GetImagesImageArrayOutput

func (GetImagesImageArrayOutput) ToGetImagesImageArrayOutputWithContext added in v1.5.0

func (o GetImagesImageArrayOutput) ToGetImagesImageArrayOutputWithContext(ctx context.Context) GetImagesImageArrayOutput

type GetImagesImageInput added in v1.5.0

type GetImagesImageInput interface {
	pulumi.Input

	ToGetImagesImageOutput() GetImagesImageOutput
	ToGetImagesImageOutputWithContext(context.Context) GetImagesImageOutput
}

GetImagesImageInput is an input type that accepts GetImagesImageArgs and GetImagesImageOutput values. You can construct a concrete instance of `GetImagesImageInput` via:

GetImagesImageArgs{...}

type GetImagesImageOutput added in v1.5.0

type GetImagesImageOutput struct{ *pulumi.OutputState }

func (GetImagesImageOutput) Architecture added in v1.11.0

func (o GetImagesImageOutput) Architecture() pulumi.StringOutput

func (GetImagesImageOutput) Created added in v1.5.0

func (GetImagesImageOutput) Deprecated added in v1.5.0

func (o GetImagesImageOutput) Deprecated() pulumi.StringOutput

func (GetImagesImageOutput) Description added in v1.5.0

func (o GetImagesImageOutput) Description() pulumi.StringOutput

func (GetImagesImageOutput) ElementType added in v1.5.0

func (GetImagesImageOutput) ElementType() reflect.Type

func (GetImagesImageOutput) Id added in v1.5.0

func (GetImagesImageOutput) Labels added in v1.5.0

func (GetImagesImageOutput) Name added in v1.5.0

func (GetImagesImageOutput) OsFlavor added in v1.5.0

func (GetImagesImageOutput) OsVersion added in v1.5.0

func (GetImagesImageOutput) RapidDeploy added in v1.5.0

func (o GetImagesImageOutput) RapidDeploy() pulumi.BoolOutput

func (GetImagesImageOutput) Selector deprecated added in v1.5.0

Deprecated: Please use the withSelector property instead.

func (GetImagesImageOutput) ToGetImagesImageOutput added in v1.5.0

func (o GetImagesImageOutput) ToGetImagesImageOutput() GetImagesImageOutput

func (GetImagesImageOutput) ToGetImagesImageOutputWithContext added in v1.5.0

func (o GetImagesImageOutput) ToGetImagesImageOutputWithContext(ctx context.Context) GetImagesImageOutput

func (GetImagesImageOutput) Type added in v1.5.0

type GetImagesOutputArgs added in v1.6.0

type GetImagesOutputArgs struct {
	// Also list images that are marked as deprecated.
	IncludeDeprecated pulumi.BoolPtrInput `pulumi:"includeDeprecated"`
	// Sorts list by date.
	MostRecent pulumi.BoolPtrInput `pulumi:"mostRecent"`
	// List only images with this architecture, could contain `x86` or `arm`.
	WithArchitectures pulumi.StringArrayInput `pulumi:"withArchitectures"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
	// List only images with the specified status, could contain `creating` or `available`.
	WithStatuses pulumi.StringArrayInput `pulumi:"withStatuses"`
}

A collection of arguments for invoking getImages.

func (GetImagesOutputArgs) ElementType added in v1.6.0

func (GetImagesOutputArgs) ElementType() reflect.Type

type GetImagesResult added in v1.5.0

type GetImagesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// (list) List of all matching images. See `data.hcloud_image` for schema.
	Images            []GetImagesImage `pulumi:"images"`
	IncludeDeprecated *bool            `pulumi:"includeDeprecated"`
	MostRecent        *bool            `pulumi:"mostRecent"`
	WithArchitectures []string         `pulumi:"withArchitectures"`
	WithSelector      *string          `pulumi:"withSelector"`
	WithStatuses      []string         `pulumi:"withStatuses"`
}

A collection of values returned by getImages.

func GetImages added in v1.5.0

func GetImages(ctx *pulumi.Context, args *GetImagesArgs, opts ...pulumi.InvokeOption) (*GetImagesResult, error)

Provides details about multiple Hetzner Cloud Images.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetImages(ctx, &hcloud.GetImagesArgs{
			WithArchitectures: []string{
				"x86",
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetImages(ctx, &hcloud.GetImagesArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetImagesResultOutput added in v1.6.0

type GetImagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getImages.

func GetImagesOutput added in v1.6.0

func GetImagesOutput(ctx *pulumi.Context, args GetImagesOutputArgs, opts ...pulumi.InvokeOption) GetImagesResultOutput

func (GetImagesResultOutput) ElementType added in v1.6.0

func (GetImagesResultOutput) ElementType() reflect.Type

func (GetImagesResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetImagesResultOutput) Images added in v1.6.0

(list) List of all matching images. See `data.hcloud_image` for schema.

func (GetImagesResultOutput) IncludeDeprecated added in v1.14.0

func (o GetImagesResultOutput) IncludeDeprecated() pulumi.BoolPtrOutput

func (GetImagesResultOutput) MostRecent added in v1.6.0

func (GetImagesResultOutput) ToGetImagesResultOutput added in v1.6.0

func (o GetImagesResultOutput) ToGetImagesResultOutput() GetImagesResultOutput

func (GetImagesResultOutput) ToGetImagesResultOutputWithContext added in v1.6.0

func (o GetImagesResultOutput) ToGetImagesResultOutputWithContext(ctx context.Context) GetImagesResultOutput

func (GetImagesResultOutput) WithArchitectures added in v1.11.0

func (o GetImagesResultOutput) WithArchitectures() pulumi.StringArrayOutput

func (GetImagesResultOutput) WithSelector added in v1.6.0

func (o GetImagesResultOutput) WithSelector() pulumi.StringPtrOutput

func (GetImagesResultOutput) WithStatuses added in v1.6.0

type GetLoadBalancerAlgorithm

type GetLoadBalancerAlgorithm struct {
	// (string) Type of the target. `server` or `labelSelector`
	Type string `pulumi:"type"`
}

type GetLoadBalancerAlgorithmArgs

type GetLoadBalancerAlgorithmArgs struct {
	// (string) Type of the target. `server` or `labelSelector`
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetLoadBalancerAlgorithmArgs) ElementType

func (GetLoadBalancerAlgorithmArgs) ToGetLoadBalancerAlgorithmOutput

func (i GetLoadBalancerAlgorithmArgs) ToGetLoadBalancerAlgorithmOutput() GetLoadBalancerAlgorithmOutput

func (GetLoadBalancerAlgorithmArgs) ToGetLoadBalancerAlgorithmOutputWithContext

func (i GetLoadBalancerAlgorithmArgs) ToGetLoadBalancerAlgorithmOutputWithContext(ctx context.Context) GetLoadBalancerAlgorithmOutput

type GetLoadBalancerAlgorithmArray added in v0.4.1

type GetLoadBalancerAlgorithmArray []GetLoadBalancerAlgorithmInput

func (GetLoadBalancerAlgorithmArray) ElementType added in v0.4.1

func (GetLoadBalancerAlgorithmArray) ToGetLoadBalancerAlgorithmArrayOutput added in v0.4.1

func (i GetLoadBalancerAlgorithmArray) ToGetLoadBalancerAlgorithmArrayOutput() GetLoadBalancerAlgorithmArrayOutput

func (GetLoadBalancerAlgorithmArray) ToGetLoadBalancerAlgorithmArrayOutputWithContext added in v0.4.1

func (i GetLoadBalancerAlgorithmArray) ToGetLoadBalancerAlgorithmArrayOutputWithContext(ctx context.Context) GetLoadBalancerAlgorithmArrayOutput

type GetLoadBalancerAlgorithmArrayInput added in v0.4.1

type GetLoadBalancerAlgorithmArrayInput interface {
	pulumi.Input

	ToGetLoadBalancerAlgorithmArrayOutput() GetLoadBalancerAlgorithmArrayOutput
	ToGetLoadBalancerAlgorithmArrayOutputWithContext(context.Context) GetLoadBalancerAlgorithmArrayOutput
}

GetLoadBalancerAlgorithmArrayInput is an input type that accepts GetLoadBalancerAlgorithmArray and GetLoadBalancerAlgorithmArrayOutput values. You can construct a concrete instance of `GetLoadBalancerAlgorithmArrayInput` via:

GetLoadBalancerAlgorithmArray{ GetLoadBalancerAlgorithmArgs{...} }

type GetLoadBalancerAlgorithmArrayOutput added in v0.4.1

type GetLoadBalancerAlgorithmArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerAlgorithmArrayOutput) ElementType added in v0.4.1

func (GetLoadBalancerAlgorithmArrayOutput) Index added in v0.4.1

func (GetLoadBalancerAlgorithmArrayOutput) ToGetLoadBalancerAlgorithmArrayOutput added in v0.4.1

func (o GetLoadBalancerAlgorithmArrayOutput) ToGetLoadBalancerAlgorithmArrayOutput() GetLoadBalancerAlgorithmArrayOutput

func (GetLoadBalancerAlgorithmArrayOutput) ToGetLoadBalancerAlgorithmArrayOutputWithContext added in v0.4.1

func (o GetLoadBalancerAlgorithmArrayOutput) ToGetLoadBalancerAlgorithmArrayOutputWithContext(ctx context.Context) GetLoadBalancerAlgorithmArrayOutput

type GetLoadBalancerAlgorithmInput

type GetLoadBalancerAlgorithmInput interface {
	pulumi.Input

	ToGetLoadBalancerAlgorithmOutput() GetLoadBalancerAlgorithmOutput
	ToGetLoadBalancerAlgorithmOutputWithContext(context.Context) GetLoadBalancerAlgorithmOutput
}

GetLoadBalancerAlgorithmInput is an input type that accepts GetLoadBalancerAlgorithmArgs and GetLoadBalancerAlgorithmOutput values. You can construct a concrete instance of `GetLoadBalancerAlgorithmInput` via:

GetLoadBalancerAlgorithmArgs{...}

type GetLoadBalancerAlgorithmOutput

type GetLoadBalancerAlgorithmOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerAlgorithmOutput) ElementType

func (GetLoadBalancerAlgorithmOutput) ToGetLoadBalancerAlgorithmOutput

func (o GetLoadBalancerAlgorithmOutput) ToGetLoadBalancerAlgorithmOutput() GetLoadBalancerAlgorithmOutput

func (GetLoadBalancerAlgorithmOutput) ToGetLoadBalancerAlgorithmOutputWithContext

func (o GetLoadBalancerAlgorithmOutput) ToGetLoadBalancerAlgorithmOutputWithContext(ctx context.Context) GetLoadBalancerAlgorithmOutput

func (GetLoadBalancerAlgorithmOutput) Type

(string) Type of the target. `server` or `labelSelector`

type GetLoadBalancerServiceHealthCheck

type GetLoadBalancerServiceHealthCheck struct {
	// (list) List of http configurations when `protocol` is `http` or `https`.
	Https []GetLoadBalancerServiceHealthCheckHttp `pulumi:"https"`
	// (int) Interval how often the health check will be performed, in seconds.
	Interval int `pulumi:"interval"`
	// (int) Port the health check tries to connect to. Can be everything between `1` and `65535`.
	Port int `pulumi:"port"`
	// (string) Protocol the health check uses. `http`, `https` or `tcp`
	Protocol string `pulumi:"protocol"`
	// (int) Number of tries a health check will be performed until a target will be listed as `unhealthy`.
	Retries int `pulumi:"retries"`
	// (int) Timeout when a health check try will be canceled if there is no response, in seconds.
	Timeout int `pulumi:"timeout"`
}

type GetLoadBalancerServiceHealthCheckArgs

type GetLoadBalancerServiceHealthCheckArgs struct {
	// (list) List of http configurations when `protocol` is `http` or `https`.
	Https GetLoadBalancerServiceHealthCheckHttpArrayInput `pulumi:"https"`
	// (int) Interval how often the health check will be performed, in seconds.
	Interval pulumi.IntInput `pulumi:"interval"`
	// (int) Port the health check tries to connect to. Can be everything between `1` and `65535`.
	Port pulumi.IntInput `pulumi:"port"`
	// (string) Protocol the health check uses. `http`, `https` or `tcp`
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// (int) Number of tries a health check will be performed until a target will be listed as `unhealthy`.
	Retries pulumi.IntInput `pulumi:"retries"`
	// (int) Timeout when a health check try will be canceled if there is no response, in seconds.
	Timeout pulumi.IntInput `pulumi:"timeout"`
}

func (GetLoadBalancerServiceHealthCheckArgs) ElementType

func (GetLoadBalancerServiceHealthCheckArgs) ToGetLoadBalancerServiceHealthCheckOutput

func (i GetLoadBalancerServiceHealthCheckArgs) ToGetLoadBalancerServiceHealthCheckOutput() GetLoadBalancerServiceHealthCheckOutput

func (GetLoadBalancerServiceHealthCheckArgs) ToGetLoadBalancerServiceHealthCheckOutputWithContext

func (i GetLoadBalancerServiceHealthCheckArgs) ToGetLoadBalancerServiceHealthCheckOutputWithContext(ctx context.Context) GetLoadBalancerServiceHealthCheckOutput

type GetLoadBalancerServiceHealthCheckArray added in v0.4.1

type GetLoadBalancerServiceHealthCheckArray []GetLoadBalancerServiceHealthCheckInput

func (GetLoadBalancerServiceHealthCheckArray) ElementType added in v0.4.1

func (GetLoadBalancerServiceHealthCheckArray) ToGetLoadBalancerServiceHealthCheckArrayOutput added in v0.4.1

func (i GetLoadBalancerServiceHealthCheckArray) ToGetLoadBalancerServiceHealthCheckArrayOutput() GetLoadBalancerServiceHealthCheckArrayOutput

func (GetLoadBalancerServiceHealthCheckArray) ToGetLoadBalancerServiceHealthCheckArrayOutputWithContext added in v0.4.1

func (i GetLoadBalancerServiceHealthCheckArray) ToGetLoadBalancerServiceHealthCheckArrayOutputWithContext(ctx context.Context) GetLoadBalancerServiceHealthCheckArrayOutput

type GetLoadBalancerServiceHealthCheckArrayInput added in v0.4.1

type GetLoadBalancerServiceHealthCheckArrayInput interface {
	pulumi.Input

	ToGetLoadBalancerServiceHealthCheckArrayOutput() GetLoadBalancerServiceHealthCheckArrayOutput
	ToGetLoadBalancerServiceHealthCheckArrayOutputWithContext(context.Context) GetLoadBalancerServiceHealthCheckArrayOutput
}

GetLoadBalancerServiceHealthCheckArrayInput is an input type that accepts GetLoadBalancerServiceHealthCheckArray and GetLoadBalancerServiceHealthCheckArrayOutput values. You can construct a concrete instance of `GetLoadBalancerServiceHealthCheckArrayInput` via:

GetLoadBalancerServiceHealthCheckArray{ GetLoadBalancerServiceHealthCheckArgs{...} }

type GetLoadBalancerServiceHealthCheckArrayOutput added in v0.4.1

type GetLoadBalancerServiceHealthCheckArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerServiceHealthCheckArrayOutput) ElementType added in v0.4.1

func (GetLoadBalancerServiceHealthCheckArrayOutput) Index added in v0.4.1

func (GetLoadBalancerServiceHealthCheckArrayOutput) ToGetLoadBalancerServiceHealthCheckArrayOutput added in v0.4.1

func (o GetLoadBalancerServiceHealthCheckArrayOutput) ToGetLoadBalancerServiceHealthCheckArrayOutput() GetLoadBalancerServiceHealthCheckArrayOutput

func (GetLoadBalancerServiceHealthCheckArrayOutput) ToGetLoadBalancerServiceHealthCheckArrayOutputWithContext added in v0.4.1

func (o GetLoadBalancerServiceHealthCheckArrayOutput) ToGetLoadBalancerServiceHealthCheckArrayOutputWithContext(ctx context.Context) GetLoadBalancerServiceHealthCheckArrayOutput

type GetLoadBalancerServiceHealthCheckHttp

type GetLoadBalancerServiceHealthCheckHttp struct {
	// string) Domain we try to access when performing the Health Check.
	Domain string `pulumi:"domain"`
	// (string) Path we try to access when performing the Health Check.
	Path string `pulumi:"path"`
	// (string) Response we expect to be included in the Target response when a Health Check was performed.
	Response string `pulumi:"response"`
	// (list[int]) We expect that the target answers with these status codes. If not the target is marked as `unhealthy`.
	StatusCodes []int `pulumi:"statusCodes"`
	// (bool) Enable TLS certificate checking.
	Tls bool `pulumi:"tls"`
}

type GetLoadBalancerServiceHealthCheckHttpArgs

type GetLoadBalancerServiceHealthCheckHttpArgs struct {
	// string) Domain we try to access when performing the Health Check.
	Domain pulumi.StringInput `pulumi:"domain"`
	// (string) Path we try to access when performing the Health Check.
	Path pulumi.StringInput `pulumi:"path"`
	// (string) Response we expect to be included in the Target response when a Health Check was performed.
	Response pulumi.StringInput `pulumi:"response"`
	// (list[int]) We expect that the target answers with these status codes. If not the target is marked as `unhealthy`.
	StatusCodes pulumi.IntArrayInput `pulumi:"statusCodes"`
	// (bool) Enable TLS certificate checking.
	Tls pulumi.BoolInput `pulumi:"tls"`
}

func (GetLoadBalancerServiceHealthCheckHttpArgs) ElementType

func (GetLoadBalancerServiceHealthCheckHttpArgs) ToGetLoadBalancerServiceHealthCheckHttpOutput

func (i GetLoadBalancerServiceHealthCheckHttpArgs) ToGetLoadBalancerServiceHealthCheckHttpOutput() GetLoadBalancerServiceHealthCheckHttpOutput

func (GetLoadBalancerServiceHealthCheckHttpArgs) ToGetLoadBalancerServiceHealthCheckHttpOutputWithContext

func (i GetLoadBalancerServiceHealthCheckHttpArgs) ToGetLoadBalancerServiceHealthCheckHttpOutputWithContext(ctx context.Context) GetLoadBalancerServiceHealthCheckHttpOutput

type GetLoadBalancerServiceHealthCheckHttpArray added in v0.4.1

type GetLoadBalancerServiceHealthCheckHttpArray []GetLoadBalancerServiceHealthCheckHttpInput

func (GetLoadBalancerServiceHealthCheckHttpArray) ElementType added in v0.4.1

func (GetLoadBalancerServiceHealthCheckHttpArray) ToGetLoadBalancerServiceHealthCheckHttpArrayOutput added in v0.4.1

func (i GetLoadBalancerServiceHealthCheckHttpArray) ToGetLoadBalancerServiceHealthCheckHttpArrayOutput() GetLoadBalancerServiceHealthCheckHttpArrayOutput

func (GetLoadBalancerServiceHealthCheckHttpArray) ToGetLoadBalancerServiceHealthCheckHttpArrayOutputWithContext added in v0.4.1

func (i GetLoadBalancerServiceHealthCheckHttpArray) ToGetLoadBalancerServiceHealthCheckHttpArrayOutputWithContext(ctx context.Context) GetLoadBalancerServiceHealthCheckHttpArrayOutput

type GetLoadBalancerServiceHealthCheckHttpArrayInput added in v0.4.1

type GetLoadBalancerServiceHealthCheckHttpArrayInput interface {
	pulumi.Input

	ToGetLoadBalancerServiceHealthCheckHttpArrayOutput() GetLoadBalancerServiceHealthCheckHttpArrayOutput
	ToGetLoadBalancerServiceHealthCheckHttpArrayOutputWithContext(context.Context) GetLoadBalancerServiceHealthCheckHttpArrayOutput
}

GetLoadBalancerServiceHealthCheckHttpArrayInput is an input type that accepts GetLoadBalancerServiceHealthCheckHttpArray and GetLoadBalancerServiceHealthCheckHttpArrayOutput values. You can construct a concrete instance of `GetLoadBalancerServiceHealthCheckHttpArrayInput` via:

GetLoadBalancerServiceHealthCheckHttpArray{ GetLoadBalancerServiceHealthCheckHttpArgs{...} }

type GetLoadBalancerServiceHealthCheckHttpArrayOutput added in v0.4.1

type GetLoadBalancerServiceHealthCheckHttpArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerServiceHealthCheckHttpArrayOutput) ElementType added in v0.4.1

func (GetLoadBalancerServiceHealthCheckHttpArrayOutput) Index added in v0.4.1

func (GetLoadBalancerServiceHealthCheckHttpArrayOutput) ToGetLoadBalancerServiceHealthCheckHttpArrayOutput added in v0.4.1

func (o GetLoadBalancerServiceHealthCheckHttpArrayOutput) ToGetLoadBalancerServiceHealthCheckHttpArrayOutput() GetLoadBalancerServiceHealthCheckHttpArrayOutput

func (GetLoadBalancerServiceHealthCheckHttpArrayOutput) ToGetLoadBalancerServiceHealthCheckHttpArrayOutputWithContext added in v0.4.1

func (o GetLoadBalancerServiceHealthCheckHttpArrayOutput) ToGetLoadBalancerServiceHealthCheckHttpArrayOutputWithContext(ctx context.Context) GetLoadBalancerServiceHealthCheckHttpArrayOutput

type GetLoadBalancerServiceHealthCheckHttpInput

type GetLoadBalancerServiceHealthCheckHttpInput interface {
	pulumi.Input

	ToGetLoadBalancerServiceHealthCheckHttpOutput() GetLoadBalancerServiceHealthCheckHttpOutput
	ToGetLoadBalancerServiceHealthCheckHttpOutputWithContext(context.Context) GetLoadBalancerServiceHealthCheckHttpOutput
}

GetLoadBalancerServiceHealthCheckHttpInput is an input type that accepts GetLoadBalancerServiceHealthCheckHttpArgs and GetLoadBalancerServiceHealthCheckHttpOutput values. You can construct a concrete instance of `GetLoadBalancerServiceHealthCheckHttpInput` via:

GetLoadBalancerServiceHealthCheckHttpArgs{...}

type GetLoadBalancerServiceHealthCheckHttpOutput

type GetLoadBalancerServiceHealthCheckHttpOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerServiceHealthCheckHttpOutput) Domain

string) Domain we try to access when performing the Health Check.

func (GetLoadBalancerServiceHealthCheckHttpOutput) ElementType

func (GetLoadBalancerServiceHealthCheckHttpOutput) Path

(string) Path we try to access when performing the Health Check.

func (GetLoadBalancerServiceHealthCheckHttpOutput) Response

(string) Response we expect to be included in the Target response when a Health Check was performed.

func (GetLoadBalancerServiceHealthCheckHttpOutput) StatusCodes

(list[int]) We expect that the target answers with these status codes. If not the target is marked as `unhealthy`.

func (GetLoadBalancerServiceHealthCheckHttpOutput) Tls

(bool) Enable TLS certificate checking.

func (GetLoadBalancerServiceHealthCheckHttpOutput) ToGetLoadBalancerServiceHealthCheckHttpOutput

func (o GetLoadBalancerServiceHealthCheckHttpOutput) ToGetLoadBalancerServiceHealthCheckHttpOutput() GetLoadBalancerServiceHealthCheckHttpOutput

func (GetLoadBalancerServiceHealthCheckHttpOutput) ToGetLoadBalancerServiceHealthCheckHttpOutputWithContext

func (o GetLoadBalancerServiceHealthCheckHttpOutput) ToGetLoadBalancerServiceHealthCheckHttpOutputWithContext(ctx context.Context) GetLoadBalancerServiceHealthCheckHttpOutput

type GetLoadBalancerServiceHealthCheckInput

type GetLoadBalancerServiceHealthCheckInput interface {
	pulumi.Input

	ToGetLoadBalancerServiceHealthCheckOutput() GetLoadBalancerServiceHealthCheckOutput
	ToGetLoadBalancerServiceHealthCheckOutputWithContext(context.Context) GetLoadBalancerServiceHealthCheckOutput
}

GetLoadBalancerServiceHealthCheckInput is an input type that accepts GetLoadBalancerServiceHealthCheckArgs and GetLoadBalancerServiceHealthCheckOutput values. You can construct a concrete instance of `GetLoadBalancerServiceHealthCheckInput` via:

GetLoadBalancerServiceHealthCheckArgs{...}

type GetLoadBalancerServiceHealthCheckOutput

type GetLoadBalancerServiceHealthCheckOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerServiceHealthCheckOutput) ElementType

func (GetLoadBalancerServiceHealthCheckOutput) Https added in v0.4.1

(list) List of http configurations when `protocol` is `http` or `https`.

func (GetLoadBalancerServiceHealthCheckOutput) Interval

(int) Interval how often the health check will be performed, in seconds.

func (GetLoadBalancerServiceHealthCheckOutput) Port

(int) Port the health check tries to connect to. Can be everything between `1` and `65535`.

func (GetLoadBalancerServiceHealthCheckOutput) Protocol

(string) Protocol the health check uses. `http`, `https` or `tcp`

func (GetLoadBalancerServiceHealthCheckOutput) Retries

(int) Number of tries a health check will be performed until a target will be listed as `unhealthy`.

func (GetLoadBalancerServiceHealthCheckOutput) Timeout

(int) Timeout when a health check try will be canceled if there is no response, in seconds.

func (GetLoadBalancerServiceHealthCheckOutput) ToGetLoadBalancerServiceHealthCheckOutput

func (o GetLoadBalancerServiceHealthCheckOutput) ToGetLoadBalancerServiceHealthCheckOutput() GetLoadBalancerServiceHealthCheckOutput

func (GetLoadBalancerServiceHealthCheckOutput) ToGetLoadBalancerServiceHealthCheckOutputWithContext

func (o GetLoadBalancerServiceHealthCheckOutput) ToGetLoadBalancerServiceHealthCheckOutputWithContext(ctx context.Context) GetLoadBalancerServiceHealthCheckOutput

type GetLoadBalancerServiceHttp

type GetLoadBalancerServiceHttp struct {
	// (list[int]) List of IDs from certificates which the Load Balancer has.
	Certificates []string `pulumi:"certificates"`
	// (int) Lifetime of the cookie for sticky session (in seconds).
	CookieLifetime int `pulumi:"cookieLifetime"`
	// (string) Name of the cookie for sticky session.
	CookieName string `pulumi:"cookieName"`
	// (string) Determine if all requests from port 80 should be redirected to port 443.
	RedirectHttp bool `pulumi:"redirectHttp"`
	// (string) Determine if sticky sessions are enabled or not.
	StickySessions bool `pulumi:"stickySessions"`
}

type GetLoadBalancerServiceHttpArgs

type GetLoadBalancerServiceHttpArgs struct {
	// (list[int]) List of IDs from certificates which the Load Balancer has.
	Certificates pulumi.StringArrayInput `pulumi:"certificates"`
	// (int) Lifetime of the cookie for sticky session (in seconds).
	CookieLifetime pulumi.IntInput `pulumi:"cookieLifetime"`
	// (string) Name of the cookie for sticky session.
	CookieName pulumi.StringInput `pulumi:"cookieName"`
	// (string) Determine if all requests from port 80 should be redirected to port 443.
	RedirectHttp pulumi.BoolInput `pulumi:"redirectHttp"`
	// (string) Determine if sticky sessions are enabled or not.
	StickySessions pulumi.BoolInput `pulumi:"stickySessions"`
}

func (GetLoadBalancerServiceHttpArgs) ElementType

func (GetLoadBalancerServiceHttpArgs) ToGetLoadBalancerServiceHttpOutput

func (i GetLoadBalancerServiceHttpArgs) ToGetLoadBalancerServiceHttpOutput() GetLoadBalancerServiceHttpOutput

func (GetLoadBalancerServiceHttpArgs) ToGetLoadBalancerServiceHttpOutputWithContext

func (i GetLoadBalancerServiceHttpArgs) ToGetLoadBalancerServiceHttpOutputWithContext(ctx context.Context) GetLoadBalancerServiceHttpOutput

type GetLoadBalancerServiceHttpArray added in v0.4.1

type GetLoadBalancerServiceHttpArray []GetLoadBalancerServiceHttpInput

func (GetLoadBalancerServiceHttpArray) ElementType added in v0.4.1

func (GetLoadBalancerServiceHttpArray) ToGetLoadBalancerServiceHttpArrayOutput added in v0.4.1

func (i GetLoadBalancerServiceHttpArray) ToGetLoadBalancerServiceHttpArrayOutput() GetLoadBalancerServiceHttpArrayOutput

func (GetLoadBalancerServiceHttpArray) ToGetLoadBalancerServiceHttpArrayOutputWithContext added in v0.4.1

func (i GetLoadBalancerServiceHttpArray) ToGetLoadBalancerServiceHttpArrayOutputWithContext(ctx context.Context) GetLoadBalancerServiceHttpArrayOutput

type GetLoadBalancerServiceHttpArrayInput added in v0.4.1

type GetLoadBalancerServiceHttpArrayInput interface {
	pulumi.Input

	ToGetLoadBalancerServiceHttpArrayOutput() GetLoadBalancerServiceHttpArrayOutput
	ToGetLoadBalancerServiceHttpArrayOutputWithContext(context.Context) GetLoadBalancerServiceHttpArrayOutput
}

GetLoadBalancerServiceHttpArrayInput is an input type that accepts GetLoadBalancerServiceHttpArray and GetLoadBalancerServiceHttpArrayOutput values. You can construct a concrete instance of `GetLoadBalancerServiceHttpArrayInput` via:

GetLoadBalancerServiceHttpArray{ GetLoadBalancerServiceHttpArgs{...} }

type GetLoadBalancerServiceHttpArrayOutput added in v0.4.1

type GetLoadBalancerServiceHttpArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerServiceHttpArrayOutput) ElementType added in v0.4.1

func (GetLoadBalancerServiceHttpArrayOutput) Index added in v0.4.1

func (GetLoadBalancerServiceHttpArrayOutput) ToGetLoadBalancerServiceHttpArrayOutput added in v0.4.1

func (o GetLoadBalancerServiceHttpArrayOutput) ToGetLoadBalancerServiceHttpArrayOutput() GetLoadBalancerServiceHttpArrayOutput

func (GetLoadBalancerServiceHttpArrayOutput) ToGetLoadBalancerServiceHttpArrayOutputWithContext added in v0.4.1

func (o GetLoadBalancerServiceHttpArrayOutput) ToGetLoadBalancerServiceHttpArrayOutputWithContext(ctx context.Context) GetLoadBalancerServiceHttpArrayOutput

type GetLoadBalancerServiceHttpInput

type GetLoadBalancerServiceHttpInput interface {
	pulumi.Input

	ToGetLoadBalancerServiceHttpOutput() GetLoadBalancerServiceHttpOutput
	ToGetLoadBalancerServiceHttpOutputWithContext(context.Context) GetLoadBalancerServiceHttpOutput
}

GetLoadBalancerServiceHttpInput is an input type that accepts GetLoadBalancerServiceHttpArgs and GetLoadBalancerServiceHttpOutput values. You can construct a concrete instance of `GetLoadBalancerServiceHttpInput` via:

GetLoadBalancerServiceHttpArgs{...}

type GetLoadBalancerServiceHttpOutput

type GetLoadBalancerServiceHttpOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerServiceHttpOutput) Certificates

(list[int]) List of IDs from certificates which the Load Balancer has.

func (GetLoadBalancerServiceHttpOutput) CookieLifetime

(int) Lifetime of the cookie for sticky session (in seconds).

func (GetLoadBalancerServiceHttpOutput) CookieName

(string) Name of the cookie for sticky session.

func (GetLoadBalancerServiceHttpOutput) ElementType

func (GetLoadBalancerServiceHttpOutput) RedirectHttp

(string) Determine if all requests from port 80 should be redirected to port 443.

func (GetLoadBalancerServiceHttpOutput) StickySessions

(string) Determine if sticky sessions are enabled or not.

func (GetLoadBalancerServiceHttpOutput) ToGetLoadBalancerServiceHttpOutput

func (o GetLoadBalancerServiceHttpOutput) ToGetLoadBalancerServiceHttpOutput() GetLoadBalancerServiceHttpOutput

func (GetLoadBalancerServiceHttpOutput) ToGetLoadBalancerServiceHttpOutputWithContext

func (o GetLoadBalancerServiceHttpOutput) ToGetLoadBalancerServiceHttpOutputWithContext(ctx context.Context) GetLoadBalancerServiceHttpOutput

type GetLoadBalancerServiceType

type GetLoadBalancerServiceType struct {
	// (int) Port the service connects to the targets on. Can be everything between `1` and `65535`.
	DestinationPort int `pulumi:"destinationPort"`
	// (list) List of http configurations when `protocol` is `http` or `https`.
	HealthChecks []GetLoadBalancerServiceHealthCheck `pulumi:"healthChecks"`
	// (list) List of http configurations when `protocol` is `http` or `https`.
	Https []GetLoadBalancerServiceHttp `pulumi:"https"`
	// (int) Port the service listen on` . Can be everything between  `1`and`65535`. Must be unique per Load Balancer.
	ListenPort int `pulumi:"listenPort"`
	// (string) Protocol the health check uses. `http`, `https` or `tcp`
	Protocol string `pulumi:"protocol"`
	// (bool) Enable proxyprotocol.
	Proxyprotocol bool `pulumi:"proxyprotocol"`
}

type GetLoadBalancerServiceTypeArgs

type GetLoadBalancerServiceTypeArgs struct {
	// (int) Port the service connects to the targets on. Can be everything between `1` and `65535`.
	DestinationPort pulumi.IntInput `pulumi:"destinationPort"`
	// (list) List of http configurations when `protocol` is `http` or `https`.
	HealthChecks GetLoadBalancerServiceHealthCheckArrayInput `pulumi:"healthChecks"`
	// (list) List of http configurations when `protocol` is `http` or `https`.
	Https GetLoadBalancerServiceHttpArrayInput `pulumi:"https"`
	// (int) Port the service listen on` . Can be everything between  `1`and`65535`. Must be unique per Load Balancer.
	ListenPort pulumi.IntInput `pulumi:"listenPort"`
	// (string) Protocol the health check uses. `http`, `https` or `tcp`
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// (bool) Enable proxyprotocol.
	Proxyprotocol pulumi.BoolInput `pulumi:"proxyprotocol"`
}

func (GetLoadBalancerServiceTypeArgs) ElementType

func (GetLoadBalancerServiceTypeArgs) ToGetLoadBalancerServiceTypeOutput

func (i GetLoadBalancerServiceTypeArgs) ToGetLoadBalancerServiceTypeOutput() GetLoadBalancerServiceTypeOutput

func (GetLoadBalancerServiceTypeArgs) ToGetLoadBalancerServiceTypeOutputWithContext

func (i GetLoadBalancerServiceTypeArgs) ToGetLoadBalancerServiceTypeOutputWithContext(ctx context.Context) GetLoadBalancerServiceTypeOutput

type GetLoadBalancerServiceTypeArray

type GetLoadBalancerServiceTypeArray []GetLoadBalancerServiceTypeInput

func (GetLoadBalancerServiceTypeArray) ElementType

func (GetLoadBalancerServiceTypeArray) ToGetLoadBalancerServiceTypeArrayOutput

func (i GetLoadBalancerServiceTypeArray) ToGetLoadBalancerServiceTypeArrayOutput() GetLoadBalancerServiceTypeArrayOutput

func (GetLoadBalancerServiceTypeArray) ToGetLoadBalancerServiceTypeArrayOutputWithContext

func (i GetLoadBalancerServiceTypeArray) ToGetLoadBalancerServiceTypeArrayOutputWithContext(ctx context.Context) GetLoadBalancerServiceTypeArrayOutput

type GetLoadBalancerServiceTypeArrayInput

type GetLoadBalancerServiceTypeArrayInput interface {
	pulumi.Input

	ToGetLoadBalancerServiceTypeArrayOutput() GetLoadBalancerServiceTypeArrayOutput
	ToGetLoadBalancerServiceTypeArrayOutputWithContext(context.Context) GetLoadBalancerServiceTypeArrayOutput
}

GetLoadBalancerServiceTypeArrayInput is an input type that accepts GetLoadBalancerServiceTypeArray and GetLoadBalancerServiceTypeArrayOutput values. You can construct a concrete instance of `GetLoadBalancerServiceTypeArrayInput` via:

GetLoadBalancerServiceTypeArray{ GetLoadBalancerServiceTypeArgs{...} }

type GetLoadBalancerServiceTypeArrayOutput

type GetLoadBalancerServiceTypeArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerServiceTypeArrayOutput) ElementType

func (GetLoadBalancerServiceTypeArrayOutput) Index

func (GetLoadBalancerServiceTypeArrayOutput) ToGetLoadBalancerServiceTypeArrayOutput

func (o GetLoadBalancerServiceTypeArrayOutput) ToGetLoadBalancerServiceTypeArrayOutput() GetLoadBalancerServiceTypeArrayOutput

func (GetLoadBalancerServiceTypeArrayOutput) ToGetLoadBalancerServiceTypeArrayOutputWithContext

func (o GetLoadBalancerServiceTypeArrayOutput) ToGetLoadBalancerServiceTypeArrayOutputWithContext(ctx context.Context) GetLoadBalancerServiceTypeArrayOutput

type GetLoadBalancerServiceTypeInput

type GetLoadBalancerServiceTypeInput interface {
	pulumi.Input

	ToGetLoadBalancerServiceTypeOutput() GetLoadBalancerServiceTypeOutput
	ToGetLoadBalancerServiceTypeOutputWithContext(context.Context) GetLoadBalancerServiceTypeOutput
}

GetLoadBalancerServiceTypeInput is an input type that accepts GetLoadBalancerServiceTypeArgs and GetLoadBalancerServiceTypeOutput values. You can construct a concrete instance of `GetLoadBalancerServiceTypeInput` via:

GetLoadBalancerServiceTypeArgs{...}

type GetLoadBalancerServiceTypeOutput

type GetLoadBalancerServiceTypeOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerServiceTypeOutput) DestinationPort

(int) Port the service connects to the targets on. Can be everything between `1` and `65535`.

func (GetLoadBalancerServiceTypeOutput) ElementType

func (GetLoadBalancerServiceTypeOutput) HealthChecks added in v0.4.1

(list) List of http configurations when `protocol` is `http` or `https`.

func (GetLoadBalancerServiceTypeOutput) Https added in v0.4.1

(list) List of http configurations when `protocol` is `http` or `https`.

func (GetLoadBalancerServiceTypeOutput) ListenPort

(int) Port the service listen on` . Can be everything between `1`and`65535`. Must be unique per Load Balancer.

func (GetLoadBalancerServiceTypeOutput) Protocol

(string) Protocol the health check uses. `http`, `https` or `tcp`

func (GetLoadBalancerServiceTypeOutput) Proxyprotocol

(bool) Enable proxyprotocol.

func (GetLoadBalancerServiceTypeOutput) ToGetLoadBalancerServiceTypeOutput

func (o GetLoadBalancerServiceTypeOutput) ToGetLoadBalancerServiceTypeOutput() GetLoadBalancerServiceTypeOutput

func (GetLoadBalancerServiceTypeOutput) ToGetLoadBalancerServiceTypeOutputWithContext

func (o GetLoadBalancerServiceTypeOutput) ToGetLoadBalancerServiceTypeOutputWithContext(ctx context.Context) GetLoadBalancerServiceTypeOutput

type GetLoadBalancerTargetType

type GetLoadBalancerTargetType struct {
	// (string) Label Selector to add a group of resources based on the label.
	LabelSelector string `pulumi:"labelSelector"`
	// (int) ID of the server which should be a target for this Load Balancer.
	ServerId int `pulumi:"serverId"`
	// (string) Type of the target. `server` or `labelSelector`
	Type string `pulumi:"type"`
}

type GetLoadBalancerTargetTypeArgs

type GetLoadBalancerTargetTypeArgs struct {
	// (string) Label Selector to add a group of resources based on the label.
	LabelSelector pulumi.StringInput `pulumi:"labelSelector"`
	// (int) ID of the server which should be a target for this Load Balancer.
	ServerId pulumi.IntInput `pulumi:"serverId"`
	// (string) Type of the target. `server` or `labelSelector`
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetLoadBalancerTargetTypeArgs) ElementType

func (GetLoadBalancerTargetTypeArgs) ToGetLoadBalancerTargetTypeOutput

func (i GetLoadBalancerTargetTypeArgs) ToGetLoadBalancerTargetTypeOutput() GetLoadBalancerTargetTypeOutput

func (GetLoadBalancerTargetTypeArgs) ToGetLoadBalancerTargetTypeOutputWithContext

func (i GetLoadBalancerTargetTypeArgs) ToGetLoadBalancerTargetTypeOutputWithContext(ctx context.Context) GetLoadBalancerTargetTypeOutput

type GetLoadBalancerTargetTypeArray

type GetLoadBalancerTargetTypeArray []GetLoadBalancerTargetTypeInput

func (GetLoadBalancerTargetTypeArray) ElementType

func (GetLoadBalancerTargetTypeArray) ToGetLoadBalancerTargetTypeArrayOutput

func (i GetLoadBalancerTargetTypeArray) ToGetLoadBalancerTargetTypeArrayOutput() GetLoadBalancerTargetTypeArrayOutput

func (GetLoadBalancerTargetTypeArray) ToGetLoadBalancerTargetTypeArrayOutputWithContext

func (i GetLoadBalancerTargetTypeArray) ToGetLoadBalancerTargetTypeArrayOutputWithContext(ctx context.Context) GetLoadBalancerTargetTypeArrayOutput

type GetLoadBalancerTargetTypeArrayInput

type GetLoadBalancerTargetTypeArrayInput interface {
	pulumi.Input

	ToGetLoadBalancerTargetTypeArrayOutput() GetLoadBalancerTargetTypeArrayOutput
	ToGetLoadBalancerTargetTypeArrayOutputWithContext(context.Context) GetLoadBalancerTargetTypeArrayOutput
}

GetLoadBalancerTargetTypeArrayInput is an input type that accepts GetLoadBalancerTargetTypeArray and GetLoadBalancerTargetTypeArrayOutput values. You can construct a concrete instance of `GetLoadBalancerTargetTypeArrayInput` via:

GetLoadBalancerTargetTypeArray{ GetLoadBalancerTargetTypeArgs{...} }

type GetLoadBalancerTargetTypeArrayOutput

type GetLoadBalancerTargetTypeArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerTargetTypeArrayOutput) ElementType

func (GetLoadBalancerTargetTypeArrayOutput) Index

func (GetLoadBalancerTargetTypeArrayOutput) ToGetLoadBalancerTargetTypeArrayOutput

func (o GetLoadBalancerTargetTypeArrayOutput) ToGetLoadBalancerTargetTypeArrayOutput() GetLoadBalancerTargetTypeArrayOutput

func (GetLoadBalancerTargetTypeArrayOutput) ToGetLoadBalancerTargetTypeArrayOutputWithContext

func (o GetLoadBalancerTargetTypeArrayOutput) ToGetLoadBalancerTargetTypeArrayOutputWithContext(ctx context.Context) GetLoadBalancerTargetTypeArrayOutput

type GetLoadBalancerTargetTypeInput

type GetLoadBalancerTargetTypeInput interface {
	pulumi.Input

	ToGetLoadBalancerTargetTypeOutput() GetLoadBalancerTargetTypeOutput
	ToGetLoadBalancerTargetTypeOutputWithContext(context.Context) GetLoadBalancerTargetTypeOutput
}

GetLoadBalancerTargetTypeInput is an input type that accepts GetLoadBalancerTargetTypeArgs and GetLoadBalancerTargetTypeOutput values. You can construct a concrete instance of `GetLoadBalancerTargetTypeInput` via:

GetLoadBalancerTargetTypeArgs{...}

type GetLoadBalancerTargetTypeOutput

type GetLoadBalancerTargetTypeOutput struct{ *pulumi.OutputState }

func (GetLoadBalancerTargetTypeOutput) ElementType

func (GetLoadBalancerTargetTypeOutput) LabelSelector

(string) Label Selector to add a group of resources based on the label.

func (GetLoadBalancerTargetTypeOutput) ServerId

(int) ID of the server which should be a target for this Load Balancer.

func (GetLoadBalancerTargetTypeOutput) ToGetLoadBalancerTargetTypeOutput

func (o GetLoadBalancerTargetTypeOutput) ToGetLoadBalancerTargetTypeOutput() GetLoadBalancerTargetTypeOutput

func (GetLoadBalancerTargetTypeOutput) ToGetLoadBalancerTargetTypeOutputWithContext

func (o GetLoadBalancerTargetTypeOutput) ToGetLoadBalancerTargetTypeOutputWithContext(ctx context.Context) GetLoadBalancerTargetTypeOutput

func (GetLoadBalancerTargetTypeOutput) Type

(string) Type of the target. `server` or `labelSelector`

type GetLoadBalancersArgs added in v1.5.0

type GetLoadBalancersArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getLoadBalancers.

type GetLoadBalancersLoadBalancer added in v1.5.0

type GetLoadBalancersLoadBalancer struct {
	Algorithms       []GetLoadBalancersLoadBalancerAlgorithm `pulumi:"algorithms"`
	DeleteProtection bool                                    `pulumi:"deleteProtection"`
	Id               int                                     `pulumi:"id"`
	Ipv4             string                                  `pulumi:"ipv4"`
	Ipv6             string                                  `pulumi:"ipv6"`
	Labels           map[string]interface{}                  `pulumi:"labels"`
	LoadBalancerType string                                  `pulumi:"loadBalancerType"`
	Location         string                                  `pulumi:"location"`
	Name             *string                                 `pulumi:"name"`
	NetworkId        int                                     `pulumi:"networkId"`
	NetworkIp        string                                  `pulumi:"networkIp"`
	NetworkZone      string                                  `pulumi:"networkZone"`
	Services         []GetLoadBalancersLoadBalancerService   `pulumi:"services"`
	Targets          []GetLoadBalancersLoadBalancerTarget    `pulumi:"targets"`
}

type GetLoadBalancersLoadBalancerAlgorithm added in v1.5.0

type GetLoadBalancersLoadBalancerAlgorithm struct {
	Type string `pulumi:"type"`
}

type GetLoadBalancersLoadBalancerAlgorithmArgs added in v1.5.0

type GetLoadBalancersLoadBalancerAlgorithmArgs struct {
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetLoadBalancersLoadBalancerAlgorithmArgs) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerAlgorithmArgs) ToGetLoadBalancersLoadBalancerAlgorithmOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerAlgorithmArgs) ToGetLoadBalancersLoadBalancerAlgorithmOutput() GetLoadBalancersLoadBalancerAlgorithmOutput

func (GetLoadBalancersLoadBalancerAlgorithmArgs) ToGetLoadBalancersLoadBalancerAlgorithmOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerAlgorithmArgs) ToGetLoadBalancersLoadBalancerAlgorithmOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerAlgorithmOutput

type GetLoadBalancersLoadBalancerAlgorithmArray added in v1.5.0

type GetLoadBalancersLoadBalancerAlgorithmArray []GetLoadBalancersLoadBalancerAlgorithmInput

func (GetLoadBalancersLoadBalancerAlgorithmArray) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerAlgorithmArray) ToGetLoadBalancersLoadBalancerAlgorithmArrayOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerAlgorithmArray) ToGetLoadBalancersLoadBalancerAlgorithmArrayOutput() GetLoadBalancersLoadBalancerAlgorithmArrayOutput

func (GetLoadBalancersLoadBalancerAlgorithmArray) ToGetLoadBalancersLoadBalancerAlgorithmArrayOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerAlgorithmArray) ToGetLoadBalancersLoadBalancerAlgorithmArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerAlgorithmArrayOutput

type GetLoadBalancersLoadBalancerAlgorithmArrayInput added in v1.5.0

type GetLoadBalancersLoadBalancerAlgorithmArrayInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerAlgorithmArrayOutput() GetLoadBalancersLoadBalancerAlgorithmArrayOutput
	ToGetLoadBalancersLoadBalancerAlgorithmArrayOutputWithContext(context.Context) GetLoadBalancersLoadBalancerAlgorithmArrayOutput
}

GetLoadBalancersLoadBalancerAlgorithmArrayInput is an input type that accepts GetLoadBalancersLoadBalancerAlgorithmArray and GetLoadBalancersLoadBalancerAlgorithmArrayOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerAlgorithmArrayInput` via:

GetLoadBalancersLoadBalancerAlgorithmArray{ GetLoadBalancersLoadBalancerAlgorithmArgs{...} }

type GetLoadBalancersLoadBalancerAlgorithmArrayOutput added in v1.5.0

type GetLoadBalancersLoadBalancerAlgorithmArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerAlgorithmArrayOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerAlgorithmArrayOutput) Index added in v1.5.0

func (GetLoadBalancersLoadBalancerAlgorithmArrayOutput) ToGetLoadBalancersLoadBalancerAlgorithmArrayOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerAlgorithmArrayOutput) ToGetLoadBalancersLoadBalancerAlgorithmArrayOutput() GetLoadBalancersLoadBalancerAlgorithmArrayOutput

func (GetLoadBalancersLoadBalancerAlgorithmArrayOutput) ToGetLoadBalancersLoadBalancerAlgorithmArrayOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerAlgorithmArrayOutput) ToGetLoadBalancersLoadBalancerAlgorithmArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerAlgorithmArrayOutput

type GetLoadBalancersLoadBalancerAlgorithmInput added in v1.5.0

type GetLoadBalancersLoadBalancerAlgorithmInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerAlgorithmOutput() GetLoadBalancersLoadBalancerAlgorithmOutput
	ToGetLoadBalancersLoadBalancerAlgorithmOutputWithContext(context.Context) GetLoadBalancersLoadBalancerAlgorithmOutput
}

GetLoadBalancersLoadBalancerAlgorithmInput is an input type that accepts GetLoadBalancersLoadBalancerAlgorithmArgs and GetLoadBalancersLoadBalancerAlgorithmOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerAlgorithmInput` via:

GetLoadBalancersLoadBalancerAlgorithmArgs{...}

type GetLoadBalancersLoadBalancerAlgorithmOutput added in v1.5.0

type GetLoadBalancersLoadBalancerAlgorithmOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerAlgorithmOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerAlgorithmOutput) ToGetLoadBalancersLoadBalancerAlgorithmOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerAlgorithmOutput) ToGetLoadBalancersLoadBalancerAlgorithmOutput() GetLoadBalancersLoadBalancerAlgorithmOutput

func (GetLoadBalancersLoadBalancerAlgorithmOutput) ToGetLoadBalancersLoadBalancerAlgorithmOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerAlgorithmOutput) ToGetLoadBalancersLoadBalancerAlgorithmOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerAlgorithmOutput

func (GetLoadBalancersLoadBalancerAlgorithmOutput) Type added in v1.5.0

type GetLoadBalancersLoadBalancerArgs added in v1.5.0

type GetLoadBalancersLoadBalancerArgs struct {
	Algorithms       GetLoadBalancersLoadBalancerAlgorithmArrayInput `pulumi:"algorithms"`
	DeleteProtection pulumi.BoolInput                                `pulumi:"deleteProtection"`
	Id               pulumi.IntInput                                 `pulumi:"id"`
	Ipv4             pulumi.StringInput                              `pulumi:"ipv4"`
	Ipv6             pulumi.StringInput                              `pulumi:"ipv6"`
	Labels           pulumi.MapInput                                 `pulumi:"labels"`
	LoadBalancerType pulumi.StringInput                              `pulumi:"loadBalancerType"`
	Location         pulumi.StringInput                              `pulumi:"location"`
	Name             pulumi.StringPtrInput                           `pulumi:"name"`
	NetworkId        pulumi.IntInput                                 `pulumi:"networkId"`
	NetworkIp        pulumi.StringInput                              `pulumi:"networkIp"`
	NetworkZone      pulumi.StringInput                              `pulumi:"networkZone"`
	Services         GetLoadBalancersLoadBalancerServiceArrayInput   `pulumi:"services"`
	Targets          GetLoadBalancersLoadBalancerTargetArrayInput    `pulumi:"targets"`
}

func (GetLoadBalancersLoadBalancerArgs) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerArgs) ToGetLoadBalancersLoadBalancerOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerArgs) ToGetLoadBalancersLoadBalancerOutput() GetLoadBalancersLoadBalancerOutput

func (GetLoadBalancersLoadBalancerArgs) ToGetLoadBalancersLoadBalancerOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerArgs) ToGetLoadBalancersLoadBalancerOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerOutput

type GetLoadBalancersLoadBalancerArray added in v1.5.0

type GetLoadBalancersLoadBalancerArray []GetLoadBalancersLoadBalancerInput

func (GetLoadBalancersLoadBalancerArray) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerArray) ToGetLoadBalancersLoadBalancerArrayOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerArray) ToGetLoadBalancersLoadBalancerArrayOutput() GetLoadBalancersLoadBalancerArrayOutput

func (GetLoadBalancersLoadBalancerArray) ToGetLoadBalancersLoadBalancerArrayOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerArray) ToGetLoadBalancersLoadBalancerArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerArrayOutput

type GetLoadBalancersLoadBalancerArrayInput added in v1.5.0

type GetLoadBalancersLoadBalancerArrayInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerArrayOutput() GetLoadBalancersLoadBalancerArrayOutput
	ToGetLoadBalancersLoadBalancerArrayOutputWithContext(context.Context) GetLoadBalancersLoadBalancerArrayOutput
}

GetLoadBalancersLoadBalancerArrayInput is an input type that accepts GetLoadBalancersLoadBalancerArray and GetLoadBalancersLoadBalancerArrayOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerArrayInput` via:

GetLoadBalancersLoadBalancerArray{ GetLoadBalancersLoadBalancerArgs{...} }

type GetLoadBalancersLoadBalancerArrayOutput added in v1.5.0

type GetLoadBalancersLoadBalancerArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerArrayOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerArrayOutput) Index added in v1.5.0

func (GetLoadBalancersLoadBalancerArrayOutput) ToGetLoadBalancersLoadBalancerArrayOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerArrayOutput) ToGetLoadBalancersLoadBalancerArrayOutput() GetLoadBalancersLoadBalancerArrayOutput

func (GetLoadBalancersLoadBalancerArrayOutput) ToGetLoadBalancersLoadBalancerArrayOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerArrayOutput) ToGetLoadBalancersLoadBalancerArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerArrayOutput

type GetLoadBalancersLoadBalancerInput added in v1.5.0

type GetLoadBalancersLoadBalancerInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerOutput() GetLoadBalancersLoadBalancerOutput
	ToGetLoadBalancersLoadBalancerOutputWithContext(context.Context) GetLoadBalancersLoadBalancerOutput
}

GetLoadBalancersLoadBalancerInput is an input type that accepts GetLoadBalancersLoadBalancerArgs and GetLoadBalancersLoadBalancerOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerInput` via:

GetLoadBalancersLoadBalancerArgs{...}

type GetLoadBalancersLoadBalancerOutput added in v1.5.0

type GetLoadBalancersLoadBalancerOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerOutput) Algorithms added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) DeleteProtection added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) Id added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) Ipv4 added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) Ipv6 added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) Labels added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) LoadBalancerType added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) Location added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) Name added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) NetworkId added in v1.10.2

func (GetLoadBalancersLoadBalancerOutput) NetworkIp added in v1.10.2

func (GetLoadBalancersLoadBalancerOutput) NetworkZone added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) Services added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) Targets added in v1.5.0

func (GetLoadBalancersLoadBalancerOutput) ToGetLoadBalancersLoadBalancerOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerOutput) ToGetLoadBalancersLoadBalancerOutput() GetLoadBalancersLoadBalancerOutput

func (GetLoadBalancersLoadBalancerOutput) ToGetLoadBalancersLoadBalancerOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerOutput) ToGetLoadBalancersLoadBalancerOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerOutput

type GetLoadBalancersLoadBalancerService added in v1.5.0

type GetLoadBalancersLoadBalancerService struct {
	DestinationPort int                                              `pulumi:"destinationPort"`
	HealthChecks    []GetLoadBalancersLoadBalancerServiceHealthCheck `pulumi:"healthChecks"`
	Https           []GetLoadBalancersLoadBalancerServiceHttp        `pulumi:"https"`
	ListenPort      int                                              `pulumi:"listenPort"`
	Protocol        string                                           `pulumi:"protocol"`
	Proxyprotocol   bool                                             `pulumi:"proxyprotocol"`
}

type GetLoadBalancersLoadBalancerServiceArgs added in v1.5.0

type GetLoadBalancersLoadBalancerServiceArgs struct {
	DestinationPort pulumi.IntInput                                          `pulumi:"destinationPort"`
	HealthChecks    GetLoadBalancersLoadBalancerServiceHealthCheckArrayInput `pulumi:"healthChecks"`
	Https           GetLoadBalancersLoadBalancerServiceHttpArrayInput        `pulumi:"https"`
	ListenPort      pulumi.IntInput                                          `pulumi:"listenPort"`
	Protocol        pulumi.StringInput                                       `pulumi:"protocol"`
	Proxyprotocol   pulumi.BoolInput                                         `pulumi:"proxyprotocol"`
}

func (GetLoadBalancersLoadBalancerServiceArgs) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceArgs) ToGetLoadBalancersLoadBalancerServiceOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceArgs) ToGetLoadBalancersLoadBalancerServiceOutput() GetLoadBalancersLoadBalancerServiceOutput

func (GetLoadBalancersLoadBalancerServiceArgs) ToGetLoadBalancersLoadBalancerServiceOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceArgs) ToGetLoadBalancersLoadBalancerServiceOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceOutput

type GetLoadBalancersLoadBalancerServiceArray added in v1.5.0

type GetLoadBalancersLoadBalancerServiceArray []GetLoadBalancersLoadBalancerServiceInput

func (GetLoadBalancersLoadBalancerServiceArray) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceArray) ToGetLoadBalancersLoadBalancerServiceArrayOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceArray) ToGetLoadBalancersLoadBalancerServiceArrayOutput() GetLoadBalancersLoadBalancerServiceArrayOutput

func (GetLoadBalancersLoadBalancerServiceArray) ToGetLoadBalancersLoadBalancerServiceArrayOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceArray) ToGetLoadBalancersLoadBalancerServiceArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceArrayOutput

type GetLoadBalancersLoadBalancerServiceArrayInput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceArrayInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerServiceArrayOutput() GetLoadBalancersLoadBalancerServiceArrayOutput
	ToGetLoadBalancersLoadBalancerServiceArrayOutputWithContext(context.Context) GetLoadBalancersLoadBalancerServiceArrayOutput
}

GetLoadBalancersLoadBalancerServiceArrayInput is an input type that accepts GetLoadBalancersLoadBalancerServiceArray and GetLoadBalancersLoadBalancerServiceArrayOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerServiceArrayInput` via:

GetLoadBalancersLoadBalancerServiceArray{ GetLoadBalancersLoadBalancerServiceArgs{...} }

type GetLoadBalancersLoadBalancerServiceArrayOutput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerServiceArrayOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceArrayOutput) Index added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceArrayOutput) ToGetLoadBalancersLoadBalancerServiceArrayOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceArrayOutput) ToGetLoadBalancersLoadBalancerServiceArrayOutput() GetLoadBalancersLoadBalancerServiceArrayOutput

func (GetLoadBalancersLoadBalancerServiceArrayOutput) ToGetLoadBalancersLoadBalancerServiceArrayOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceArrayOutput) ToGetLoadBalancersLoadBalancerServiceArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceArrayOutput

type GetLoadBalancersLoadBalancerServiceHealthCheck added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheck struct {
	Https    []GetLoadBalancersLoadBalancerServiceHealthCheckHttp `pulumi:"https"`
	Interval int                                                  `pulumi:"interval"`
	Port     int                                                  `pulumi:"port"`
	Protocol string                                               `pulumi:"protocol"`
	Retries  int                                                  `pulumi:"retries"`
	Timeout  int                                                  `pulumi:"timeout"`
}

type GetLoadBalancersLoadBalancerServiceHealthCheckArgs added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckArgs struct {
	Https    GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayInput `pulumi:"https"`
	Interval pulumi.IntInput                                              `pulumi:"interval"`
	Port     pulumi.IntInput                                              `pulumi:"port"`
	Protocol pulumi.StringInput                                           `pulumi:"protocol"`
	Retries  pulumi.IntInput                                              `pulumi:"retries"`
	Timeout  pulumi.IntInput                                              `pulumi:"timeout"`
}

func (GetLoadBalancersLoadBalancerServiceHealthCheckArgs) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckArgs) ToGetLoadBalancersLoadBalancerServiceHealthCheckOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHealthCheckArgs) ToGetLoadBalancersLoadBalancerServiceHealthCheckOutput() GetLoadBalancersLoadBalancerServiceHealthCheckOutput

func (GetLoadBalancersLoadBalancerServiceHealthCheckArgs) ToGetLoadBalancersLoadBalancerServiceHealthCheckOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHealthCheckArgs) ToGetLoadBalancersLoadBalancerServiceHealthCheckOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckOutput

type GetLoadBalancersLoadBalancerServiceHealthCheckArray added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckArray []GetLoadBalancersLoadBalancerServiceHealthCheckInput

func (GetLoadBalancersLoadBalancerServiceHealthCheckArray) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckArray) ToGetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHealthCheckArray) ToGetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput() GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput

func (GetLoadBalancersLoadBalancerServiceHealthCheckArray) ToGetLoadBalancersLoadBalancerServiceHealthCheckArrayOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHealthCheckArray) ToGetLoadBalancersLoadBalancerServiceHealthCheckArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput

type GetLoadBalancersLoadBalancerServiceHealthCheckArrayInput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckArrayInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput() GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput
	ToGetLoadBalancersLoadBalancerServiceHealthCheckArrayOutputWithContext(context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput
}

GetLoadBalancersLoadBalancerServiceHealthCheckArrayInput is an input type that accepts GetLoadBalancersLoadBalancerServiceHealthCheckArray and GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerServiceHealthCheckArrayInput` via:

GetLoadBalancersLoadBalancerServiceHealthCheckArray{ GetLoadBalancersLoadBalancerServiceHealthCheckArgs{...} }

type GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput) Index added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckArrayOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckArrayOutput

type GetLoadBalancersLoadBalancerServiceHealthCheckHttp added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckHttp struct {
	Domain      string `pulumi:"domain"`
	Path        string `pulumi:"path"`
	Response    string `pulumi:"response"`
	StatusCodes []int  `pulumi:"statusCodes"`
	Tls         bool   `pulumi:"tls"`
}

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpArgs added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpArgs struct {
	Domain      pulumi.StringInput   `pulumi:"domain"`
	Path        pulumi.StringInput   `pulumi:"path"`
	Response    pulumi.StringInput   `pulumi:"response"`
	StatusCodes pulumi.IntArrayInput `pulumi:"statusCodes"`
	Tls         pulumi.BoolInput     `pulumi:"tls"`
}

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArgs) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArgs) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArgs) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHealthCheckHttpArgs) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpArray added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpArray []GetLoadBalancersLoadBalancerServiceHealthCheckHttpInput

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArray) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArray) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHealthCheckHttpArray) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput() GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArray) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHealthCheckHttpArray) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayInput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput() GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput
	ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutputWithContext(context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput
}

GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayInput is an input type that accepts GetLoadBalancersLoadBalancerServiceHealthCheckHttpArray and GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayInput` via:

GetLoadBalancersLoadBalancerServiceHealthCheckHttpArray{ GetLoadBalancersLoadBalancerServiceHealthCheckHttpArgs{...} }

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput) Index added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckHttpArrayOutput

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpInput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput() GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput
	ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpOutputWithContext(context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput
}

GetLoadBalancersLoadBalancerServiceHealthCheckHttpInput is an input type that accepts GetLoadBalancersLoadBalancerServiceHealthCheckHttpArgs and GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerServiceHealthCheckHttpInput` via:

GetLoadBalancersLoadBalancerServiceHealthCheckHttpArgs{...}

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput) Domain added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput) Path added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput) Response added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput) StatusCodes added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput) Tls added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckHttpOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckHttpOutput

type GetLoadBalancersLoadBalancerServiceHealthCheckInput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerServiceHealthCheckOutput() GetLoadBalancersLoadBalancerServiceHealthCheckOutput
	ToGetLoadBalancersLoadBalancerServiceHealthCheckOutputWithContext(context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckOutput
}

GetLoadBalancersLoadBalancerServiceHealthCheckInput is an input type that accepts GetLoadBalancersLoadBalancerServiceHealthCheckArgs and GetLoadBalancersLoadBalancerServiceHealthCheckOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerServiceHealthCheckInput` via:

GetLoadBalancersLoadBalancerServiceHealthCheckArgs{...}

type GetLoadBalancersLoadBalancerServiceHealthCheckOutput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHealthCheckOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerServiceHealthCheckOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckOutput) Https added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckOutput) Interval added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckOutput) Port added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckOutput) Protocol added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckOutput) Retries added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckOutput) Timeout added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckOutput added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHealthCheckOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceHealthCheckOutput) ToGetLoadBalancersLoadBalancerServiceHealthCheckOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHealthCheckOutput

type GetLoadBalancersLoadBalancerServiceHttp added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHttp struct {
	Certificates   []string `pulumi:"certificates"`
	CookieLifetime int      `pulumi:"cookieLifetime"`
	CookieName     string   `pulumi:"cookieName"`
	RedirectHttp   bool     `pulumi:"redirectHttp"`
	StickySessions bool     `pulumi:"stickySessions"`
}

type GetLoadBalancersLoadBalancerServiceHttpArgs added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHttpArgs struct {
	Certificates   pulumi.StringArrayInput `pulumi:"certificates"`
	CookieLifetime pulumi.IntInput         `pulumi:"cookieLifetime"`
	CookieName     pulumi.StringInput      `pulumi:"cookieName"`
	RedirectHttp   pulumi.BoolInput        `pulumi:"redirectHttp"`
	StickySessions pulumi.BoolInput        `pulumi:"stickySessions"`
}

func (GetLoadBalancersLoadBalancerServiceHttpArgs) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpArgs) ToGetLoadBalancersLoadBalancerServiceHttpOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHttpArgs) ToGetLoadBalancersLoadBalancerServiceHttpOutput() GetLoadBalancersLoadBalancerServiceHttpOutput

func (GetLoadBalancersLoadBalancerServiceHttpArgs) ToGetLoadBalancersLoadBalancerServiceHttpOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHttpArgs) ToGetLoadBalancersLoadBalancerServiceHttpOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHttpOutput

type GetLoadBalancersLoadBalancerServiceHttpArray added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHttpArray []GetLoadBalancersLoadBalancerServiceHttpInput

func (GetLoadBalancersLoadBalancerServiceHttpArray) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpArray) ToGetLoadBalancersLoadBalancerServiceHttpArrayOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHttpArray) ToGetLoadBalancersLoadBalancerServiceHttpArrayOutput() GetLoadBalancersLoadBalancerServiceHttpArrayOutput

func (GetLoadBalancersLoadBalancerServiceHttpArray) ToGetLoadBalancersLoadBalancerServiceHttpArrayOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerServiceHttpArray) ToGetLoadBalancersLoadBalancerServiceHttpArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHttpArrayOutput

type GetLoadBalancersLoadBalancerServiceHttpArrayInput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHttpArrayInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerServiceHttpArrayOutput() GetLoadBalancersLoadBalancerServiceHttpArrayOutput
	ToGetLoadBalancersLoadBalancerServiceHttpArrayOutputWithContext(context.Context) GetLoadBalancersLoadBalancerServiceHttpArrayOutput
}

GetLoadBalancersLoadBalancerServiceHttpArrayInput is an input type that accepts GetLoadBalancersLoadBalancerServiceHttpArray and GetLoadBalancersLoadBalancerServiceHttpArrayOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerServiceHttpArrayInput` via:

GetLoadBalancersLoadBalancerServiceHttpArray{ GetLoadBalancersLoadBalancerServiceHttpArgs{...} }

type GetLoadBalancersLoadBalancerServiceHttpArrayOutput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHttpArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerServiceHttpArrayOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpArrayOutput) Index added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpArrayOutput) ToGetLoadBalancersLoadBalancerServiceHttpArrayOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceHttpArrayOutput) ToGetLoadBalancersLoadBalancerServiceHttpArrayOutput() GetLoadBalancersLoadBalancerServiceHttpArrayOutput

func (GetLoadBalancersLoadBalancerServiceHttpArrayOutput) ToGetLoadBalancersLoadBalancerServiceHttpArrayOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceHttpArrayOutput) ToGetLoadBalancersLoadBalancerServiceHttpArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHttpArrayOutput

type GetLoadBalancersLoadBalancerServiceHttpInput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHttpInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerServiceHttpOutput() GetLoadBalancersLoadBalancerServiceHttpOutput
	ToGetLoadBalancersLoadBalancerServiceHttpOutputWithContext(context.Context) GetLoadBalancersLoadBalancerServiceHttpOutput
}

GetLoadBalancersLoadBalancerServiceHttpInput is an input type that accepts GetLoadBalancersLoadBalancerServiceHttpArgs and GetLoadBalancersLoadBalancerServiceHttpOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerServiceHttpInput` via:

GetLoadBalancersLoadBalancerServiceHttpArgs{...}

type GetLoadBalancersLoadBalancerServiceHttpOutput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceHttpOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerServiceHttpOutput) Certificates added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpOutput) CookieLifetime added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpOutput) CookieName added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpOutput) RedirectHttp added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpOutput) StickySessions added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceHttpOutput) ToGetLoadBalancersLoadBalancerServiceHttpOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceHttpOutput) ToGetLoadBalancersLoadBalancerServiceHttpOutput() GetLoadBalancersLoadBalancerServiceHttpOutput

func (GetLoadBalancersLoadBalancerServiceHttpOutput) ToGetLoadBalancersLoadBalancerServiceHttpOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceHttpOutput) ToGetLoadBalancersLoadBalancerServiceHttpOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceHttpOutput

type GetLoadBalancersLoadBalancerServiceInput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerServiceOutput() GetLoadBalancersLoadBalancerServiceOutput
	ToGetLoadBalancersLoadBalancerServiceOutputWithContext(context.Context) GetLoadBalancersLoadBalancerServiceOutput
}

GetLoadBalancersLoadBalancerServiceInput is an input type that accepts GetLoadBalancersLoadBalancerServiceArgs and GetLoadBalancersLoadBalancerServiceOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerServiceInput` via:

GetLoadBalancersLoadBalancerServiceArgs{...}

type GetLoadBalancersLoadBalancerServiceOutput added in v1.5.0

type GetLoadBalancersLoadBalancerServiceOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerServiceOutput) DestinationPort added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceOutput) HealthChecks added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceOutput) Https added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceOutput) ListenPort added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceOutput) Protocol added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceOutput) Proxyprotocol added in v1.5.0

func (GetLoadBalancersLoadBalancerServiceOutput) ToGetLoadBalancersLoadBalancerServiceOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceOutput) ToGetLoadBalancersLoadBalancerServiceOutput() GetLoadBalancersLoadBalancerServiceOutput

func (GetLoadBalancersLoadBalancerServiceOutput) ToGetLoadBalancersLoadBalancerServiceOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerServiceOutput) ToGetLoadBalancersLoadBalancerServiceOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerServiceOutput

type GetLoadBalancersLoadBalancerTarget added in v1.5.0

type GetLoadBalancersLoadBalancerTarget struct {
	LabelSelector string `pulumi:"labelSelector"`
	ServerId      int    `pulumi:"serverId"`
	Type          string `pulumi:"type"`
}

type GetLoadBalancersLoadBalancerTargetArgs added in v1.5.0

type GetLoadBalancersLoadBalancerTargetArgs struct {
	LabelSelector pulumi.StringInput `pulumi:"labelSelector"`
	ServerId      pulumi.IntInput    `pulumi:"serverId"`
	Type          pulumi.StringInput `pulumi:"type"`
}

func (GetLoadBalancersLoadBalancerTargetArgs) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerTargetArgs) ToGetLoadBalancersLoadBalancerTargetOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerTargetArgs) ToGetLoadBalancersLoadBalancerTargetOutput() GetLoadBalancersLoadBalancerTargetOutput

func (GetLoadBalancersLoadBalancerTargetArgs) ToGetLoadBalancersLoadBalancerTargetOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerTargetArgs) ToGetLoadBalancersLoadBalancerTargetOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerTargetOutput

type GetLoadBalancersLoadBalancerTargetArray added in v1.5.0

type GetLoadBalancersLoadBalancerTargetArray []GetLoadBalancersLoadBalancerTargetInput

func (GetLoadBalancersLoadBalancerTargetArray) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerTargetArray) ToGetLoadBalancersLoadBalancerTargetArrayOutput added in v1.5.0

func (i GetLoadBalancersLoadBalancerTargetArray) ToGetLoadBalancersLoadBalancerTargetArrayOutput() GetLoadBalancersLoadBalancerTargetArrayOutput

func (GetLoadBalancersLoadBalancerTargetArray) ToGetLoadBalancersLoadBalancerTargetArrayOutputWithContext added in v1.5.0

func (i GetLoadBalancersLoadBalancerTargetArray) ToGetLoadBalancersLoadBalancerTargetArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerTargetArrayOutput

type GetLoadBalancersLoadBalancerTargetArrayInput added in v1.5.0

type GetLoadBalancersLoadBalancerTargetArrayInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerTargetArrayOutput() GetLoadBalancersLoadBalancerTargetArrayOutput
	ToGetLoadBalancersLoadBalancerTargetArrayOutputWithContext(context.Context) GetLoadBalancersLoadBalancerTargetArrayOutput
}

GetLoadBalancersLoadBalancerTargetArrayInput is an input type that accepts GetLoadBalancersLoadBalancerTargetArray and GetLoadBalancersLoadBalancerTargetArrayOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerTargetArrayInput` via:

GetLoadBalancersLoadBalancerTargetArray{ GetLoadBalancersLoadBalancerTargetArgs{...} }

type GetLoadBalancersLoadBalancerTargetArrayOutput added in v1.5.0

type GetLoadBalancersLoadBalancerTargetArrayOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerTargetArrayOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerTargetArrayOutput) Index added in v1.5.0

func (GetLoadBalancersLoadBalancerTargetArrayOutput) ToGetLoadBalancersLoadBalancerTargetArrayOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerTargetArrayOutput) ToGetLoadBalancersLoadBalancerTargetArrayOutput() GetLoadBalancersLoadBalancerTargetArrayOutput

func (GetLoadBalancersLoadBalancerTargetArrayOutput) ToGetLoadBalancersLoadBalancerTargetArrayOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerTargetArrayOutput) ToGetLoadBalancersLoadBalancerTargetArrayOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerTargetArrayOutput

type GetLoadBalancersLoadBalancerTargetInput added in v1.5.0

type GetLoadBalancersLoadBalancerTargetInput interface {
	pulumi.Input

	ToGetLoadBalancersLoadBalancerTargetOutput() GetLoadBalancersLoadBalancerTargetOutput
	ToGetLoadBalancersLoadBalancerTargetOutputWithContext(context.Context) GetLoadBalancersLoadBalancerTargetOutput
}

GetLoadBalancersLoadBalancerTargetInput is an input type that accepts GetLoadBalancersLoadBalancerTargetArgs and GetLoadBalancersLoadBalancerTargetOutput values. You can construct a concrete instance of `GetLoadBalancersLoadBalancerTargetInput` via:

GetLoadBalancersLoadBalancerTargetArgs{...}

type GetLoadBalancersLoadBalancerTargetOutput added in v1.5.0

type GetLoadBalancersLoadBalancerTargetOutput struct{ *pulumi.OutputState }

func (GetLoadBalancersLoadBalancerTargetOutput) ElementType added in v1.5.0

func (GetLoadBalancersLoadBalancerTargetOutput) LabelSelector added in v1.5.0

func (GetLoadBalancersLoadBalancerTargetOutput) ServerId added in v1.5.0

func (GetLoadBalancersLoadBalancerTargetOutput) ToGetLoadBalancersLoadBalancerTargetOutput added in v1.5.0

func (o GetLoadBalancersLoadBalancerTargetOutput) ToGetLoadBalancersLoadBalancerTargetOutput() GetLoadBalancersLoadBalancerTargetOutput

func (GetLoadBalancersLoadBalancerTargetOutput) ToGetLoadBalancersLoadBalancerTargetOutputWithContext added in v1.5.0

func (o GetLoadBalancersLoadBalancerTargetOutput) ToGetLoadBalancersLoadBalancerTargetOutputWithContext(ctx context.Context) GetLoadBalancersLoadBalancerTargetOutput

func (GetLoadBalancersLoadBalancerTargetOutput) Type added in v1.5.0

type GetLoadBalancersOutputArgs added in v1.6.0

type GetLoadBalancersOutputArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getLoadBalancers.

func (GetLoadBalancersOutputArgs) ElementType added in v1.6.0

func (GetLoadBalancersOutputArgs) ElementType() reflect.Type

type GetLoadBalancersResult added in v1.5.0

type GetLoadBalancersResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// (list) List of all matching load balancers. See `data.hcloud_load_balancer` for schema.
	LoadBalancers []GetLoadBalancersLoadBalancer `pulumi:"loadBalancers"`
	WithSelector  *string                        `pulumi:"withSelector"`
}

A collection of values returned by getLoadBalancers.

func GetLoadBalancers added in v1.5.0

func GetLoadBalancers(ctx *pulumi.Context, args *GetLoadBalancersArgs, opts ...pulumi.InvokeOption) (*GetLoadBalancersResult, error)

Provides details about multiple Hetzner Cloud Load Balancers.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetLoadBalancers(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetLoadBalancers(ctx, &hcloud.GetLoadBalancersArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetLoadBalancersResultOutput added in v1.6.0

type GetLoadBalancersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getLoadBalancers.

func GetLoadBalancersOutput added in v1.6.0

func (GetLoadBalancersResultOutput) ElementType added in v1.6.0

func (GetLoadBalancersResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetLoadBalancersResultOutput) LoadBalancers added in v1.6.0

(list) List of all matching load balancers. See `data.hcloud_load_balancer` for schema.

func (GetLoadBalancersResultOutput) ToGetLoadBalancersResultOutput added in v1.6.0

func (o GetLoadBalancersResultOutput) ToGetLoadBalancersResultOutput() GetLoadBalancersResultOutput

func (GetLoadBalancersResultOutput) ToGetLoadBalancersResultOutputWithContext added in v1.6.0

func (o GetLoadBalancersResultOutput) ToGetLoadBalancersResultOutputWithContext(ctx context.Context) GetLoadBalancersResultOutput

func (GetLoadBalancersResultOutput) WithSelector added in v1.6.0

type GetLocationArgs

type GetLocationArgs struct {
	// ID of the location.
	Id *int `pulumi:"id"`
	// Name of the location.
	Name *string `pulumi:"name"`
}

A collection of arguments for invoking getLocation.

type GetLocationOutputArgs added in v1.6.0

type GetLocationOutputArgs struct {
	// ID of the location.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// Name of the location.
	Name pulumi.StringPtrInput `pulumi:"name"`
}

A collection of arguments for invoking getLocation.

func (GetLocationOutputArgs) ElementType added in v1.6.0

func (GetLocationOutputArgs) ElementType() reflect.Type

type GetLocationResult

type GetLocationResult struct {
	// (string) City of the location.
	City string `pulumi:"city"`
	// (string) Country of the location.
	Country string `pulumi:"country"`
	// (string) Description of the location.
	Description string `pulumi:"description"`
	// (int) Unique ID of the location.
	Id int `pulumi:"id"`
	// (float) Latitude of the city.
	Latitude float64 `pulumi:"latitude"`
	// (float) Longitude of the city.
	Longitude float64 `pulumi:"longitude"`
	// (string) Name of the location.
	Name string `pulumi:"name"`
	// (string) Network Zone of the location.
	NetworkZone string `pulumi:"networkZone"`
}

A collection of values returned by getLocation.

func GetLocation

func GetLocation(ctx *pulumi.Context, args *GetLocationArgs, opts ...pulumi.InvokeOption) (*GetLocationResult, error)

Provides details about a specific Hetzner Cloud Location. Use this resource to get detailed information about specific location.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetLocation(ctx, &hcloud.GetLocationArgs{
			Name: pulumi.StringRef("fsn1"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetLocation(ctx, &hcloud.GetLocationArgs{
			Id: pulumi.IntRef(1),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetLocationResultOutput added in v1.6.0

type GetLocationResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getLocation.

func GetLocationOutput added in v1.6.0

func GetLocationOutput(ctx *pulumi.Context, args GetLocationOutputArgs, opts ...pulumi.InvokeOption) GetLocationResultOutput

func (GetLocationResultOutput) City added in v1.6.0

(string) City of the location.

func (GetLocationResultOutput) Country added in v1.6.0

(string) Country of the location.

func (GetLocationResultOutput) Description added in v1.6.0

(string) Description of the location.

func (GetLocationResultOutput) ElementType added in v1.6.0

func (GetLocationResultOutput) ElementType() reflect.Type

func (GetLocationResultOutput) Id added in v1.6.0

(int) Unique ID of the location.

func (GetLocationResultOutput) Latitude added in v1.6.0

(float) Latitude of the city.

func (GetLocationResultOutput) Longitude added in v1.6.0

(float) Longitude of the city.

func (GetLocationResultOutput) Name added in v1.6.0

(string) Name of the location.

func (GetLocationResultOutput) NetworkZone added in v1.8.0

(string) Network Zone of the location.

func (GetLocationResultOutput) ToGetLocationResultOutput added in v1.6.0

func (o GetLocationResultOutput) ToGetLocationResultOutput() GetLocationResultOutput

func (GetLocationResultOutput) ToGetLocationResultOutputWithContext added in v1.6.0

func (o GetLocationResultOutput) ToGetLocationResultOutputWithContext(ctx context.Context) GetLocationResultOutput

type GetLocationsArgs

type GetLocationsArgs struct {
	// (list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.
	//
	// Deprecated: Use locations list instead
	Descriptions []string `pulumi:"descriptions"`
	Id           *string  `pulumi:"id"`
	// (list) List of unique location identifiers. **Deprecated**: Use `locations` attribute instead.
	//
	// Deprecated: Use locations list instead
	LocationIds []string `pulumi:"locationIds"`
	// (list) List of location names. **Deprecated**: Use `locations` attribute instead.
	//
	// Deprecated: Use locations list instead
	Names []string `pulumi:"names"`
}

A collection of arguments for invoking getLocations.

type GetLocationsLocation added in v1.5.0

type GetLocationsLocation struct {
	City        string  `pulumi:"city"`
	Country     string  `pulumi:"country"`
	Description string  `pulumi:"description"`
	Id          int     `pulumi:"id"`
	Latitude    float64 `pulumi:"latitude"`
	Longitude   float64 `pulumi:"longitude"`
	Name        string  `pulumi:"name"`
	NetworkZone string  `pulumi:"networkZone"`
}

type GetLocationsLocationArgs added in v1.5.0

type GetLocationsLocationArgs struct {
	City        pulumi.StringInput  `pulumi:"city"`
	Country     pulumi.StringInput  `pulumi:"country"`
	Description pulumi.StringInput  `pulumi:"description"`
	Id          pulumi.IntInput     `pulumi:"id"`
	Latitude    pulumi.Float64Input `pulumi:"latitude"`
	Longitude   pulumi.Float64Input `pulumi:"longitude"`
	Name        pulumi.StringInput  `pulumi:"name"`
	NetworkZone pulumi.StringInput  `pulumi:"networkZone"`
}

func (GetLocationsLocationArgs) ElementType added in v1.5.0

func (GetLocationsLocationArgs) ElementType() reflect.Type

func (GetLocationsLocationArgs) ToGetLocationsLocationOutput added in v1.5.0

func (i GetLocationsLocationArgs) ToGetLocationsLocationOutput() GetLocationsLocationOutput

func (GetLocationsLocationArgs) ToGetLocationsLocationOutputWithContext added in v1.5.0

func (i GetLocationsLocationArgs) ToGetLocationsLocationOutputWithContext(ctx context.Context) GetLocationsLocationOutput

type GetLocationsLocationArray added in v1.5.0

type GetLocationsLocationArray []GetLocationsLocationInput

func (GetLocationsLocationArray) ElementType added in v1.5.0

func (GetLocationsLocationArray) ElementType() reflect.Type

func (GetLocationsLocationArray) ToGetLocationsLocationArrayOutput added in v1.5.0

func (i GetLocationsLocationArray) ToGetLocationsLocationArrayOutput() GetLocationsLocationArrayOutput

func (GetLocationsLocationArray) ToGetLocationsLocationArrayOutputWithContext added in v1.5.0

func (i GetLocationsLocationArray) ToGetLocationsLocationArrayOutputWithContext(ctx context.Context) GetLocationsLocationArrayOutput

type GetLocationsLocationArrayInput added in v1.5.0

type GetLocationsLocationArrayInput interface {
	pulumi.Input

	ToGetLocationsLocationArrayOutput() GetLocationsLocationArrayOutput
	ToGetLocationsLocationArrayOutputWithContext(context.Context) GetLocationsLocationArrayOutput
}

GetLocationsLocationArrayInput is an input type that accepts GetLocationsLocationArray and GetLocationsLocationArrayOutput values. You can construct a concrete instance of `GetLocationsLocationArrayInput` via:

GetLocationsLocationArray{ GetLocationsLocationArgs{...} }

type GetLocationsLocationArrayOutput added in v1.5.0

type GetLocationsLocationArrayOutput struct{ *pulumi.OutputState }

func (GetLocationsLocationArrayOutput) ElementType added in v1.5.0

func (GetLocationsLocationArrayOutput) Index added in v1.5.0

func (GetLocationsLocationArrayOutput) ToGetLocationsLocationArrayOutput added in v1.5.0

func (o GetLocationsLocationArrayOutput) ToGetLocationsLocationArrayOutput() GetLocationsLocationArrayOutput

func (GetLocationsLocationArrayOutput) ToGetLocationsLocationArrayOutputWithContext added in v1.5.0

func (o GetLocationsLocationArrayOutput) ToGetLocationsLocationArrayOutputWithContext(ctx context.Context) GetLocationsLocationArrayOutput

type GetLocationsLocationInput added in v1.5.0

type GetLocationsLocationInput interface {
	pulumi.Input

	ToGetLocationsLocationOutput() GetLocationsLocationOutput
	ToGetLocationsLocationOutputWithContext(context.Context) GetLocationsLocationOutput
}

GetLocationsLocationInput is an input type that accepts GetLocationsLocationArgs and GetLocationsLocationOutput values. You can construct a concrete instance of `GetLocationsLocationInput` via:

GetLocationsLocationArgs{...}

type GetLocationsLocationOutput added in v1.5.0

type GetLocationsLocationOutput struct{ *pulumi.OutputState }

func (GetLocationsLocationOutput) City added in v1.5.0

func (GetLocationsLocationOutput) Country added in v1.5.0

func (GetLocationsLocationOutput) Description added in v1.5.0

func (GetLocationsLocationOutput) ElementType added in v1.5.0

func (GetLocationsLocationOutput) ElementType() reflect.Type

func (GetLocationsLocationOutput) Id added in v1.5.0

func (GetLocationsLocationOutput) Latitude added in v1.5.0

func (GetLocationsLocationOutput) Longitude added in v1.5.0

func (GetLocationsLocationOutput) Name added in v1.5.0

func (GetLocationsLocationOutput) NetworkZone added in v1.8.0

func (GetLocationsLocationOutput) ToGetLocationsLocationOutput added in v1.5.0

func (o GetLocationsLocationOutput) ToGetLocationsLocationOutput() GetLocationsLocationOutput

func (GetLocationsLocationOutput) ToGetLocationsLocationOutputWithContext added in v1.5.0

func (o GetLocationsLocationOutput) ToGetLocationsLocationOutputWithContext(ctx context.Context) GetLocationsLocationOutput

type GetLocationsOutputArgs added in v1.6.0

type GetLocationsOutputArgs struct {
	// (list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.
	//
	// Deprecated: Use locations list instead
	Descriptions pulumi.StringArrayInput `pulumi:"descriptions"`
	Id           pulumi.StringPtrInput   `pulumi:"id"`
	// (list) List of unique location identifiers. **Deprecated**: Use `locations` attribute instead.
	//
	// Deprecated: Use locations list instead
	LocationIds pulumi.StringArrayInput `pulumi:"locationIds"`
	// (list) List of location names. **Deprecated**: Use `locations` attribute instead.
	//
	// Deprecated: Use locations list instead
	Names pulumi.StringArrayInput `pulumi:"names"`
}

A collection of arguments for invoking getLocations.

func (GetLocationsOutputArgs) ElementType added in v1.6.0

func (GetLocationsOutputArgs) ElementType() reflect.Type

type GetLocationsResult

type GetLocationsResult struct {
	// (list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.
	//
	// Deprecated: Use locations list instead
	Descriptions []string `pulumi:"descriptions"`
	Id           *string  `pulumi:"id"`
	// (list) List of unique location identifiers. **Deprecated**: Use `locations` attribute instead.
	//
	// Deprecated: Use locations list instead
	LocationIds []string `pulumi:"locationIds"`
	// (list) List of all locations. See `data.hcloud_location` for schema.
	Locations []GetLocationsLocation `pulumi:"locations"`
	// (list) List of location names. **Deprecated**: Use `locations` attribute instead.
	//
	// Deprecated: Use locations list instead
	Names []string `pulumi:"names"`
}

A collection of values returned by getLocations.

func GetLocations

func GetLocations(ctx *pulumi.Context, args *GetLocationsArgs, opts ...pulumi.InvokeOption) (*GetLocationsResult, error)

Provides a list of available Hetzner Cloud Locations. This resource may be useful to create highly available infrastructure, distributed across several locations.

type GetLocationsResultOutput added in v1.6.0

type GetLocationsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getLocations.

func GetLocationsOutput added in v1.6.0

func GetLocationsOutput(ctx *pulumi.Context, args GetLocationsOutputArgs, opts ...pulumi.InvokeOption) GetLocationsResultOutput

func (GetLocationsResultOutput) Descriptions deprecated added in v1.6.0

(list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.

Deprecated: Use locations list instead

func (GetLocationsResultOutput) ElementType added in v1.6.0

func (GetLocationsResultOutput) ElementType() reflect.Type

func (GetLocationsResultOutput) Id added in v1.6.0

func (GetLocationsResultOutput) LocationIds deprecated added in v1.6.0

(list) List of unique location identifiers. **Deprecated**: Use `locations` attribute instead.

Deprecated: Use locations list instead

func (GetLocationsResultOutput) Locations added in v1.6.0

(list) List of all locations. See `data.hcloud_location` for schema.

func (GetLocationsResultOutput) Names deprecated added in v1.6.0

(list) List of location names. **Deprecated**: Use `locations` attribute instead.

Deprecated: Use locations list instead

func (GetLocationsResultOutput) ToGetLocationsResultOutput added in v1.6.0

func (o GetLocationsResultOutput) ToGetLocationsResultOutput() GetLocationsResultOutput

func (GetLocationsResultOutput) ToGetLocationsResultOutputWithContext added in v1.6.0

func (o GetLocationsResultOutput) ToGetLocationsResultOutputWithContext(ctx context.Context) GetLocationsResultOutput

type GetNetworksArgs added in v1.5.0

type GetNetworksArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getNetworks.

type GetNetworksNetwork added in v1.5.0

type GetNetworksNetwork struct {
	DeleteProtection bool `pulumi:"deleteProtection"`
	// Indicates if the routes from this network should be exposed to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
	ExposeRoutesToVswitch bool                   `pulumi:"exposeRoutesToVswitch"`
	Id                    int                    `pulumi:"id"`
	IpRange               string                 `pulumi:"ipRange"`
	Labels                map[string]interface{} `pulumi:"labels"`
	Name                  string                 `pulumi:"name"`
}

type GetNetworksNetworkArgs added in v1.5.0

type GetNetworksNetworkArgs struct {
	DeleteProtection pulumi.BoolInput `pulumi:"deleteProtection"`
	// Indicates if the routes from this network should be exposed to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
	ExposeRoutesToVswitch pulumi.BoolInput   `pulumi:"exposeRoutesToVswitch"`
	Id                    pulumi.IntInput    `pulumi:"id"`
	IpRange               pulumi.StringInput `pulumi:"ipRange"`
	Labels                pulumi.MapInput    `pulumi:"labels"`
	Name                  pulumi.StringInput `pulumi:"name"`
}

func (GetNetworksNetworkArgs) ElementType added in v1.5.0

func (GetNetworksNetworkArgs) ElementType() reflect.Type

func (GetNetworksNetworkArgs) ToGetNetworksNetworkOutput added in v1.5.0

func (i GetNetworksNetworkArgs) ToGetNetworksNetworkOutput() GetNetworksNetworkOutput

func (GetNetworksNetworkArgs) ToGetNetworksNetworkOutputWithContext added in v1.5.0

func (i GetNetworksNetworkArgs) ToGetNetworksNetworkOutputWithContext(ctx context.Context) GetNetworksNetworkOutput

type GetNetworksNetworkArray added in v1.5.0

type GetNetworksNetworkArray []GetNetworksNetworkInput

func (GetNetworksNetworkArray) ElementType added in v1.5.0

func (GetNetworksNetworkArray) ElementType() reflect.Type

func (GetNetworksNetworkArray) ToGetNetworksNetworkArrayOutput added in v1.5.0

func (i GetNetworksNetworkArray) ToGetNetworksNetworkArrayOutput() GetNetworksNetworkArrayOutput

func (GetNetworksNetworkArray) ToGetNetworksNetworkArrayOutputWithContext added in v1.5.0

func (i GetNetworksNetworkArray) ToGetNetworksNetworkArrayOutputWithContext(ctx context.Context) GetNetworksNetworkArrayOutput

type GetNetworksNetworkArrayInput added in v1.5.0

type GetNetworksNetworkArrayInput interface {
	pulumi.Input

	ToGetNetworksNetworkArrayOutput() GetNetworksNetworkArrayOutput
	ToGetNetworksNetworkArrayOutputWithContext(context.Context) GetNetworksNetworkArrayOutput
}

GetNetworksNetworkArrayInput is an input type that accepts GetNetworksNetworkArray and GetNetworksNetworkArrayOutput values. You can construct a concrete instance of `GetNetworksNetworkArrayInput` via:

GetNetworksNetworkArray{ GetNetworksNetworkArgs{...} }

type GetNetworksNetworkArrayOutput added in v1.5.0

type GetNetworksNetworkArrayOutput struct{ *pulumi.OutputState }

func (GetNetworksNetworkArrayOutput) ElementType added in v1.5.0

func (GetNetworksNetworkArrayOutput) Index added in v1.5.0

func (GetNetworksNetworkArrayOutput) ToGetNetworksNetworkArrayOutput added in v1.5.0

func (o GetNetworksNetworkArrayOutput) ToGetNetworksNetworkArrayOutput() GetNetworksNetworkArrayOutput

func (GetNetworksNetworkArrayOutput) ToGetNetworksNetworkArrayOutputWithContext added in v1.5.0

func (o GetNetworksNetworkArrayOutput) ToGetNetworksNetworkArrayOutputWithContext(ctx context.Context) GetNetworksNetworkArrayOutput

type GetNetworksNetworkInput added in v1.5.0

type GetNetworksNetworkInput interface {
	pulumi.Input

	ToGetNetworksNetworkOutput() GetNetworksNetworkOutput
	ToGetNetworksNetworkOutputWithContext(context.Context) GetNetworksNetworkOutput
}

GetNetworksNetworkInput is an input type that accepts GetNetworksNetworkArgs and GetNetworksNetworkOutput values. You can construct a concrete instance of `GetNetworksNetworkInput` via:

GetNetworksNetworkArgs{...}

type GetNetworksNetworkOutput added in v1.5.0

type GetNetworksNetworkOutput struct{ *pulumi.OutputState }

func (GetNetworksNetworkOutput) DeleteProtection added in v1.5.0

func (o GetNetworksNetworkOutput) DeleteProtection() pulumi.BoolOutput

func (GetNetworksNetworkOutput) ElementType added in v1.5.0

func (GetNetworksNetworkOutput) ElementType() reflect.Type

func (GetNetworksNetworkOutput) ExposeRoutesToVswitch added in v1.13.0

func (o GetNetworksNetworkOutput) ExposeRoutesToVswitch() pulumi.BoolOutput

Indicates if the routes from this network should be exposed to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.

func (GetNetworksNetworkOutput) Id added in v1.5.0

func (GetNetworksNetworkOutput) IpRange added in v1.5.0

func (GetNetworksNetworkOutput) Labels added in v1.5.0

func (GetNetworksNetworkOutput) Name added in v1.5.0

func (GetNetworksNetworkOutput) ToGetNetworksNetworkOutput added in v1.5.0

func (o GetNetworksNetworkOutput) ToGetNetworksNetworkOutput() GetNetworksNetworkOutput

func (GetNetworksNetworkOutput) ToGetNetworksNetworkOutputWithContext added in v1.5.0

func (o GetNetworksNetworkOutput) ToGetNetworksNetworkOutputWithContext(ctx context.Context) GetNetworksNetworkOutput

type GetNetworksOutputArgs added in v1.6.0

type GetNetworksOutputArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getNetworks.

func (GetNetworksOutputArgs) ElementType added in v1.6.0

func (GetNetworksOutputArgs) ElementType() reflect.Type

type GetNetworksResult added in v1.5.0

type GetNetworksResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// (list) List of all matching networks. See `data.hcloud_network` for schema.
	Networks     []GetNetworksNetwork `pulumi:"networks"`
	WithSelector *string              `pulumi:"withSelector"`
}

A collection of values returned by getNetworks.

func GetNetworks added in v1.5.0

func GetNetworks(ctx *pulumi.Context, args *GetNetworksArgs, opts ...pulumi.InvokeOption) (*GetNetworksResult, error)

Provides details about multiple Hetzner Cloud Networks.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.LookupNetwork(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupNetwork(ctx, &hcloud.LookupNetworkArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetNetworksResultOutput added in v1.6.0

type GetNetworksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNetworks.

func GetNetworksOutput added in v1.6.0

func GetNetworksOutput(ctx *pulumi.Context, args GetNetworksOutputArgs, opts ...pulumi.InvokeOption) GetNetworksResultOutput

func (GetNetworksResultOutput) ElementType added in v1.6.0

func (GetNetworksResultOutput) ElementType() reflect.Type

func (GetNetworksResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetNetworksResultOutput) Networks added in v1.6.0

(list) List of all matching networks. See `data.hcloud_network` for schema.

func (GetNetworksResultOutput) ToGetNetworksResultOutput added in v1.6.0

func (o GetNetworksResultOutput) ToGetNetworksResultOutput() GetNetworksResultOutput

func (GetNetworksResultOutput) ToGetNetworksResultOutputWithContext added in v1.6.0

func (o GetNetworksResultOutput) ToGetNetworksResultOutputWithContext(ctx context.Context) GetNetworksResultOutput

func (GetNetworksResultOutput) WithSelector added in v1.6.0

type GetPlacementGroupsArgs added in v1.5.0

type GetPlacementGroupsArgs struct {
	// Sorts list by date.
	MostRecent *bool `pulumi:"mostRecent"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getPlacementGroups.

type GetPlacementGroupsOutputArgs added in v1.6.0

type GetPlacementGroupsOutputArgs struct {
	// Sorts list by date.
	MostRecent pulumi.BoolPtrInput `pulumi:"mostRecent"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getPlacementGroups.

func (GetPlacementGroupsOutputArgs) ElementType added in v1.6.0

type GetPlacementGroupsPlacementGroup added in v1.5.0

type GetPlacementGroupsPlacementGroup struct {
	Id      int                    `pulumi:"id"`
	Labels  map[string]interface{} `pulumi:"labels"`
	Name    string                 `pulumi:"name"`
	Servers []int                  `pulumi:"servers"`
	Type    string                 `pulumi:"type"`
}

type GetPlacementGroupsPlacementGroupArgs added in v1.5.0

type GetPlacementGroupsPlacementGroupArgs struct {
	Id      pulumi.IntInput      `pulumi:"id"`
	Labels  pulumi.MapInput      `pulumi:"labels"`
	Name    pulumi.StringInput   `pulumi:"name"`
	Servers pulumi.IntArrayInput `pulumi:"servers"`
	Type    pulumi.StringInput   `pulumi:"type"`
}

func (GetPlacementGroupsPlacementGroupArgs) ElementType added in v1.5.0

func (GetPlacementGroupsPlacementGroupArgs) ToGetPlacementGroupsPlacementGroupOutput added in v1.5.0

func (i GetPlacementGroupsPlacementGroupArgs) ToGetPlacementGroupsPlacementGroupOutput() GetPlacementGroupsPlacementGroupOutput

func (GetPlacementGroupsPlacementGroupArgs) ToGetPlacementGroupsPlacementGroupOutputWithContext added in v1.5.0

func (i GetPlacementGroupsPlacementGroupArgs) ToGetPlacementGroupsPlacementGroupOutputWithContext(ctx context.Context) GetPlacementGroupsPlacementGroupOutput

type GetPlacementGroupsPlacementGroupArray added in v1.5.0

type GetPlacementGroupsPlacementGroupArray []GetPlacementGroupsPlacementGroupInput

func (GetPlacementGroupsPlacementGroupArray) ElementType added in v1.5.0

func (GetPlacementGroupsPlacementGroupArray) ToGetPlacementGroupsPlacementGroupArrayOutput added in v1.5.0

func (i GetPlacementGroupsPlacementGroupArray) ToGetPlacementGroupsPlacementGroupArrayOutput() GetPlacementGroupsPlacementGroupArrayOutput

func (GetPlacementGroupsPlacementGroupArray) ToGetPlacementGroupsPlacementGroupArrayOutputWithContext added in v1.5.0

func (i GetPlacementGroupsPlacementGroupArray) ToGetPlacementGroupsPlacementGroupArrayOutputWithContext(ctx context.Context) GetPlacementGroupsPlacementGroupArrayOutput

type GetPlacementGroupsPlacementGroupArrayInput added in v1.5.0

type GetPlacementGroupsPlacementGroupArrayInput interface {
	pulumi.Input

	ToGetPlacementGroupsPlacementGroupArrayOutput() GetPlacementGroupsPlacementGroupArrayOutput
	ToGetPlacementGroupsPlacementGroupArrayOutputWithContext(context.Context) GetPlacementGroupsPlacementGroupArrayOutput
}

GetPlacementGroupsPlacementGroupArrayInput is an input type that accepts GetPlacementGroupsPlacementGroupArray and GetPlacementGroupsPlacementGroupArrayOutput values. You can construct a concrete instance of `GetPlacementGroupsPlacementGroupArrayInput` via:

GetPlacementGroupsPlacementGroupArray{ GetPlacementGroupsPlacementGroupArgs{...} }

type GetPlacementGroupsPlacementGroupArrayOutput added in v1.5.0

type GetPlacementGroupsPlacementGroupArrayOutput struct{ *pulumi.OutputState }

func (GetPlacementGroupsPlacementGroupArrayOutput) ElementType added in v1.5.0

func (GetPlacementGroupsPlacementGroupArrayOutput) Index added in v1.5.0

func (GetPlacementGroupsPlacementGroupArrayOutput) ToGetPlacementGroupsPlacementGroupArrayOutput added in v1.5.0

func (o GetPlacementGroupsPlacementGroupArrayOutput) ToGetPlacementGroupsPlacementGroupArrayOutput() GetPlacementGroupsPlacementGroupArrayOutput

func (GetPlacementGroupsPlacementGroupArrayOutput) ToGetPlacementGroupsPlacementGroupArrayOutputWithContext added in v1.5.0

func (o GetPlacementGroupsPlacementGroupArrayOutput) ToGetPlacementGroupsPlacementGroupArrayOutputWithContext(ctx context.Context) GetPlacementGroupsPlacementGroupArrayOutput

type GetPlacementGroupsPlacementGroupInput added in v1.5.0

type GetPlacementGroupsPlacementGroupInput interface {
	pulumi.Input

	ToGetPlacementGroupsPlacementGroupOutput() GetPlacementGroupsPlacementGroupOutput
	ToGetPlacementGroupsPlacementGroupOutputWithContext(context.Context) GetPlacementGroupsPlacementGroupOutput
}

GetPlacementGroupsPlacementGroupInput is an input type that accepts GetPlacementGroupsPlacementGroupArgs and GetPlacementGroupsPlacementGroupOutput values. You can construct a concrete instance of `GetPlacementGroupsPlacementGroupInput` via:

GetPlacementGroupsPlacementGroupArgs{...}

type GetPlacementGroupsPlacementGroupOutput added in v1.5.0

type GetPlacementGroupsPlacementGroupOutput struct{ *pulumi.OutputState }

func (GetPlacementGroupsPlacementGroupOutput) ElementType added in v1.5.0

func (GetPlacementGroupsPlacementGroupOutput) Id added in v1.5.0

func (GetPlacementGroupsPlacementGroupOutput) Labels added in v1.5.0

func (GetPlacementGroupsPlacementGroupOutput) Name added in v1.5.0

func (GetPlacementGroupsPlacementGroupOutput) Servers added in v1.5.0

func (GetPlacementGroupsPlacementGroupOutput) ToGetPlacementGroupsPlacementGroupOutput added in v1.5.0

func (o GetPlacementGroupsPlacementGroupOutput) ToGetPlacementGroupsPlacementGroupOutput() GetPlacementGroupsPlacementGroupOutput

func (GetPlacementGroupsPlacementGroupOutput) ToGetPlacementGroupsPlacementGroupOutputWithContext added in v1.5.0

func (o GetPlacementGroupsPlacementGroupOutput) ToGetPlacementGroupsPlacementGroupOutputWithContext(ctx context.Context) GetPlacementGroupsPlacementGroupOutput

func (GetPlacementGroupsPlacementGroupOutput) Type added in v1.5.0

type GetPlacementGroupsResult added in v1.5.0

type GetPlacementGroupsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string `pulumi:"id"`
	MostRecent *bool  `pulumi:"mostRecent"`
	// (list) List of all matching placement groups. See `data.hcloud_placement_group` for schema.
	PlacementGroups []GetPlacementGroupsPlacementGroup `pulumi:"placementGroups"`
	WithSelector    *string                            `pulumi:"withSelector"`
}

A collection of values returned by getPlacementGroups.

func GetPlacementGroups added in v1.5.0

func GetPlacementGroups(ctx *pulumi.Context, args *GetPlacementGroupsArgs, opts ...pulumi.InvokeOption) (*GetPlacementGroupsResult, error)

Provides details about multiple Hetzner Cloud Placement Groups.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetPlacementGroups(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetPlacementGroups(ctx, &hcloud.GetPlacementGroupsArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetPlacementGroupsResultOutput added in v1.6.0

type GetPlacementGroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPlacementGroups.

func GetPlacementGroupsOutput added in v1.6.0

func (GetPlacementGroupsResultOutput) ElementType added in v1.6.0

func (GetPlacementGroupsResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetPlacementGroupsResultOutput) MostRecent added in v1.6.0

func (GetPlacementGroupsResultOutput) PlacementGroups added in v1.6.0

(list) List of all matching placement groups. See `data.hcloud_placement_group` for schema.

func (GetPlacementGroupsResultOutput) ToGetPlacementGroupsResultOutput added in v1.6.0

func (o GetPlacementGroupsResultOutput) ToGetPlacementGroupsResultOutput() GetPlacementGroupsResultOutput

func (GetPlacementGroupsResultOutput) ToGetPlacementGroupsResultOutputWithContext added in v1.6.0

func (o GetPlacementGroupsResultOutput) ToGetPlacementGroupsResultOutputWithContext(ctx context.Context) GetPlacementGroupsResultOutput

func (GetPlacementGroupsResultOutput) WithSelector added in v1.6.0

type GetPrimaryIpsArgs added in v1.9.0

type GetPrimaryIpsArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getPrimaryIps.

type GetPrimaryIpsOutputArgs added in v1.9.0

type GetPrimaryIpsOutputArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getPrimaryIps.

func (GetPrimaryIpsOutputArgs) ElementType added in v1.9.0

func (GetPrimaryIpsOutputArgs) ElementType() reflect.Type

type GetPrimaryIpsPrimaryIp added in v1.9.0

type GetPrimaryIpsPrimaryIp struct {
	AssigneeId       int                    `pulumi:"assigneeId"`
	AssigneeType     string                 `pulumi:"assigneeType"`
	AutoDelete       bool                   `pulumi:"autoDelete"`
	Datacenter       string                 `pulumi:"datacenter"`
	DeleteProtection bool                   `pulumi:"deleteProtection"`
	Id               int                    `pulumi:"id"`
	IpAddress        string                 `pulumi:"ipAddress"`
	IpNetwork        string                 `pulumi:"ipNetwork"`
	Labels           map[string]interface{} `pulumi:"labels"`
	Name             *string                `pulumi:"name"`
	Type             string                 `pulumi:"type"`
}

type GetPrimaryIpsPrimaryIpArgs added in v1.9.0

type GetPrimaryIpsPrimaryIpArgs struct {
	AssigneeId       pulumi.IntInput       `pulumi:"assigneeId"`
	AssigneeType     pulumi.StringInput    `pulumi:"assigneeType"`
	AutoDelete       pulumi.BoolInput      `pulumi:"autoDelete"`
	Datacenter       pulumi.StringInput    `pulumi:"datacenter"`
	DeleteProtection pulumi.BoolInput      `pulumi:"deleteProtection"`
	Id               pulumi.IntInput       `pulumi:"id"`
	IpAddress        pulumi.StringInput    `pulumi:"ipAddress"`
	IpNetwork        pulumi.StringInput    `pulumi:"ipNetwork"`
	Labels           pulumi.MapInput       `pulumi:"labels"`
	Name             pulumi.StringPtrInput `pulumi:"name"`
	Type             pulumi.StringInput    `pulumi:"type"`
}

func (GetPrimaryIpsPrimaryIpArgs) ElementType added in v1.9.0

func (GetPrimaryIpsPrimaryIpArgs) ElementType() reflect.Type

func (GetPrimaryIpsPrimaryIpArgs) ToGetPrimaryIpsPrimaryIpOutput added in v1.9.0

func (i GetPrimaryIpsPrimaryIpArgs) ToGetPrimaryIpsPrimaryIpOutput() GetPrimaryIpsPrimaryIpOutput

func (GetPrimaryIpsPrimaryIpArgs) ToGetPrimaryIpsPrimaryIpOutputWithContext added in v1.9.0

func (i GetPrimaryIpsPrimaryIpArgs) ToGetPrimaryIpsPrimaryIpOutputWithContext(ctx context.Context) GetPrimaryIpsPrimaryIpOutput

type GetPrimaryIpsPrimaryIpArray added in v1.9.0

type GetPrimaryIpsPrimaryIpArray []GetPrimaryIpsPrimaryIpInput

func (GetPrimaryIpsPrimaryIpArray) ElementType added in v1.9.0

func (GetPrimaryIpsPrimaryIpArray) ToGetPrimaryIpsPrimaryIpArrayOutput added in v1.9.0

func (i GetPrimaryIpsPrimaryIpArray) ToGetPrimaryIpsPrimaryIpArrayOutput() GetPrimaryIpsPrimaryIpArrayOutput

func (GetPrimaryIpsPrimaryIpArray) ToGetPrimaryIpsPrimaryIpArrayOutputWithContext added in v1.9.0

func (i GetPrimaryIpsPrimaryIpArray) ToGetPrimaryIpsPrimaryIpArrayOutputWithContext(ctx context.Context) GetPrimaryIpsPrimaryIpArrayOutput

type GetPrimaryIpsPrimaryIpArrayInput added in v1.9.0

type GetPrimaryIpsPrimaryIpArrayInput interface {
	pulumi.Input

	ToGetPrimaryIpsPrimaryIpArrayOutput() GetPrimaryIpsPrimaryIpArrayOutput
	ToGetPrimaryIpsPrimaryIpArrayOutputWithContext(context.Context) GetPrimaryIpsPrimaryIpArrayOutput
}

GetPrimaryIpsPrimaryIpArrayInput is an input type that accepts GetPrimaryIpsPrimaryIpArray and GetPrimaryIpsPrimaryIpArrayOutput values. You can construct a concrete instance of `GetPrimaryIpsPrimaryIpArrayInput` via:

GetPrimaryIpsPrimaryIpArray{ GetPrimaryIpsPrimaryIpArgs{...} }

type GetPrimaryIpsPrimaryIpArrayOutput added in v1.9.0

type GetPrimaryIpsPrimaryIpArrayOutput struct{ *pulumi.OutputState }

func (GetPrimaryIpsPrimaryIpArrayOutput) ElementType added in v1.9.0

func (GetPrimaryIpsPrimaryIpArrayOutput) Index added in v1.9.0

func (GetPrimaryIpsPrimaryIpArrayOutput) ToGetPrimaryIpsPrimaryIpArrayOutput added in v1.9.0

func (o GetPrimaryIpsPrimaryIpArrayOutput) ToGetPrimaryIpsPrimaryIpArrayOutput() GetPrimaryIpsPrimaryIpArrayOutput

func (GetPrimaryIpsPrimaryIpArrayOutput) ToGetPrimaryIpsPrimaryIpArrayOutputWithContext added in v1.9.0

func (o GetPrimaryIpsPrimaryIpArrayOutput) ToGetPrimaryIpsPrimaryIpArrayOutputWithContext(ctx context.Context) GetPrimaryIpsPrimaryIpArrayOutput

type GetPrimaryIpsPrimaryIpInput added in v1.9.0

type GetPrimaryIpsPrimaryIpInput interface {
	pulumi.Input

	ToGetPrimaryIpsPrimaryIpOutput() GetPrimaryIpsPrimaryIpOutput
	ToGetPrimaryIpsPrimaryIpOutputWithContext(context.Context) GetPrimaryIpsPrimaryIpOutput
}

GetPrimaryIpsPrimaryIpInput is an input type that accepts GetPrimaryIpsPrimaryIpArgs and GetPrimaryIpsPrimaryIpOutput values. You can construct a concrete instance of `GetPrimaryIpsPrimaryIpInput` via:

GetPrimaryIpsPrimaryIpArgs{...}

type GetPrimaryIpsPrimaryIpOutput added in v1.9.0

type GetPrimaryIpsPrimaryIpOutput struct{ *pulumi.OutputState }

func (GetPrimaryIpsPrimaryIpOutput) AssigneeId added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) AssigneeType added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) AutoDelete added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) Datacenter added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) DeleteProtection added in v1.9.0

func (o GetPrimaryIpsPrimaryIpOutput) DeleteProtection() pulumi.BoolOutput

func (GetPrimaryIpsPrimaryIpOutput) ElementType added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) Id added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) IpAddress added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) IpNetwork added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) Labels added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) Name added in v1.9.0

func (GetPrimaryIpsPrimaryIpOutput) ToGetPrimaryIpsPrimaryIpOutput added in v1.9.0

func (o GetPrimaryIpsPrimaryIpOutput) ToGetPrimaryIpsPrimaryIpOutput() GetPrimaryIpsPrimaryIpOutput

func (GetPrimaryIpsPrimaryIpOutput) ToGetPrimaryIpsPrimaryIpOutputWithContext added in v1.9.0

func (o GetPrimaryIpsPrimaryIpOutput) ToGetPrimaryIpsPrimaryIpOutputWithContext(ctx context.Context) GetPrimaryIpsPrimaryIpOutput

func (GetPrimaryIpsPrimaryIpOutput) Type added in v1.9.0

type GetPrimaryIpsResult added in v1.9.0

type GetPrimaryIpsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// (list) List of all matching primary ips. See `data.hcloud_primary_ip` for schema.
	PrimaryIps   []GetPrimaryIpsPrimaryIp `pulumi:"primaryIps"`
	WithSelector *string                  `pulumi:"withSelector"`
}

A collection of values returned by getPrimaryIps.

func GetPrimaryIps added in v1.9.0

func GetPrimaryIps(ctx *pulumi.Context, args *GetPrimaryIpsArgs, opts ...pulumi.InvokeOption) (*GetPrimaryIpsResult, error)

Provides details about multiple Hetzner Cloud Primary IPs.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetPrimaryIps(ctx, &hcloud.GetPrimaryIpsArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetPrimaryIpsResultOutput added in v1.9.0

type GetPrimaryIpsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPrimaryIps.

func GetPrimaryIpsOutput added in v1.9.0

func GetPrimaryIpsOutput(ctx *pulumi.Context, args GetPrimaryIpsOutputArgs, opts ...pulumi.InvokeOption) GetPrimaryIpsResultOutput

func (GetPrimaryIpsResultOutput) ElementType added in v1.9.0

func (GetPrimaryIpsResultOutput) ElementType() reflect.Type

func (GetPrimaryIpsResultOutput) Id added in v1.9.0

The provider-assigned unique ID for this managed resource.

func (GetPrimaryIpsResultOutput) PrimaryIps added in v1.9.0

(list) List of all matching primary ips. See `data.hcloud_primary_ip` for schema.

func (GetPrimaryIpsResultOutput) ToGetPrimaryIpsResultOutput added in v1.9.0

func (o GetPrimaryIpsResultOutput) ToGetPrimaryIpsResultOutput() GetPrimaryIpsResultOutput

func (GetPrimaryIpsResultOutput) ToGetPrimaryIpsResultOutputWithContext added in v1.9.0

func (o GetPrimaryIpsResultOutput) ToGetPrimaryIpsResultOutputWithContext(ctx context.Context) GetPrimaryIpsResultOutput

func (GetPrimaryIpsResultOutput) WithSelector added in v1.9.0

type GetServerTypeArgs added in v0.5.0

type GetServerTypeArgs struct {
	// (Optional, string) Date when the deprecation of the server type was announced. Only set when the server type is deprecated.
	DeprecationAnnounced *string `pulumi:"deprecationAnnounced"`
	// ID of the server_type.
	Id *int `pulumi:"id"`
	// Name of the server_type.
	Name *string `pulumi:"name"`
	// (Optional, string) Date when the server type will not be available for new servers. Only set when the server type is deprecated.
	UnavailableAfter *string `pulumi:"unavailableAfter"`
}

A collection of arguments for invoking getServerType.

type GetServerTypeOutputArgs added in v1.6.0

type GetServerTypeOutputArgs struct {
	// (Optional, string) Date when the deprecation of the server type was announced. Only set when the server type is deprecated.
	DeprecationAnnounced pulumi.StringPtrInput `pulumi:"deprecationAnnounced"`
	// ID of the server_type.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// Name of the server_type.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// (Optional, string) Date when the server type will not be available for new servers. Only set when the server type is deprecated.
	UnavailableAfter pulumi.StringPtrInput `pulumi:"unavailableAfter"`
}

A collection of arguments for invoking getServerType.

func (GetServerTypeOutputArgs) ElementType added in v1.6.0

func (GetServerTypeOutputArgs) ElementType() reflect.Type

type GetServerTypeResult added in v0.5.0

type GetServerTypeResult struct {
	// (string) Architecture of the server_type.
	Architecture string `pulumi:"architecture"`
	// (int) Number of cpu cores a Server of this type will have.
	Cores   int    `pulumi:"cores"`
	CpuType string `pulumi:"cpuType"`
	// (Optional, string) Date when the deprecation of the server type was announced. Only set when the server type is deprecated.
	DeprecationAnnounced string `pulumi:"deprecationAnnounced"`
	// (string) Description of the server_type.
	Description string `pulumi:"description"`
	// (int) Disk size a Server of this type will have in GB.
	Disk int `pulumi:"disk"`
	// (int) Unique ID of the server_type.
	Id int `pulumi:"id"`
	// (int) Free traffic per month in bytes.
	IncludedTraffic int `pulumi:"includedTraffic"`
	// (bool) Deprecation status of server type.
	IsDeprecated bool `pulumi:"isDeprecated"`
	// (int) Memory a Server of this type will have in GB.
	Memory int `pulumi:"memory"`
	// (string) Name of the server_type.
	Name        string `pulumi:"name"`
	StorageType string `pulumi:"storageType"`
	// (Optional, string) Date when the server type will not be available for new servers. Only set when the server type is deprecated.
	UnavailableAfter string `pulumi:"unavailableAfter"`
}

A collection of values returned by getServerType.

func GetServerType added in v0.5.0

func GetServerType(ctx *pulumi.Context, args *GetServerTypeArgs, opts ...pulumi.InvokeOption) (*GetServerTypeResult, error)

Provides details about a specific Hetzner Cloud Server Type. Use this resource to get detailed information about specific Server Type.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetServerType(ctx, &hcloud.GetServerTypeArgs{
			Name: pulumi.StringRef("cx11"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetServerType(ctx, &hcloud.GetServerTypeArgs{
			Id: pulumi.IntRef(1),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetServerTypeResultOutput added in v1.6.0

type GetServerTypeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerType.

func GetServerTypeOutput added in v1.6.0

func GetServerTypeOutput(ctx *pulumi.Context, args GetServerTypeOutputArgs, opts ...pulumi.InvokeOption) GetServerTypeResultOutput

func (GetServerTypeResultOutput) Architecture added in v1.11.0

(string) Architecture of the server_type.

func (GetServerTypeResultOutput) Cores added in v1.6.0

(int) Number of cpu cores a Server of this type will have.

func (GetServerTypeResultOutput) CpuType added in v1.6.0

func (GetServerTypeResultOutput) DeprecationAnnounced added in v1.13.0

func (o GetServerTypeResultOutput) DeprecationAnnounced() pulumi.StringOutput

(Optional, string) Date when the deprecation of the server type was announced. Only set when the server type is deprecated.

func (GetServerTypeResultOutput) Description added in v1.6.0

(string) Description of the server_type.

func (GetServerTypeResultOutput) Disk added in v1.6.0

(int) Disk size a Server of this type will have in GB.

func (GetServerTypeResultOutput) ElementType added in v1.6.0

func (GetServerTypeResultOutput) ElementType() reflect.Type

func (GetServerTypeResultOutput) Id added in v1.6.0

(int) Unique ID of the server_type.

func (GetServerTypeResultOutput) IncludedTraffic added in v1.12.0

func (o GetServerTypeResultOutput) IncludedTraffic() pulumi.IntOutput

(int) Free traffic per month in bytes.

func (GetServerTypeResultOutput) IsDeprecated added in v1.13.0

func (o GetServerTypeResultOutput) IsDeprecated() pulumi.BoolOutput

(bool) Deprecation status of server type.

func (GetServerTypeResultOutput) Memory added in v1.6.0

(int) Memory a Server of this type will have in GB.

func (GetServerTypeResultOutput) Name added in v1.6.0

(string) Name of the server_type.

func (GetServerTypeResultOutput) StorageType added in v1.6.0

func (GetServerTypeResultOutput) ToGetServerTypeResultOutput added in v1.6.0

func (o GetServerTypeResultOutput) ToGetServerTypeResultOutput() GetServerTypeResultOutput

func (GetServerTypeResultOutput) ToGetServerTypeResultOutputWithContext added in v1.6.0

func (o GetServerTypeResultOutput) ToGetServerTypeResultOutputWithContext(ctx context.Context) GetServerTypeResultOutput

func (GetServerTypeResultOutput) UnavailableAfter added in v1.13.0

func (o GetServerTypeResultOutput) UnavailableAfter() pulumi.StringOutput

(Optional, string) Date when the server type will not be available for new servers. Only set when the server type is deprecated.

type GetServerTypesArgs added in v0.5.0

type GetServerTypesArgs struct {
	// Deprecated: Use serverTypes list instead
	ServerTypeIds []string `pulumi:"serverTypeIds"`
}

A collection of arguments for invoking getServerTypes.

type GetServerTypesOutputArgs added in v1.6.0

type GetServerTypesOutputArgs struct {
	// Deprecated: Use serverTypes list instead
	ServerTypeIds pulumi.StringArrayInput `pulumi:"serverTypeIds"`
}

A collection of arguments for invoking getServerTypes.

func (GetServerTypesOutputArgs) ElementType added in v1.6.0

func (GetServerTypesOutputArgs) ElementType() reflect.Type

type GetServerTypesResult added in v0.5.0

type GetServerTypesResult struct {
	// Deprecated: Use serverTypes list instead
	Descriptions []string `pulumi:"descriptions"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Deprecated: Use serverTypes list instead
	Names []string `pulumi:"names"`
	// Deprecated: Use serverTypes list instead
	ServerTypeIds []string `pulumi:"serverTypeIds"`
	// (list) List of all server types. See `data.hcloud_type` for schema.
	ServerTypes []GetServerTypesServerType `pulumi:"serverTypes"`
}

A collection of values returned by getServerTypes.

func GetServerTypes added in v0.5.0

func GetServerTypes(ctx *pulumi.Context, args *GetServerTypesArgs, opts ...pulumi.InvokeOption) (*GetServerTypesResult, error)

Provides a list of available Hetzner Cloud Server Types.

type GetServerTypesResultOutput added in v1.6.0

type GetServerTypesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerTypes.

func GetServerTypesOutput added in v1.6.0

func GetServerTypesOutput(ctx *pulumi.Context, args GetServerTypesOutputArgs, opts ...pulumi.InvokeOption) GetServerTypesResultOutput

func (GetServerTypesResultOutput) Descriptions deprecated added in v1.6.0

Deprecated: Use serverTypes list instead

func (GetServerTypesResultOutput) ElementType added in v1.6.0

func (GetServerTypesResultOutput) ElementType() reflect.Type

func (GetServerTypesResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetServerTypesResultOutput) Names deprecated added in v1.6.0

Deprecated: Use serverTypes list instead

func (GetServerTypesResultOutput) ServerTypeIds deprecated added in v1.6.0

Deprecated: Use serverTypes list instead

func (GetServerTypesResultOutput) ServerTypes added in v1.6.0

(list) List of all server types. See `data.hcloud_type` for schema.

func (GetServerTypesResultOutput) ToGetServerTypesResultOutput added in v1.6.0

func (o GetServerTypesResultOutput) ToGetServerTypesResultOutput() GetServerTypesResultOutput

func (GetServerTypesResultOutput) ToGetServerTypesResultOutputWithContext added in v1.6.0

func (o GetServerTypesResultOutput) ToGetServerTypesResultOutputWithContext(ctx context.Context) GetServerTypesResultOutput

type GetServerTypesServerType added in v1.5.0

type GetServerTypesServerType struct {
	Architecture         string `pulumi:"architecture"`
	Cores                int    `pulumi:"cores"`
	CpuType              string `pulumi:"cpuType"`
	DeprecationAnnounced string `pulumi:"deprecationAnnounced"`
	Description          string `pulumi:"description"`
	Disk                 int    `pulumi:"disk"`
	Id                   int    `pulumi:"id"`
	IncludedTraffic      int    `pulumi:"includedTraffic"`
	IsDeprecated         bool   `pulumi:"isDeprecated"`
	Memory               int    `pulumi:"memory"`
	Name                 string `pulumi:"name"`
	StorageType          string `pulumi:"storageType"`
	UnavailableAfter     string `pulumi:"unavailableAfter"`
}

type GetServerTypesServerTypeArgs added in v1.5.0

type GetServerTypesServerTypeArgs struct {
	Architecture         pulumi.StringInput `pulumi:"architecture"`
	Cores                pulumi.IntInput    `pulumi:"cores"`
	CpuType              pulumi.StringInput `pulumi:"cpuType"`
	DeprecationAnnounced pulumi.StringInput `pulumi:"deprecationAnnounced"`
	Description          pulumi.StringInput `pulumi:"description"`
	Disk                 pulumi.IntInput    `pulumi:"disk"`
	Id                   pulumi.IntInput    `pulumi:"id"`
	IncludedTraffic      pulumi.IntInput    `pulumi:"includedTraffic"`
	IsDeprecated         pulumi.BoolInput   `pulumi:"isDeprecated"`
	Memory               pulumi.IntInput    `pulumi:"memory"`
	Name                 pulumi.StringInput `pulumi:"name"`
	StorageType          pulumi.StringInput `pulumi:"storageType"`
	UnavailableAfter     pulumi.StringInput `pulumi:"unavailableAfter"`
}

func (GetServerTypesServerTypeArgs) ElementType added in v1.5.0

func (GetServerTypesServerTypeArgs) ToGetServerTypesServerTypeOutput added in v1.5.0

func (i GetServerTypesServerTypeArgs) ToGetServerTypesServerTypeOutput() GetServerTypesServerTypeOutput

func (GetServerTypesServerTypeArgs) ToGetServerTypesServerTypeOutputWithContext added in v1.5.0

func (i GetServerTypesServerTypeArgs) ToGetServerTypesServerTypeOutputWithContext(ctx context.Context) GetServerTypesServerTypeOutput

type GetServerTypesServerTypeArray added in v1.5.0

type GetServerTypesServerTypeArray []GetServerTypesServerTypeInput

func (GetServerTypesServerTypeArray) ElementType added in v1.5.0

func (GetServerTypesServerTypeArray) ToGetServerTypesServerTypeArrayOutput added in v1.5.0

func (i GetServerTypesServerTypeArray) ToGetServerTypesServerTypeArrayOutput() GetServerTypesServerTypeArrayOutput

func (GetServerTypesServerTypeArray) ToGetServerTypesServerTypeArrayOutputWithContext added in v1.5.0

func (i GetServerTypesServerTypeArray) ToGetServerTypesServerTypeArrayOutputWithContext(ctx context.Context) GetServerTypesServerTypeArrayOutput

type GetServerTypesServerTypeArrayInput added in v1.5.0

type GetServerTypesServerTypeArrayInput interface {
	pulumi.Input

	ToGetServerTypesServerTypeArrayOutput() GetServerTypesServerTypeArrayOutput
	ToGetServerTypesServerTypeArrayOutputWithContext(context.Context) GetServerTypesServerTypeArrayOutput
}

GetServerTypesServerTypeArrayInput is an input type that accepts GetServerTypesServerTypeArray and GetServerTypesServerTypeArrayOutput values. You can construct a concrete instance of `GetServerTypesServerTypeArrayInput` via:

GetServerTypesServerTypeArray{ GetServerTypesServerTypeArgs{...} }

type GetServerTypesServerTypeArrayOutput added in v1.5.0

type GetServerTypesServerTypeArrayOutput struct{ *pulumi.OutputState }

func (GetServerTypesServerTypeArrayOutput) ElementType added in v1.5.0

func (GetServerTypesServerTypeArrayOutput) Index added in v1.5.0

func (GetServerTypesServerTypeArrayOutput) ToGetServerTypesServerTypeArrayOutput added in v1.5.0

func (o GetServerTypesServerTypeArrayOutput) ToGetServerTypesServerTypeArrayOutput() GetServerTypesServerTypeArrayOutput

func (GetServerTypesServerTypeArrayOutput) ToGetServerTypesServerTypeArrayOutputWithContext added in v1.5.0

func (o GetServerTypesServerTypeArrayOutput) ToGetServerTypesServerTypeArrayOutputWithContext(ctx context.Context) GetServerTypesServerTypeArrayOutput

type GetServerTypesServerTypeInput added in v1.5.0

type GetServerTypesServerTypeInput interface {
	pulumi.Input

	ToGetServerTypesServerTypeOutput() GetServerTypesServerTypeOutput
	ToGetServerTypesServerTypeOutputWithContext(context.Context) GetServerTypesServerTypeOutput
}

GetServerTypesServerTypeInput is an input type that accepts GetServerTypesServerTypeArgs and GetServerTypesServerTypeOutput values. You can construct a concrete instance of `GetServerTypesServerTypeInput` via:

GetServerTypesServerTypeArgs{...}

type GetServerTypesServerTypeOutput added in v1.5.0

type GetServerTypesServerTypeOutput struct{ *pulumi.OutputState }

func (GetServerTypesServerTypeOutput) Architecture added in v1.11.0

func (GetServerTypesServerTypeOutput) Cores added in v1.5.0

func (GetServerTypesServerTypeOutput) CpuType added in v1.5.0

func (GetServerTypesServerTypeOutput) DeprecationAnnounced added in v1.13.0

func (o GetServerTypesServerTypeOutput) DeprecationAnnounced() pulumi.StringOutput

func (GetServerTypesServerTypeOutput) Description added in v1.5.0

func (GetServerTypesServerTypeOutput) Disk added in v1.5.0

func (GetServerTypesServerTypeOutput) ElementType added in v1.5.0

func (GetServerTypesServerTypeOutput) Id added in v1.5.0

func (GetServerTypesServerTypeOutput) IncludedTraffic added in v1.12.0

func (o GetServerTypesServerTypeOutput) IncludedTraffic() pulumi.IntOutput

func (GetServerTypesServerTypeOutput) IsDeprecated added in v1.13.0

func (GetServerTypesServerTypeOutput) Memory added in v1.5.0

func (GetServerTypesServerTypeOutput) Name added in v1.5.0

func (GetServerTypesServerTypeOutput) StorageType added in v1.5.0

func (GetServerTypesServerTypeOutput) ToGetServerTypesServerTypeOutput added in v1.5.0

func (o GetServerTypesServerTypeOutput) ToGetServerTypesServerTypeOutput() GetServerTypesServerTypeOutput

func (GetServerTypesServerTypeOutput) ToGetServerTypesServerTypeOutputWithContext added in v1.5.0

func (o GetServerTypesServerTypeOutput) ToGetServerTypesServerTypeOutputWithContext(ctx context.Context) GetServerTypesServerTypeOutput

func (GetServerTypesServerTypeOutput) UnavailableAfter added in v1.13.0

func (o GetServerTypesServerTypeOutput) UnavailableAfter() pulumi.StringOutput

type GetServersArgs added in v1.5.0

type GetServersArgs struct {
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector *string `pulumi:"withSelector"`
	// List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
	WithStatuses []string `pulumi:"withStatuses"`
}

A collection of arguments for invoking getServers.

type GetServersOutputArgs added in v1.6.0

type GetServersOutputArgs struct {
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
	// List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
	WithStatuses pulumi.StringArrayInput `pulumi:"withStatuses"`
}

A collection of arguments for invoking getServers.

func (GetServersOutputArgs) ElementType added in v1.6.0

func (GetServersOutputArgs) ElementType() reflect.Type

type GetServersResult added in v1.5.0

type GetServersResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// (list) List of all matching servers. See `data.hcloud_server` for schema.
	Servers      []GetServersServer `pulumi:"servers"`
	WithSelector *string            `pulumi:"withSelector"`
	WithStatuses []string           `pulumi:"withStatuses"`
}

A collection of values returned by getServers.

func GetServers added in v1.5.0

func GetServers(ctx *pulumi.Context, args *GetServersArgs, opts ...pulumi.InvokeOption) (*GetServersResult, error)

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetServers(ctx, &hcloud.GetServersArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetServersResultOutput added in v1.6.0

type GetServersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServers.

func GetServersOutput added in v1.6.0

func GetServersOutput(ctx *pulumi.Context, args GetServersOutputArgs, opts ...pulumi.InvokeOption) GetServersResultOutput

func (GetServersResultOutput) ElementType added in v1.6.0

func (GetServersResultOutput) ElementType() reflect.Type

func (GetServersResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetServersResultOutput) Servers added in v1.6.0

(list) List of all matching servers. See `data.hcloud_server` for schema.

func (GetServersResultOutput) ToGetServersResultOutput added in v1.6.0

func (o GetServersResultOutput) ToGetServersResultOutput() GetServersResultOutput

func (GetServersResultOutput) ToGetServersResultOutputWithContext added in v1.6.0

func (o GetServersResultOutput) ToGetServersResultOutputWithContext(ctx context.Context) GetServersResultOutput

func (GetServersResultOutput) WithSelector added in v1.6.0

func (GetServersResultOutput) WithStatuses added in v1.6.0

type GetServersServer added in v1.5.0

type GetServersServer struct {
	BackupWindow      string                 `pulumi:"backupWindow"`
	Backups           bool                   `pulumi:"backups"`
	Datacenter        string                 `pulumi:"datacenter"`
	DeleteProtection  bool                   `pulumi:"deleteProtection"`
	FirewallIds       []int                  `pulumi:"firewallIds"`
	Id                int                    `pulumi:"id"`
	Image             string                 `pulumi:"image"`
	Ipv4Address       string                 `pulumi:"ipv4Address"`
	Ipv6Address       string                 `pulumi:"ipv6Address"`
	Ipv6Network       string                 `pulumi:"ipv6Network"`
	Iso               string                 `pulumi:"iso"`
	Labels            map[string]interface{} `pulumi:"labels"`
	Location          string                 `pulumi:"location"`
	Name              string                 `pulumi:"name"`
	PlacementGroupId  *int                   `pulumi:"placementGroupId"`
	PrimaryDiskSize   int                    `pulumi:"primaryDiskSize"`
	RebuildProtection bool                   `pulumi:"rebuildProtection"`
	Rescue            string                 `pulumi:"rescue"`
	ServerType        string                 `pulumi:"serverType"`
	Status            string                 `pulumi:"status"`
}

type GetServersServerArgs added in v1.5.0

type GetServersServerArgs struct {
	BackupWindow      pulumi.StringInput   `pulumi:"backupWindow"`
	Backups           pulumi.BoolInput     `pulumi:"backups"`
	Datacenter        pulumi.StringInput   `pulumi:"datacenter"`
	DeleteProtection  pulumi.BoolInput     `pulumi:"deleteProtection"`
	FirewallIds       pulumi.IntArrayInput `pulumi:"firewallIds"`
	Id                pulumi.IntInput      `pulumi:"id"`
	Image             pulumi.StringInput   `pulumi:"image"`
	Ipv4Address       pulumi.StringInput   `pulumi:"ipv4Address"`
	Ipv6Address       pulumi.StringInput   `pulumi:"ipv6Address"`
	Ipv6Network       pulumi.StringInput   `pulumi:"ipv6Network"`
	Iso               pulumi.StringInput   `pulumi:"iso"`
	Labels            pulumi.MapInput      `pulumi:"labels"`
	Location          pulumi.StringInput   `pulumi:"location"`
	Name              pulumi.StringInput   `pulumi:"name"`
	PlacementGroupId  pulumi.IntPtrInput   `pulumi:"placementGroupId"`
	PrimaryDiskSize   pulumi.IntInput      `pulumi:"primaryDiskSize"`
	RebuildProtection pulumi.BoolInput     `pulumi:"rebuildProtection"`
	Rescue            pulumi.StringInput   `pulumi:"rescue"`
	ServerType        pulumi.StringInput   `pulumi:"serverType"`
	Status            pulumi.StringInput   `pulumi:"status"`
}

func (GetServersServerArgs) ElementType added in v1.5.0

func (GetServersServerArgs) ElementType() reflect.Type

func (GetServersServerArgs) ToGetServersServerOutput added in v1.5.0

func (i GetServersServerArgs) ToGetServersServerOutput() GetServersServerOutput

func (GetServersServerArgs) ToGetServersServerOutputWithContext added in v1.5.0

func (i GetServersServerArgs) ToGetServersServerOutputWithContext(ctx context.Context) GetServersServerOutput

type GetServersServerArray added in v1.5.0

type GetServersServerArray []GetServersServerInput

func (GetServersServerArray) ElementType added in v1.5.0

func (GetServersServerArray) ElementType() reflect.Type

func (GetServersServerArray) ToGetServersServerArrayOutput added in v1.5.0

func (i GetServersServerArray) ToGetServersServerArrayOutput() GetServersServerArrayOutput

func (GetServersServerArray) ToGetServersServerArrayOutputWithContext added in v1.5.0

func (i GetServersServerArray) ToGetServersServerArrayOutputWithContext(ctx context.Context) GetServersServerArrayOutput

type GetServersServerArrayInput added in v1.5.0

type GetServersServerArrayInput interface {
	pulumi.Input

	ToGetServersServerArrayOutput() GetServersServerArrayOutput
	ToGetServersServerArrayOutputWithContext(context.Context) GetServersServerArrayOutput
}

GetServersServerArrayInput is an input type that accepts GetServersServerArray and GetServersServerArrayOutput values. You can construct a concrete instance of `GetServersServerArrayInput` via:

GetServersServerArray{ GetServersServerArgs{...} }

type GetServersServerArrayOutput added in v1.5.0

type GetServersServerArrayOutput struct{ *pulumi.OutputState }

func (GetServersServerArrayOutput) ElementType added in v1.5.0

func (GetServersServerArrayOutput) Index added in v1.5.0

func (GetServersServerArrayOutput) ToGetServersServerArrayOutput added in v1.5.0

func (o GetServersServerArrayOutput) ToGetServersServerArrayOutput() GetServersServerArrayOutput

func (GetServersServerArrayOutput) ToGetServersServerArrayOutputWithContext added in v1.5.0

func (o GetServersServerArrayOutput) ToGetServersServerArrayOutputWithContext(ctx context.Context) GetServersServerArrayOutput

type GetServersServerInput added in v1.5.0

type GetServersServerInput interface {
	pulumi.Input

	ToGetServersServerOutput() GetServersServerOutput
	ToGetServersServerOutputWithContext(context.Context) GetServersServerOutput
}

GetServersServerInput is an input type that accepts GetServersServerArgs and GetServersServerOutput values. You can construct a concrete instance of `GetServersServerInput` via:

GetServersServerArgs{...}

type GetServersServerOutput added in v1.5.0

type GetServersServerOutput struct{ *pulumi.OutputState }

func (GetServersServerOutput) BackupWindow added in v1.5.0

func (o GetServersServerOutput) BackupWindow() pulumi.StringOutput

func (GetServersServerOutput) Backups added in v1.5.0

func (GetServersServerOutput) Datacenter added in v1.5.0

func (GetServersServerOutput) DeleteProtection added in v1.5.0

func (o GetServersServerOutput) DeleteProtection() pulumi.BoolOutput

func (GetServersServerOutput) ElementType added in v1.5.0

func (GetServersServerOutput) ElementType() reflect.Type

func (GetServersServerOutput) FirewallIds added in v1.5.0

func (GetServersServerOutput) Id added in v1.5.0

func (GetServersServerOutput) Image added in v1.5.0

func (GetServersServerOutput) Ipv4Address added in v1.5.0

func (o GetServersServerOutput) Ipv4Address() pulumi.StringOutput

func (GetServersServerOutput) Ipv6Address added in v1.5.0

func (o GetServersServerOutput) Ipv6Address() pulumi.StringOutput

func (GetServersServerOutput) Ipv6Network added in v1.5.0

func (o GetServersServerOutput) Ipv6Network() pulumi.StringOutput

func (GetServersServerOutput) Iso added in v1.5.0

func (GetServersServerOutput) Labels added in v1.5.0

func (GetServersServerOutput) Location added in v1.5.0

func (GetServersServerOutput) Name added in v1.5.0

func (GetServersServerOutput) PlacementGroupId added in v1.5.0

func (o GetServersServerOutput) PlacementGroupId() pulumi.IntPtrOutput

func (GetServersServerOutput) PrimaryDiskSize added in v1.17.0

func (o GetServersServerOutput) PrimaryDiskSize() pulumi.IntOutput

func (GetServersServerOutput) RebuildProtection added in v1.5.0

func (o GetServersServerOutput) RebuildProtection() pulumi.BoolOutput

func (GetServersServerOutput) Rescue added in v1.5.0

func (GetServersServerOutput) ServerType added in v1.5.0

func (GetServersServerOutput) Status added in v1.5.0

func (GetServersServerOutput) ToGetServersServerOutput added in v1.5.0

func (o GetServersServerOutput) ToGetServersServerOutput() GetServersServerOutput

func (GetServersServerOutput) ToGetServersServerOutputWithContext added in v1.5.0

func (o GetServersServerOutput) ToGetServersServerOutputWithContext(ctx context.Context) GetServersServerOutput

type GetSshKeysArgs

type GetSshKeysArgs struct {
	Id *string `pulumi:"id"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getSshKeys.

type GetSshKeysOutputArgs added in v1.6.0

type GetSshKeysOutputArgs struct {
	Id pulumi.StringPtrInput `pulumi:"id"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getSshKeys.

func (GetSshKeysOutputArgs) ElementType added in v1.6.0

func (GetSshKeysOutputArgs) ElementType() reflect.Type

type GetSshKeysResult

type GetSshKeysResult struct {
	Id *string `pulumi:"id"`
	// (list) List of all matches SSH keys. See `data.hcloud_ssh_key` for schema.
	SshKeys      []GetSshKeysSshKey `pulumi:"sshKeys"`
	WithSelector *string            `pulumi:"withSelector"`
}

A collection of values returned by getSshKeys.

func GetSshKeys

func GetSshKeys(ctx *pulumi.Context, args *GetSshKeysArgs, opts ...pulumi.InvokeOption) (*GetSshKeysResult, error)

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		allKeys, err := hcloud.GetSshKeys(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetSshKeys(ctx, &hcloud.GetSshKeysArgs{
			WithSelector: pulumi.StringRef("foo=bar"),
		}, nil)
		if err != nil {
			return err
		}
		var splat0 []*string
		for _, val0 := range allKeys.SshKeys {
			splat0 = append(splat0, val0.Name)
		}
		_, err = hcloud.NewServer(ctx, "main", &hcloud.ServerArgs{
			SshKeys: splat0,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetSshKeysResultOutput added in v1.6.0

type GetSshKeysResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSshKeys.

func GetSshKeysOutput added in v1.6.0

func GetSshKeysOutput(ctx *pulumi.Context, args GetSshKeysOutputArgs, opts ...pulumi.InvokeOption) GetSshKeysResultOutput

func (GetSshKeysResultOutput) ElementType added in v1.6.0

func (GetSshKeysResultOutput) ElementType() reflect.Type

func (GetSshKeysResultOutput) Id added in v1.6.0

func (GetSshKeysResultOutput) SshKeys added in v1.6.0

(list) List of all matches SSH keys. See `data.hcloud_ssh_key` for schema.

func (GetSshKeysResultOutput) ToGetSshKeysResultOutput added in v1.6.0

func (o GetSshKeysResultOutput) ToGetSshKeysResultOutput() GetSshKeysResultOutput

func (GetSshKeysResultOutput) ToGetSshKeysResultOutputWithContext added in v1.6.0

func (o GetSshKeysResultOutput) ToGetSshKeysResultOutputWithContext(ctx context.Context) GetSshKeysResultOutput

func (GetSshKeysResultOutput) WithSelector added in v1.6.0

type GetSshKeysSshKey

type GetSshKeysSshKey struct {
	// Fingerprint of the SSH key.
	Fingerprint string `pulumi:"fingerprint"`
	// ID of the SSH key.
	Id int `pulumi:"id"`
	// User-defined [labels](https://docs.hetzner.cloud/#labels) (key-value pairs) for the resource.
	Labels map[string]string `pulumi:"labels"`
	// Name of the SSH key.
	Name string `pulumi:"name"`
	// Public key of the SSH key pair.
	PublicKey string `pulumi:"publicKey"`
}

type GetSshKeysSshKeyArgs

type GetSshKeysSshKeyArgs struct {
	// Fingerprint of the SSH key.
	Fingerprint pulumi.StringInput `pulumi:"fingerprint"`
	// ID of the SSH key.
	Id pulumi.IntInput `pulumi:"id"`
	// User-defined [labels](https://docs.hetzner.cloud/#labels) (key-value pairs) for the resource.
	Labels pulumi.StringMapInput `pulumi:"labels"`
	// Name of the SSH key.
	Name pulumi.StringInput `pulumi:"name"`
	// Public key of the SSH key pair.
	PublicKey pulumi.StringInput `pulumi:"publicKey"`
}

func (GetSshKeysSshKeyArgs) ElementType

func (GetSshKeysSshKeyArgs) ElementType() reflect.Type

func (GetSshKeysSshKeyArgs) ToGetSshKeysSshKeyOutput

func (i GetSshKeysSshKeyArgs) ToGetSshKeysSshKeyOutput() GetSshKeysSshKeyOutput

func (GetSshKeysSshKeyArgs) ToGetSshKeysSshKeyOutputWithContext

func (i GetSshKeysSshKeyArgs) ToGetSshKeysSshKeyOutputWithContext(ctx context.Context) GetSshKeysSshKeyOutput

type GetSshKeysSshKeyArray

type GetSshKeysSshKeyArray []GetSshKeysSshKeyInput

func (GetSshKeysSshKeyArray) ElementType

func (GetSshKeysSshKeyArray) ElementType() reflect.Type

func (GetSshKeysSshKeyArray) ToGetSshKeysSshKeyArrayOutput

func (i GetSshKeysSshKeyArray) ToGetSshKeysSshKeyArrayOutput() GetSshKeysSshKeyArrayOutput

func (GetSshKeysSshKeyArray) ToGetSshKeysSshKeyArrayOutputWithContext

func (i GetSshKeysSshKeyArray) ToGetSshKeysSshKeyArrayOutputWithContext(ctx context.Context) GetSshKeysSshKeyArrayOutput

type GetSshKeysSshKeyArrayInput

type GetSshKeysSshKeyArrayInput interface {
	pulumi.Input

	ToGetSshKeysSshKeyArrayOutput() GetSshKeysSshKeyArrayOutput
	ToGetSshKeysSshKeyArrayOutputWithContext(context.Context) GetSshKeysSshKeyArrayOutput
}

GetSshKeysSshKeyArrayInput is an input type that accepts GetSshKeysSshKeyArray and GetSshKeysSshKeyArrayOutput values. You can construct a concrete instance of `GetSshKeysSshKeyArrayInput` via:

GetSshKeysSshKeyArray{ GetSshKeysSshKeyArgs{...} }

type GetSshKeysSshKeyArrayOutput

type GetSshKeysSshKeyArrayOutput struct{ *pulumi.OutputState }

func (GetSshKeysSshKeyArrayOutput) ElementType

func (GetSshKeysSshKeyArrayOutput) Index

func (GetSshKeysSshKeyArrayOutput) ToGetSshKeysSshKeyArrayOutput

func (o GetSshKeysSshKeyArrayOutput) ToGetSshKeysSshKeyArrayOutput() GetSshKeysSshKeyArrayOutput

func (GetSshKeysSshKeyArrayOutput) ToGetSshKeysSshKeyArrayOutputWithContext

func (o GetSshKeysSshKeyArrayOutput) ToGetSshKeysSshKeyArrayOutputWithContext(ctx context.Context) GetSshKeysSshKeyArrayOutput

type GetSshKeysSshKeyInput

type GetSshKeysSshKeyInput interface {
	pulumi.Input

	ToGetSshKeysSshKeyOutput() GetSshKeysSshKeyOutput
	ToGetSshKeysSshKeyOutputWithContext(context.Context) GetSshKeysSshKeyOutput
}

GetSshKeysSshKeyInput is an input type that accepts GetSshKeysSshKeyArgs and GetSshKeysSshKeyOutput values. You can construct a concrete instance of `GetSshKeysSshKeyInput` via:

GetSshKeysSshKeyArgs{...}

type GetSshKeysSshKeyOutput

type GetSshKeysSshKeyOutput struct{ *pulumi.OutputState }

func (GetSshKeysSshKeyOutput) ElementType

func (GetSshKeysSshKeyOutput) ElementType() reflect.Type

func (GetSshKeysSshKeyOutput) Fingerprint

func (o GetSshKeysSshKeyOutput) Fingerprint() pulumi.StringOutput

Fingerprint of the SSH key.

func (GetSshKeysSshKeyOutput) Id

ID of the SSH key.

func (GetSshKeysSshKeyOutput) Labels

User-defined [labels](https://docs.hetzner.cloud/#labels) (key-value pairs) for the resource.

func (GetSshKeysSshKeyOutput) Name

Name of the SSH key.

func (GetSshKeysSshKeyOutput) PublicKey

Public key of the SSH key pair.

func (GetSshKeysSshKeyOutput) ToGetSshKeysSshKeyOutput

func (o GetSshKeysSshKeyOutput) ToGetSshKeysSshKeyOutput() GetSshKeysSshKeyOutput

func (GetSshKeysSshKeyOutput) ToGetSshKeysSshKeyOutputWithContext

func (o GetSshKeysSshKeyOutput) ToGetSshKeysSshKeyOutputWithContext(ctx context.Context) GetSshKeysSshKeyOutput

type GetVolumesArgs added in v1.5.0

type GetVolumesArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
	// List only volumes with the specified status, could contain `creating` or `available`.
	WithStatuses []string `pulumi:"withStatuses"`
}

A collection of arguments for invoking getVolumes.

type GetVolumesOutputArgs added in v1.6.0

type GetVolumesOutputArgs struct {
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
	// List only volumes with the specified status, could contain `creating` or `available`.
	WithStatuses pulumi.StringArrayInput `pulumi:"withStatuses"`
}

A collection of arguments for invoking getVolumes.

func (GetVolumesOutputArgs) ElementType added in v1.6.0

func (GetVolumesOutputArgs) ElementType() reflect.Type

type GetVolumesResult added in v1.5.0

type GetVolumesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// (list) List of all matching volumes. See `data.hcloud_volume` for schema.
	Volumes      []GetVolumesVolume `pulumi:"volumes"`
	WithSelector *string            `pulumi:"withSelector"`
	WithStatuses []string           `pulumi:"withStatuses"`
}

A collection of values returned by getVolumes.

func GetVolumes added in v1.5.0

func GetVolumes(ctx *pulumi.Context, args *GetVolumesArgs, opts ...pulumi.InvokeOption) (*GetVolumesResult, error)

Provides details about multiple Hetzner Cloud volumes.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.GetVolumes(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.GetVolumes(ctx, &hcloud.GetVolumesArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetVolumesResultOutput added in v1.6.0

type GetVolumesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVolumes.

func GetVolumesOutput added in v1.6.0

func GetVolumesOutput(ctx *pulumi.Context, args GetVolumesOutputArgs, opts ...pulumi.InvokeOption) GetVolumesResultOutput

func (GetVolumesResultOutput) ElementType added in v1.6.0

func (GetVolumesResultOutput) ElementType() reflect.Type

func (GetVolumesResultOutput) Id added in v1.6.0

The provider-assigned unique ID for this managed resource.

func (GetVolumesResultOutput) ToGetVolumesResultOutput added in v1.6.0

func (o GetVolumesResultOutput) ToGetVolumesResultOutput() GetVolumesResultOutput

func (GetVolumesResultOutput) ToGetVolumesResultOutputWithContext added in v1.6.0

func (o GetVolumesResultOutput) ToGetVolumesResultOutputWithContext(ctx context.Context) GetVolumesResultOutput

func (GetVolumesResultOutput) Volumes added in v1.6.0

(list) List of all matching volumes. See `data.hcloud_volume` for schema.

func (GetVolumesResultOutput) WithSelector added in v1.6.0

func (GetVolumesResultOutput) WithStatuses added in v1.6.0

type GetVolumesVolume added in v1.5.0

type GetVolumesVolume struct {
	DeleteProtection bool                   `pulumi:"deleteProtection"`
	Id               int                    `pulumi:"id"`
	Labels           map[string]interface{} `pulumi:"labels"`
	LinuxDevice      string                 `pulumi:"linuxDevice"`
	Location         *string                `pulumi:"location"`
	Name             string                 `pulumi:"name"`
	ServerId         *int                   `pulumi:"serverId"`
	Size             int                    `pulumi:"size"`
}

type GetVolumesVolumeArgs added in v1.5.0

type GetVolumesVolumeArgs struct {
	DeleteProtection pulumi.BoolInput      `pulumi:"deleteProtection"`
	Id               pulumi.IntInput       `pulumi:"id"`
	Labels           pulumi.MapInput       `pulumi:"labels"`
	LinuxDevice      pulumi.StringInput    `pulumi:"linuxDevice"`
	Location         pulumi.StringPtrInput `pulumi:"location"`
	Name             pulumi.StringInput    `pulumi:"name"`
	ServerId         pulumi.IntPtrInput    `pulumi:"serverId"`
	Size             pulumi.IntInput       `pulumi:"size"`
}

func (GetVolumesVolumeArgs) ElementType added in v1.5.0

func (GetVolumesVolumeArgs) ElementType() reflect.Type

func (GetVolumesVolumeArgs) ToGetVolumesVolumeOutput added in v1.5.0

func (i GetVolumesVolumeArgs) ToGetVolumesVolumeOutput() GetVolumesVolumeOutput

func (GetVolumesVolumeArgs) ToGetVolumesVolumeOutputWithContext added in v1.5.0

func (i GetVolumesVolumeArgs) ToGetVolumesVolumeOutputWithContext(ctx context.Context) GetVolumesVolumeOutput

type GetVolumesVolumeArray added in v1.5.0

type GetVolumesVolumeArray []GetVolumesVolumeInput

func (GetVolumesVolumeArray) ElementType added in v1.5.0

func (GetVolumesVolumeArray) ElementType() reflect.Type

func (GetVolumesVolumeArray) ToGetVolumesVolumeArrayOutput added in v1.5.0

func (i GetVolumesVolumeArray) ToGetVolumesVolumeArrayOutput() GetVolumesVolumeArrayOutput

func (GetVolumesVolumeArray) ToGetVolumesVolumeArrayOutputWithContext added in v1.5.0

func (i GetVolumesVolumeArray) ToGetVolumesVolumeArrayOutputWithContext(ctx context.Context) GetVolumesVolumeArrayOutput

type GetVolumesVolumeArrayInput added in v1.5.0

type GetVolumesVolumeArrayInput interface {
	pulumi.Input

	ToGetVolumesVolumeArrayOutput() GetVolumesVolumeArrayOutput
	ToGetVolumesVolumeArrayOutputWithContext(context.Context) GetVolumesVolumeArrayOutput
}

GetVolumesVolumeArrayInput is an input type that accepts GetVolumesVolumeArray and GetVolumesVolumeArrayOutput values. You can construct a concrete instance of `GetVolumesVolumeArrayInput` via:

GetVolumesVolumeArray{ GetVolumesVolumeArgs{...} }

type GetVolumesVolumeArrayOutput added in v1.5.0

type GetVolumesVolumeArrayOutput struct{ *pulumi.OutputState }

func (GetVolumesVolumeArrayOutput) ElementType added in v1.5.0

func (GetVolumesVolumeArrayOutput) Index added in v1.5.0

func (GetVolumesVolumeArrayOutput) ToGetVolumesVolumeArrayOutput added in v1.5.0

func (o GetVolumesVolumeArrayOutput) ToGetVolumesVolumeArrayOutput() GetVolumesVolumeArrayOutput

func (GetVolumesVolumeArrayOutput) ToGetVolumesVolumeArrayOutputWithContext added in v1.5.0

func (o GetVolumesVolumeArrayOutput) ToGetVolumesVolumeArrayOutputWithContext(ctx context.Context) GetVolumesVolumeArrayOutput

type GetVolumesVolumeInput added in v1.5.0

type GetVolumesVolumeInput interface {
	pulumi.Input

	ToGetVolumesVolumeOutput() GetVolumesVolumeOutput
	ToGetVolumesVolumeOutputWithContext(context.Context) GetVolumesVolumeOutput
}

GetVolumesVolumeInput is an input type that accepts GetVolumesVolumeArgs and GetVolumesVolumeOutput values. You can construct a concrete instance of `GetVolumesVolumeInput` via:

GetVolumesVolumeArgs{...}

type GetVolumesVolumeOutput added in v1.5.0

type GetVolumesVolumeOutput struct{ *pulumi.OutputState }

func (GetVolumesVolumeOutput) DeleteProtection added in v1.5.0

func (o GetVolumesVolumeOutput) DeleteProtection() pulumi.BoolOutput

func (GetVolumesVolumeOutput) ElementType added in v1.5.0

func (GetVolumesVolumeOutput) ElementType() reflect.Type

func (GetVolumesVolumeOutput) Id added in v1.5.0

func (GetVolumesVolumeOutput) Labels added in v1.5.0

func (GetVolumesVolumeOutput) LinuxDevice added in v1.5.0

func (o GetVolumesVolumeOutput) LinuxDevice() pulumi.StringOutput

func (GetVolumesVolumeOutput) Location added in v1.5.0

func (GetVolumesVolumeOutput) Name added in v1.5.0

func (GetVolumesVolumeOutput) ServerId added in v1.5.0

func (GetVolumesVolumeOutput) Size added in v1.5.0

func (GetVolumesVolumeOutput) ToGetVolumesVolumeOutput added in v1.5.0

func (o GetVolumesVolumeOutput) ToGetVolumesVolumeOutput() GetVolumesVolumeOutput

func (GetVolumesVolumeOutput) ToGetVolumesVolumeOutputWithContext added in v1.5.0

func (o GetVolumesVolumeOutput) ToGetVolumesVolumeOutputWithContext(ctx context.Context) GetVolumesVolumeOutput

type LoadBalancer

type LoadBalancer struct {
	pulumi.CustomResourceState

	// Configuration of the algorithm the Load Balancer use.
	Algorithm LoadBalancerAlgorithmOutput `pulumi:"algorithm"`
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrOutput `pulumi:"deleteProtection"`
	// (string) IPv4 Address of the Load Balancer.
	Ipv4 pulumi.StringOutput `pulumi:"ipv4"`
	// (string) IPv6 Address of the Load Balancer.
	Ipv6 pulumi.StringOutput `pulumi:"ipv6"`
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// Type of the Load Balancer.
	LoadBalancerType pulumi.StringOutput `pulumi:"loadBalancerType"`
	// The location name of the Load Balancer. Require when no networkZone is set.
	Location pulumi.StringOutput `pulumi:"location"`
	// Name of the Load Balancer.
	Name pulumi.StringOutput `pulumi:"name"`
	// (int) ID of the first private network that this Load Balancer is connected to.
	NetworkId pulumi.IntOutput `pulumi:"networkId"`
	// (string) IP of the Load Balancer in the first private network that it is connected to.
	NetworkIp pulumi.StringOutput `pulumi:"networkIp"`
	// The Network Zone of the Load Balancer. Require when no location is set.
	NetworkZone pulumi.StringOutput `pulumi:"networkZone"`
	// Deprecated: Use LoadBalancerTarget resource instead. This allows the full control over the selected targets.
	Targets LoadBalancerTargetTypeArrayOutput `pulumi:"targets"`
}

Provides a Hetzner Cloud Load Balancer to represent a Load Balancer in the Hetzner Cloud.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		myServer, err := hcloud.NewServer(ctx, "myServer", &hcloud.ServerArgs{
			ServerType: pulumi.String("cx11"),
			Image:      pulumi.String("ubuntu-18.04"),
		})
		if err != nil {
			return err
		}
		loadBalancer, err := hcloud.NewLoadBalancer(ctx, "loadBalancer", &hcloud.LoadBalancerArgs{
			LoadBalancerType: pulumi.String("lb11"),
			Location:         pulumi.String("nbg1"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewLoadBalancerTarget(ctx, "loadBalancerTarget", &hcloud.LoadBalancerTargetArgs{
			Type:           pulumi.String("server"),
			LoadBalancerId: loadBalancer.ID(),
			ServerId:       myServer.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Load Balancers can be imported using its `id`:

```sh $ pulumi import hcloud:index/loadBalancer:LoadBalancer my_load_balancer id ```

func GetLoadBalancer

func GetLoadBalancer(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LoadBalancerState, opts ...pulumi.ResourceOption) (*LoadBalancer, error)

GetLoadBalancer gets an existing LoadBalancer resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLoadBalancer

func NewLoadBalancer(ctx *pulumi.Context,
	name string, args *LoadBalancerArgs, opts ...pulumi.ResourceOption) (*LoadBalancer, error)

NewLoadBalancer registers a new resource with the given unique name, arguments, and options.

func (*LoadBalancer) ElementType added in v0.4.1

func (*LoadBalancer) ElementType() reflect.Type

func (*LoadBalancer) ToLoadBalancerOutput added in v0.4.1

func (i *LoadBalancer) ToLoadBalancerOutput() LoadBalancerOutput

func (*LoadBalancer) ToLoadBalancerOutputWithContext added in v0.4.1

func (i *LoadBalancer) ToLoadBalancerOutputWithContext(ctx context.Context) LoadBalancerOutput

type LoadBalancerAlgorithm

type LoadBalancerAlgorithm struct {
	// Type of the Load Balancer Algorithm. `roundRobin` or `leastConnections`
	Type *string `pulumi:"type"`
}

type LoadBalancerAlgorithmArgs

type LoadBalancerAlgorithmArgs struct {
	// Type of the Load Balancer Algorithm. `roundRobin` or `leastConnections`
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (LoadBalancerAlgorithmArgs) ElementType

func (LoadBalancerAlgorithmArgs) ElementType() reflect.Type

func (LoadBalancerAlgorithmArgs) ToLoadBalancerAlgorithmOutput

func (i LoadBalancerAlgorithmArgs) ToLoadBalancerAlgorithmOutput() LoadBalancerAlgorithmOutput

func (LoadBalancerAlgorithmArgs) ToLoadBalancerAlgorithmOutputWithContext

func (i LoadBalancerAlgorithmArgs) ToLoadBalancerAlgorithmOutputWithContext(ctx context.Context) LoadBalancerAlgorithmOutput

func (LoadBalancerAlgorithmArgs) ToLoadBalancerAlgorithmPtrOutput

func (i LoadBalancerAlgorithmArgs) ToLoadBalancerAlgorithmPtrOutput() LoadBalancerAlgorithmPtrOutput

func (LoadBalancerAlgorithmArgs) ToLoadBalancerAlgorithmPtrOutputWithContext

func (i LoadBalancerAlgorithmArgs) ToLoadBalancerAlgorithmPtrOutputWithContext(ctx context.Context) LoadBalancerAlgorithmPtrOutput

type LoadBalancerAlgorithmInput

type LoadBalancerAlgorithmInput interface {
	pulumi.Input

	ToLoadBalancerAlgorithmOutput() LoadBalancerAlgorithmOutput
	ToLoadBalancerAlgorithmOutputWithContext(context.Context) LoadBalancerAlgorithmOutput
}

LoadBalancerAlgorithmInput is an input type that accepts LoadBalancerAlgorithmArgs and LoadBalancerAlgorithmOutput values. You can construct a concrete instance of `LoadBalancerAlgorithmInput` via:

LoadBalancerAlgorithmArgs{...}

type LoadBalancerAlgorithmOutput

type LoadBalancerAlgorithmOutput struct{ *pulumi.OutputState }

func (LoadBalancerAlgorithmOutput) ElementType

func (LoadBalancerAlgorithmOutput) ToLoadBalancerAlgorithmOutput

func (o LoadBalancerAlgorithmOutput) ToLoadBalancerAlgorithmOutput() LoadBalancerAlgorithmOutput

func (LoadBalancerAlgorithmOutput) ToLoadBalancerAlgorithmOutputWithContext

func (o LoadBalancerAlgorithmOutput) ToLoadBalancerAlgorithmOutputWithContext(ctx context.Context) LoadBalancerAlgorithmOutput

func (LoadBalancerAlgorithmOutput) ToLoadBalancerAlgorithmPtrOutput

func (o LoadBalancerAlgorithmOutput) ToLoadBalancerAlgorithmPtrOutput() LoadBalancerAlgorithmPtrOutput

func (LoadBalancerAlgorithmOutput) ToLoadBalancerAlgorithmPtrOutputWithContext

func (o LoadBalancerAlgorithmOutput) ToLoadBalancerAlgorithmPtrOutputWithContext(ctx context.Context) LoadBalancerAlgorithmPtrOutput

func (LoadBalancerAlgorithmOutput) Type

Type of the Load Balancer Algorithm. `roundRobin` or `leastConnections`

type LoadBalancerAlgorithmPtrInput

type LoadBalancerAlgorithmPtrInput interface {
	pulumi.Input

	ToLoadBalancerAlgorithmPtrOutput() LoadBalancerAlgorithmPtrOutput
	ToLoadBalancerAlgorithmPtrOutputWithContext(context.Context) LoadBalancerAlgorithmPtrOutput
}

LoadBalancerAlgorithmPtrInput is an input type that accepts LoadBalancerAlgorithmArgs, LoadBalancerAlgorithmPtr and LoadBalancerAlgorithmPtrOutput values. You can construct a concrete instance of `LoadBalancerAlgorithmPtrInput` via:

        LoadBalancerAlgorithmArgs{...}

or:

        nil

type LoadBalancerAlgorithmPtrOutput

type LoadBalancerAlgorithmPtrOutput struct{ *pulumi.OutputState }

func (LoadBalancerAlgorithmPtrOutput) Elem

func (LoadBalancerAlgorithmPtrOutput) ElementType

func (LoadBalancerAlgorithmPtrOutput) ToLoadBalancerAlgorithmPtrOutput

func (o LoadBalancerAlgorithmPtrOutput) ToLoadBalancerAlgorithmPtrOutput() LoadBalancerAlgorithmPtrOutput

func (LoadBalancerAlgorithmPtrOutput) ToLoadBalancerAlgorithmPtrOutputWithContext

func (o LoadBalancerAlgorithmPtrOutput) ToLoadBalancerAlgorithmPtrOutputWithContext(ctx context.Context) LoadBalancerAlgorithmPtrOutput

func (LoadBalancerAlgorithmPtrOutput) Type

Type of the Load Balancer Algorithm. `roundRobin` or `leastConnections`

type LoadBalancerArgs

type LoadBalancerArgs struct {
	// Configuration of the algorithm the Load Balancer use.
	Algorithm LoadBalancerAlgorithmPtrInput
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Type of the Load Balancer.
	LoadBalancerType pulumi.StringInput
	// The location name of the Load Balancer. Require when no networkZone is set.
	Location pulumi.StringPtrInput
	// Name of the Load Balancer.
	Name pulumi.StringPtrInput
	// The Network Zone of the Load Balancer. Require when no location is set.
	NetworkZone pulumi.StringPtrInput
	// Deprecated: Use LoadBalancerTarget resource instead. This allows the full control over the selected targets.
	Targets LoadBalancerTargetTypeArrayInput
}

The set of arguments for constructing a LoadBalancer resource.

func (LoadBalancerArgs) ElementType

func (LoadBalancerArgs) ElementType() reflect.Type

type LoadBalancerArray added in v0.6.2

type LoadBalancerArray []LoadBalancerInput

func (LoadBalancerArray) ElementType added in v0.6.2

func (LoadBalancerArray) ElementType() reflect.Type

func (LoadBalancerArray) ToLoadBalancerArrayOutput added in v0.6.2

func (i LoadBalancerArray) ToLoadBalancerArrayOutput() LoadBalancerArrayOutput

func (LoadBalancerArray) ToLoadBalancerArrayOutputWithContext added in v0.6.2

func (i LoadBalancerArray) ToLoadBalancerArrayOutputWithContext(ctx context.Context) LoadBalancerArrayOutput

type LoadBalancerArrayInput added in v0.6.2

type LoadBalancerArrayInput interface {
	pulumi.Input

	ToLoadBalancerArrayOutput() LoadBalancerArrayOutput
	ToLoadBalancerArrayOutputWithContext(context.Context) LoadBalancerArrayOutput
}

LoadBalancerArrayInput is an input type that accepts LoadBalancerArray and LoadBalancerArrayOutput values. You can construct a concrete instance of `LoadBalancerArrayInput` via:

LoadBalancerArray{ LoadBalancerArgs{...} }

type LoadBalancerArrayOutput added in v0.6.2

type LoadBalancerArrayOutput struct{ *pulumi.OutputState }

func (LoadBalancerArrayOutput) ElementType added in v0.6.2

func (LoadBalancerArrayOutput) ElementType() reflect.Type

func (LoadBalancerArrayOutput) Index added in v0.6.2

func (LoadBalancerArrayOutput) ToLoadBalancerArrayOutput added in v0.6.2

func (o LoadBalancerArrayOutput) ToLoadBalancerArrayOutput() LoadBalancerArrayOutput

func (LoadBalancerArrayOutput) ToLoadBalancerArrayOutputWithContext added in v0.6.2

func (o LoadBalancerArrayOutput) ToLoadBalancerArrayOutputWithContext(ctx context.Context) LoadBalancerArrayOutput

type LoadBalancerInput added in v0.4.1

type LoadBalancerInput interface {
	pulumi.Input

	ToLoadBalancerOutput() LoadBalancerOutput
	ToLoadBalancerOutputWithContext(ctx context.Context) LoadBalancerOutput
}

type LoadBalancerMap added in v0.6.2

type LoadBalancerMap map[string]LoadBalancerInput

func (LoadBalancerMap) ElementType added in v0.6.2

func (LoadBalancerMap) ElementType() reflect.Type

func (LoadBalancerMap) ToLoadBalancerMapOutput added in v0.6.2

func (i LoadBalancerMap) ToLoadBalancerMapOutput() LoadBalancerMapOutput

func (LoadBalancerMap) ToLoadBalancerMapOutputWithContext added in v0.6.2

func (i LoadBalancerMap) ToLoadBalancerMapOutputWithContext(ctx context.Context) LoadBalancerMapOutput

type LoadBalancerMapInput added in v0.6.2

type LoadBalancerMapInput interface {
	pulumi.Input

	ToLoadBalancerMapOutput() LoadBalancerMapOutput
	ToLoadBalancerMapOutputWithContext(context.Context) LoadBalancerMapOutput
}

LoadBalancerMapInput is an input type that accepts LoadBalancerMap and LoadBalancerMapOutput values. You can construct a concrete instance of `LoadBalancerMapInput` via:

LoadBalancerMap{ "key": LoadBalancerArgs{...} }

type LoadBalancerMapOutput added in v0.6.2

type LoadBalancerMapOutput struct{ *pulumi.OutputState }

func (LoadBalancerMapOutput) ElementType added in v0.6.2

func (LoadBalancerMapOutput) ElementType() reflect.Type

func (LoadBalancerMapOutput) MapIndex added in v0.6.2

func (LoadBalancerMapOutput) ToLoadBalancerMapOutput added in v0.6.2

func (o LoadBalancerMapOutput) ToLoadBalancerMapOutput() LoadBalancerMapOutput

func (LoadBalancerMapOutput) ToLoadBalancerMapOutputWithContext added in v0.6.2

func (o LoadBalancerMapOutput) ToLoadBalancerMapOutputWithContext(ctx context.Context) LoadBalancerMapOutput

type LoadBalancerNetwork

type LoadBalancerNetwork struct {
	pulumi.CustomResourceState

	// Enable or disable the
	// Load Balancers public interface. Default: `true`
	EnablePublicInterface pulumi.BoolPtrOutput `pulumi:"enablePublicInterface"`
	// IP to request to be assigned to this Load
	// Balancer. If you do not provide this then you will be auto assigned an
	// IP address.
	Ip pulumi.StringOutput `pulumi:"ip"`
	// ID of the Load Balancer.
	LoadBalancerId pulumi.IntOutput `pulumi:"loadBalancerId"`
	// ID of the network which should be added
	// to the Load Balancer. Required if `subnetId` is not set. Successful
	// creation of the resource depends on the existence of a subnet in the
	// Hetzner Cloud Backend. Using `networkId` will not create an explicit
	// dependency between the Load Balancer and the subnet. Therefore
	// `dependsOn` may need to be used. Alternatively the `subnetId`
	// property can be used, which will create an explicit dependency between
	// `LoadBalancerNetwork` and the existence of a subnet.
	NetworkId pulumi.IntPtrOutput `pulumi:"networkId"`
	// ID of the sub-network which should be
	// added to the Load Balancer. Required if `networkId` is not set.
	// *Note*: if the `ip` property is missing, the Load Balancer is
	// currently added to the last created subnet.
	SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"`
}

Provides a Hetzner Cloud Load Balancer Network to represent a private network on a Load Balancer in the Hetzner Cloud.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		lb1, err := hcloud.NewLoadBalancer(ctx, "lb1", &hcloud.LoadBalancerArgs{
			LoadBalancerType: pulumi.String("lb11"),
			NetworkZone:      pulumi.String("eu-central"),
		})
		if err != nil {
			return err
		}
		mynet, err := hcloud.NewNetwork(ctx, "mynet", &hcloud.NetworkArgs{
			IpRange: pulumi.String("10.0.0.0/8"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewNetworkSubnet(ctx, "foonet", &hcloud.NetworkSubnetArgs{
			NetworkId:   mynet.ID(),
			Type:        pulumi.String("cloud"),
			NetworkZone: pulumi.String("eu-central"),
			IpRange:     pulumi.String("10.0.1.0/24"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewLoadBalancerNetwork(ctx, "srvnetwork", &hcloud.LoadBalancerNetworkArgs{
			LoadBalancerId: lb1.ID(),
			NetworkId:      mynet.ID(),
			Ip:             pulumi.String("10.0.1.5"),
		}, pulumi.DependsOn([]pulumi.Resource{
			hcloud_network_subnet.Srvnetwork,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Load Balancer Network entries can be imported using a compound ID with the following format:

`<load-balancer-id>-<network-id>`

```sh $ pulumi import hcloud:index/loadBalancerNetwork:LoadBalancerNetwork myloadbalancernetwork 123-654 ```

func GetLoadBalancerNetwork

func GetLoadBalancerNetwork(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LoadBalancerNetworkState, opts ...pulumi.ResourceOption) (*LoadBalancerNetwork, error)

GetLoadBalancerNetwork gets an existing LoadBalancerNetwork resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLoadBalancerNetwork

func NewLoadBalancerNetwork(ctx *pulumi.Context,
	name string, args *LoadBalancerNetworkArgs, opts ...pulumi.ResourceOption) (*LoadBalancerNetwork, error)

NewLoadBalancerNetwork registers a new resource with the given unique name, arguments, and options.

func (*LoadBalancerNetwork) ElementType added in v0.4.1

func (*LoadBalancerNetwork) ElementType() reflect.Type

func (*LoadBalancerNetwork) ToLoadBalancerNetworkOutput added in v0.4.1

func (i *LoadBalancerNetwork) ToLoadBalancerNetworkOutput() LoadBalancerNetworkOutput

func (*LoadBalancerNetwork) ToLoadBalancerNetworkOutputWithContext added in v0.4.1

func (i *LoadBalancerNetwork) ToLoadBalancerNetworkOutputWithContext(ctx context.Context) LoadBalancerNetworkOutput

type LoadBalancerNetworkArgs

type LoadBalancerNetworkArgs struct {
	// Enable or disable the
	// Load Balancers public interface. Default: `true`
	EnablePublicInterface pulumi.BoolPtrInput
	// IP to request to be assigned to this Load
	// Balancer. If you do not provide this then you will be auto assigned an
	// IP address.
	Ip pulumi.StringPtrInput
	// ID of the Load Balancer.
	LoadBalancerId pulumi.IntInput
	// ID of the network which should be added
	// to the Load Balancer. Required if `subnetId` is not set. Successful
	// creation of the resource depends on the existence of a subnet in the
	// Hetzner Cloud Backend. Using `networkId` will not create an explicit
	// dependency between the Load Balancer and the subnet. Therefore
	// `dependsOn` may need to be used. Alternatively the `subnetId`
	// property can be used, which will create an explicit dependency between
	// `LoadBalancerNetwork` and the existence of a subnet.
	NetworkId pulumi.IntPtrInput
	// ID of the sub-network which should be
	// added to the Load Balancer. Required if `networkId` is not set.
	// *Note*: if the `ip` property is missing, the Load Balancer is
	// currently added to the last created subnet.
	SubnetId pulumi.StringPtrInput
}

The set of arguments for constructing a LoadBalancerNetwork resource.

func (LoadBalancerNetworkArgs) ElementType

func (LoadBalancerNetworkArgs) ElementType() reflect.Type

type LoadBalancerNetworkArray added in v0.6.2

type LoadBalancerNetworkArray []LoadBalancerNetworkInput

func (LoadBalancerNetworkArray) ElementType added in v0.6.2

func (LoadBalancerNetworkArray) ElementType() reflect.Type

func (LoadBalancerNetworkArray) ToLoadBalancerNetworkArrayOutput added in v0.6.2

func (i LoadBalancerNetworkArray) ToLoadBalancerNetworkArrayOutput() LoadBalancerNetworkArrayOutput

func (LoadBalancerNetworkArray) ToLoadBalancerNetworkArrayOutputWithContext added in v0.6.2

func (i LoadBalancerNetworkArray) ToLoadBalancerNetworkArrayOutputWithContext(ctx context.Context) LoadBalancerNetworkArrayOutput

type LoadBalancerNetworkArrayInput added in v0.6.2

type LoadBalancerNetworkArrayInput interface {
	pulumi.Input

	ToLoadBalancerNetworkArrayOutput() LoadBalancerNetworkArrayOutput
	ToLoadBalancerNetworkArrayOutputWithContext(context.Context) LoadBalancerNetworkArrayOutput
}

LoadBalancerNetworkArrayInput is an input type that accepts LoadBalancerNetworkArray and LoadBalancerNetworkArrayOutput values. You can construct a concrete instance of `LoadBalancerNetworkArrayInput` via:

LoadBalancerNetworkArray{ LoadBalancerNetworkArgs{...} }

type LoadBalancerNetworkArrayOutput added in v0.6.2

type LoadBalancerNetworkArrayOutput struct{ *pulumi.OutputState }

func (LoadBalancerNetworkArrayOutput) ElementType added in v0.6.2

func (LoadBalancerNetworkArrayOutput) Index added in v0.6.2

func (LoadBalancerNetworkArrayOutput) ToLoadBalancerNetworkArrayOutput added in v0.6.2

func (o LoadBalancerNetworkArrayOutput) ToLoadBalancerNetworkArrayOutput() LoadBalancerNetworkArrayOutput

func (LoadBalancerNetworkArrayOutput) ToLoadBalancerNetworkArrayOutputWithContext added in v0.6.2

func (o LoadBalancerNetworkArrayOutput) ToLoadBalancerNetworkArrayOutputWithContext(ctx context.Context) LoadBalancerNetworkArrayOutput

type LoadBalancerNetworkInput added in v0.4.1

type LoadBalancerNetworkInput interface {
	pulumi.Input

	ToLoadBalancerNetworkOutput() LoadBalancerNetworkOutput
	ToLoadBalancerNetworkOutputWithContext(ctx context.Context) LoadBalancerNetworkOutput
}

type LoadBalancerNetworkMap added in v0.6.2

type LoadBalancerNetworkMap map[string]LoadBalancerNetworkInput

func (LoadBalancerNetworkMap) ElementType added in v0.6.2

func (LoadBalancerNetworkMap) ElementType() reflect.Type

func (LoadBalancerNetworkMap) ToLoadBalancerNetworkMapOutput added in v0.6.2

func (i LoadBalancerNetworkMap) ToLoadBalancerNetworkMapOutput() LoadBalancerNetworkMapOutput

func (LoadBalancerNetworkMap) ToLoadBalancerNetworkMapOutputWithContext added in v0.6.2

func (i LoadBalancerNetworkMap) ToLoadBalancerNetworkMapOutputWithContext(ctx context.Context) LoadBalancerNetworkMapOutput

type LoadBalancerNetworkMapInput added in v0.6.2

type LoadBalancerNetworkMapInput interface {
	pulumi.Input

	ToLoadBalancerNetworkMapOutput() LoadBalancerNetworkMapOutput
	ToLoadBalancerNetworkMapOutputWithContext(context.Context) LoadBalancerNetworkMapOutput
}

LoadBalancerNetworkMapInput is an input type that accepts LoadBalancerNetworkMap and LoadBalancerNetworkMapOutput values. You can construct a concrete instance of `LoadBalancerNetworkMapInput` via:

LoadBalancerNetworkMap{ "key": LoadBalancerNetworkArgs{...} }

type LoadBalancerNetworkMapOutput added in v0.6.2

type LoadBalancerNetworkMapOutput struct{ *pulumi.OutputState }

func (LoadBalancerNetworkMapOutput) ElementType added in v0.6.2

func (LoadBalancerNetworkMapOutput) MapIndex added in v0.6.2

func (LoadBalancerNetworkMapOutput) ToLoadBalancerNetworkMapOutput added in v0.6.2

func (o LoadBalancerNetworkMapOutput) ToLoadBalancerNetworkMapOutput() LoadBalancerNetworkMapOutput

func (LoadBalancerNetworkMapOutput) ToLoadBalancerNetworkMapOutputWithContext added in v0.6.2

func (o LoadBalancerNetworkMapOutput) ToLoadBalancerNetworkMapOutputWithContext(ctx context.Context) LoadBalancerNetworkMapOutput

type LoadBalancerNetworkOutput added in v0.4.1

type LoadBalancerNetworkOutput struct{ *pulumi.OutputState }

func (LoadBalancerNetworkOutput) ElementType added in v0.4.1

func (LoadBalancerNetworkOutput) ElementType() reflect.Type

func (LoadBalancerNetworkOutput) EnablePublicInterface added in v1.9.0

func (o LoadBalancerNetworkOutput) EnablePublicInterface() pulumi.BoolPtrOutput

Enable or disable the Load Balancers public interface. Default: `true`

func (LoadBalancerNetworkOutput) Ip added in v1.9.0

IP to request to be assigned to this Load Balancer. If you do not provide this then you will be auto assigned an IP address.

func (LoadBalancerNetworkOutput) LoadBalancerId added in v1.9.0

func (o LoadBalancerNetworkOutput) LoadBalancerId() pulumi.IntOutput

ID of the Load Balancer.

func (LoadBalancerNetworkOutput) NetworkId added in v1.9.0

ID of the network which should be added to the Load Balancer. Required if `subnetId` is not set. Successful creation of the resource depends on the existence of a subnet in the Hetzner Cloud Backend. Using `networkId` will not create an explicit dependency between the Load Balancer and the subnet. Therefore `dependsOn` may need to be used. Alternatively the `subnetId` property can be used, which will create an explicit dependency between `LoadBalancerNetwork` and the existence of a subnet.

func (LoadBalancerNetworkOutput) SubnetId added in v1.9.0

ID of the sub-network which should be added to the Load Balancer. Required if `networkId` is not set. *Note*: if the `ip` property is missing, the Load Balancer is currently added to the last created subnet.

func (LoadBalancerNetworkOutput) ToLoadBalancerNetworkOutput added in v0.4.1

func (o LoadBalancerNetworkOutput) ToLoadBalancerNetworkOutput() LoadBalancerNetworkOutput

func (LoadBalancerNetworkOutput) ToLoadBalancerNetworkOutputWithContext added in v0.4.1

func (o LoadBalancerNetworkOutput) ToLoadBalancerNetworkOutputWithContext(ctx context.Context) LoadBalancerNetworkOutput

type LoadBalancerNetworkState

type LoadBalancerNetworkState struct {
	// Enable or disable the
	// Load Balancers public interface. Default: `true`
	EnablePublicInterface pulumi.BoolPtrInput
	// IP to request to be assigned to this Load
	// Balancer. If you do not provide this then you will be auto assigned an
	// IP address.
	Ip pulumi.StringPtrInput
	// ID of the Load Balancer.
	LoadBalancerId pulumi.IntPtrInput
	// ID of the network which should be added
	// to the Load Balancer. Required if `subnetId` is not set. Successful
	// creation of the resource depends on the existence of a subnet in the
	// Hetzner Cloud Backend. Using `networkId` will not create an explicit
	// dependency between the Load Balancer and the subnet. Therefore
	// `dependsOn` may need to be used. Alternatively the `subnetId`
	// property can be used, which will create an explicit dependency between
	// `LoadBalancerNetwork` and the existence of a subnet.
	NetworkId pulumi.IntPtrInput
	// ID of the sub-network which should be
	// added to the Load Balancer. Required if `networkId` is not set.
	// *Note*: if the `ip` property is missing, the Load Balancer is
	// currently added to the last created subnet.
	SubnetId pulumi.StringPtrInput
}

func (LoadBalancerNetworkState) ElementType

func (LoadBalancerNetworkState) ElementType() reflect.Type

type LoadBalancerOutput added in v0.4.1

type LoadBalancerOutput struct{ *pulumi.OutputState }

func (LoadBalancerOutput) Algorithm added in v1.9.0

Configuration of the algorithm the Load Balancer use.

func (LoadBalancerOutput) DeleteProtection added in v1.9.0

func (o LoadBalancerOutput) DeleteProtection() pulumi.BoolPtrOutput

Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.

func (LoadBalancerOutput) ElementType added in v0.4.1

func (LoadBalancerOutput) ElementType() reflect.Type

func (LoadBalancerOutput) Ipv4 added in v1.9.0

(string) IPv4 Address of the Load Balancer.

func (LoadBalancerOutput) Ipv6 added in v1.9.0

(string) IPv6 Address of the Load Balancer.

func (LoadBalancerOutput) Labels added in v1.9.0

func (o LoadBalancerOutput) Labels() pulumi.MapOutput

User-defined labels (key-value pairs) should be created with.

func (LoadBalancerOutput) LoadBalancerType added in v1.9.0

func (o LoadBalancerOutput) LoadBalancerType() pulumi.StringOutput

Type of the Load Balancer.

func (LoadBalancerOutput) Location added in v1.9.0

func (o LoadBalancerOutput) Location() pulumi.StringOutput

The location name of the Load Balancer. Require when no networkZone is set.

func (LoadBalancerOutput) Name added in v1.9.0

Name of the Load Balancer.

func (LoadBalancerOutput) NetworkId added in v1.9.0

func (o LoadBalancerOutput) NetworkId() pulumi.IntOutput

(int) ID of the first private network that this Load Balancer is connected to.

func (LoadBalancerOutput) NetworkIp added in v1.9.0

func (o LoadBalancerOutput) NetworkIp() pulumi.StringOutput

(string) IP of the Load Balancer in the first private network that it is connected to.

func (LoadBalancerOutput) NetworkZone added in v1.9.0

func (o LoadBalancerOutput) NetworkZone() pulumi.StringOutput

The Network Zone of the Load Balancer. Require when no location is set.

func (LoadBalancerOutput) Targets deprecated added in v1.9.0

Deprecated: Use LoadBalancerTarget resource instead. This allows the full control over the selected targets.

func (LoadBalancerOutput) ToLoadBalancerOutput added in v0.4.1

func (o LoadBalancerOutput) ToLoadBalancerOutput() LoadBalancerOutput

func (LoadBalancerOutput) ToLoadBalancerOutputWithContext added in v0.4.1

func (o LoadBalancerOutput) ToLoadBalancerOutputWithContext(ctx context.Context) LoadBalancerOutput

type LoadBalancerService

type LoadBalancerService struct {
	pulumi.CustomResourceState

	// Port the service connects to the targets on, required if protocol is `tcp`. Can be everything between `1` and `65535`.
	DestinationPort pulumi.IntOutput `pulumi:"destinationPort"`
	// Health Check configuration when `protocol` is `http` or `https`.
	HealthCheck LoadBalancerServiceHealthCheckOutput `pulumi:"healthCheck"`
	// HTTP configuration when `protocol` is `http` or `https`.
	Http LoadBalancerServiceHttpOutput `pulumi:"http"`
	// Port the service listen on, required if protocol is `tcp`. Can be everything between `1` and `65535`. Must be unique per Load Balancer.
	ListenPort pulumi.IntOutput `pulumi:"listenPort"`
	// Id of the load balancer this service belongs to.
	LoadBalancerId pulumi.StringOutput `pulumi:"loadBalancerId"`
	// Protocol of the service. `http`, `https` or `tcp`
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// Enable proxyprotocol.
	Proxyprotocol pulumi.BoolOutput `pulumi:"proxyprotocol"`
}

Define services for Hetzner Cloud Load Balancers.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		loadBalancer, err := hcloud.NewLoadBalancer(ctx, "loadBalancer", &hcloud.LoadBalancerArgs{
			LoadBalancerType: pulumi.String("lb11"),
			Location:         pulumi.String("nbg1"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewLoadBalancerService(ctx, "loadBalancerService", &hcloud.LoadBalancerServiceArgs{
			LoadBalancerId: loadBalancer.ID(),
			Protocol:       pulumi.String("http"),
			Http: &hcloud.LoadBalancerServiceHttpArgs{
				StickySessions: pulumi.Bool(true),
				CookieName:     pulumi.String("EXAMPLE_STICKY"),
			},
			HealthCheck: &hcloud.LoadBalancerServiceHealthCheckArgs{
				Protocol: pulumi.String("http"),
				Port:     pulumi.Int(80),
				Interval: pulumi.Int(10),
				Timeout:  pulumi.Int(5),
				Http: &hcloud.LoadBalancerServiceHealthCheckHttpArgs{
					Domain:   pulumi.String("example.com"),
					Path:     pulumi.String("/healthz"),
					Response: pulumi.String("OK"),
					Tls:      pulumi.Bool(true),
					StatusCodes: pulumi.StringArray{
						pulumi.String("200"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Load Balancer Service entries can be imported using a compound ID with the following format:

`<load-balancer-id>__<listen-port>`

```sh $ pulumi import hcloud:index/loadBalancerService:LoadBalancerService myloadbalancernetwork 123__80 ```

func GetLoadBalancerService

func GetLoadBalancerService(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LoadBalancerServiceState, opts ...pulumi.ResourceOption) (*LoadBalancerService, error)

GetLoadBalancerService gets an existing LoadBalancerService resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLoadBalancerService

func NewLoadBalancerService(ctx *pulumi.Context,
	name string, args *LoadBalancerServiceArgs, opts ...pulumi.ResourceOption) (*LoadBalancerService, error)

NewLoadBalancerService registers a new resource with the given unique name, arguments, and options.

func (*LoadBalancerService) ElementType added in v0.4.1

func (*LoadBalancerService) ElementType() reflect.Type

func (*LoadBalancerService) ToLoadBalancerServiceOutput added in v0.4.1

func (i *LoadBalancerService) ToLoadBalancerServiceOutput() LoadBalancerServiceOutput

func (*LoadBalancerService) ToLoadBalancerServiceOutputWithContext added in v0.4.1

func (i *LoadBalancerService) ToLoadBalancerServiceOutputWithContext(ctx context.Context) LoadBalancerServiceOutput

type LoadBalancerServiceArgs

type LoadBalancerServiceArgs struct {
	// Port the service connects to the targets on, required if protocol is `tcp`. Can be everything between `1` and `65535`.
	DestinationPort pulumi.IntPtrInput
	// Health Check configuration when `protocol` is `http` or `https`.
	HealthCheck LoadBalancerServiceHealthCheckPtrInput
	// HTTP configuration when `protocol` is `http` or `https`.
	Http LoadBalancerServiceHttpPtrInput
	// Port the service listen on, required if protocol is `tcp`. Can be everything between `1` and `65535`. Must be unique per Load Balancer.
	ListenPort pulumi.IntPtrInput
	// Id of the load balancer this service belongs to.
	LoadBalancerId pulumi.StringInput
	// Protocol of the service. `http`, `https` or `tcp`
	Protocol pulumi.StringInput
	// Enable proxyprotocol.
	Proxyprotocol pulumi.BoolPtrInput
}

The set of arguments for constructing a LoadBalancerService resource.

func (LoadBalancerServiceArgs) ElementType

func (LoadBalancerServiceArgs) ElementType() reflect.Type

type LoadBalancerServiceArray added in v0.6.2

type LoadBalancerServiceArray []LoadBalancerServiceInput

func (LoadBalancerServiceArray) ElementType added in v0.6.2

func (LoadBalancerServiceArray) ElementType() reflect.Type

func (LoadBalancerServiceArray) ToLoadBalancerServiceArrayOutput added in v0.6.2

func (i LoadBalancerServiceArray) ToLoadBalancerServiceArrayOutput() LoadBalancerServiceArrayOutput

func (LoadBalancerServiceArray) ToLoadBalancerServiceArrayOutputWithContext added in v0.6.2

func (i LoadBalancerServiceArray) ToLoadBalancerServiceArrayOutputWithContext(ctx context.Context) LoadBalancerServiceArrayOutput

type LoadBalancerServiceArrayInput added in v0.6.2

type LoadBalancerServiceArrayInput interface {
	pulumi.Input

	ToLoadBalancerServiceArrayOutput() LoadBalancerServiceArrayOutput
	ToLoadBalancerServiceArrayOutputWithContext(context.Context) LoadBalancerServiceArrayOutput
}

LoadBalancerServiceArrayInput is an input type that accepts LoadBalancerServiceArray and LoadBalancerServiceArrayOutput values. You can construct a concrete instance of `LoadBalancerServiceArrayInput` via:

LoadBalancerServiceArray{ LoadBalancerServiceArgs{...} }

type LoadBalancerServiceArrayOutput added in v0.6.2

type LoadBalancerServiceArrayOutput struct{ *pulumi.OutputState }

func (LoadBalancerServiceArrayOutput) ElementType added in v0.6.2

func (LoadBalancerServiceArrayOutput) Index added in v0.6.2

func (LoadBalancerServiceArrayOutput) ToLoadBalancerServiceArrayOutput added in v0.6.2

func (o LoadBalancerServiceArrayOutput) ToLoadBalancerServiceArrayOutput() LoadBalancerServiceArrayOutput

func (LoadBalancerServiceArrayOutput) ToLoadBalancerServiceArrayOutputWithContext added in v0.6.2

func (o LoadBalancerServiceArrayOutput) ToLoadBalancerServiceArrayOutputWithContext(ctx context.Context) LoadBalancerServiceArrayOutput

type LoadBalancerServiceHealthCheck

type LoadBalancerServiceHealthCheck struct {
	// HTTP configuration. Required if `protocol` is `http`.
	Http *LoadBalancerServiceHealthCheckHttp `pulumi:"http"`
	// Interval how often the health check will be performed, in seconds.
	Interval int `pulumi:"interval"`
	// Port the health check tries to connect to, required if protocol is `tcp`. Can be everything between `1` and `65535`. Must be unique per Load Balancer.
	Port int `pulumi:"port"`
	// Protocol the health check uses. `http` or `tcp`
	Protocol string `pulumi:"protocol"`
	// Number of tries a health check will be performed until a target will be listed as `unhealthy`.
	Retries *int `pulumi:"retries"`
	// Timeout when a health check try will be canceled if there is no response, in seconds.
	Timeout int `pulumi:"timeout"`
}

type LoadBalancerServiceHealthCheckArgs

type LoadBalancerServiceHealthCheckArgs struct {
	// HTTP configuration. Required if `protocol` is `http`.
	Http LoadBalancerServiceHealthCheckHttpPtrInput `pulumi:"http"`
	// Interval how often the health check will be performed, in seconds.
	Interval pulumi.IntInput `pulumi:"interval"`
	// Port the health check tries to connect to, required if protocol is `tcp`. Can be everything between `1` and `65535`. Must be unique per Load Balancer.
	Port pulumi.IntInput `pulumi:"port"`
	// Protocol the health check uses. `http` or `tcp`
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Number of tries a health check will be performed until a target will be listed as `unhealthy`.
	Retries pulumi.IntPtrInput `pulumi:"retries"`
	// Timeout when a health check try will be canceled if there is no response, in seconds.
	Timeout pulumi.IntInput `pulumi:"timeout"`
}

func (LoadBalancerServiceHealthCheckArgs) ElementType

func (LoadBalancerServiceHealthCheckArgs) ToLoadBalancerServiceHealthCheckOutput

func (i LoadBalancerServiceHealthCheckArgs) ToLoadBalancerServiceHealthCheckOutput() LoadBalancerServiceHealthCheckOutput

func (LoadBalancerServiceHealthCheckArgs) ToLoadBalancerServiceHealthCheckOutputWithContext

func (i LoadBalancerServiceHealthCheckArgs) ToLoadBalancerServiceHealthCheckOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckOutput

func (LoadBalancerServiceHealthCheckArgs) ToLoadBalancerServiceHealthCheckPtrOutput

func (i LoadBalancerServiceHealthCheckArgs) ToLoadBalancerServiceHealthCheckPtrOutput() LoadBalancerServiceHealthCheckPtrOutput

func (LoadBalancerServiceHealthCheckArgs) ToLoadBalancerServiceHealthCheckPtrOutputWithContext

func (i LoadBalancerServiceHealthCheckArgs) ToLoadBalancerServiceHealthCheckPtrOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckPtrOutput

type LoadBalancerServiceHealthCheckHttp

type LoadBalancerServiceHealthCheckHttp struct {
	// Domain we try to access when performing the Health Check.
	Domain *string `pulumi:"domain"`
	// Path we try to access when performing the Health Check.
	Path *string `pulumi:"path"`
	// Response we expect to be included in the Target response when a Health Check was performed.
	Response *string `pulumi:"response"`
	// We expect that the target answers with these status codes. If not the target is marked as `unhealthy`.
	StatusCodes []string `pulumi:"statusCodes"`
	// Enable TLS certificate checking.
	Tls *bool `pulumi:"tls"`
}

type LoadBalancerServiceHealthCheckHttpArgs

type LoadBalancerServiceHealthCheckHttpArgs struct {
	// Domain we try to access when performing the Health Check.
	Domain pulumi.StringPtrInput `pulumi:"domain"`
	// Path we try to access when performing the Health Check.
	Path pulumi.StringPtrInput `pulumi:"path"`
	// Response we expect to be included in the Target response when a Health Check was performed.
	Response pulumi.StringPtrInput `pulumi:"response"`
	// We expect that the target answers with these status codes. If not the target is marked as `unhealthy`.
	StatusCodes pulumi.StringArrayInput `pulumi:"statusCodes"`
	// Enable TLS certificate checking.
	Tls pulumi.BoolPtrInput `pulumi:"tls"`
}

func (LoadBalancerServiceHealthCheckHttpArgs) ElementType

func (LoadBalancerServiceHealthCheckHttpArgs) ToLoadBalancerServiceHealthCheckHttpOutput

func (i LoadBalancerServiceHealthCheckHttpArgs) ToLoadBalancerServiceHealthCheckHttpOutput() LoadBalancerServiceHealthCheckHttpOutput

func (LoadBalancerServiceHealthCheckHttpArgs) ToLoadBalancerServiceHealthCheckHttpOutputWithContext

func (i LoadBalancerServiceHealthCheckHttpArgs) ToLoadBalancerServiceHealthCheckHttpOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckHttpOutput

func (LoadBalancerServiceHealthCheckHttpArgs) ToLoadBalancerServiceHealthCheckHttpPtrOutput

func (i LoadBalancerServiceHealthCheckHttpArgs) ToLoadBalancerServiceHealthCheckHttpPtrOutput() LoadBalancerServiceHealthCheckHttpPtrOutput

func (LoadBalancerServiceHealthCheckHttpArgs) ToLoadBalancerServiceHealthCheckHttpPtrOutputWithContext

func (i LoadBalancerServiceHealthCheckHttpArgs) ToLoadBalancerServiceHealthCheckHttpPtrOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckHttpPtrOutput

type LoadBalancerServiceHealthCheckHttpInput

type LoadBalancerServiceHealthCheckHttpInput interface {
	pulumi.Input

	ToLoadBalancerServiceHealthCheckHttpOutput() LoadBalancerServiceHealthCheckHttpOutput
	ToLoadBalancerServiceHealthCheckHttpOutputWithContext(context.Context) LoadBalancerServiceHealthCheckHttpOutput
}

LoadBalancerServiceHealthCheckHttpInput is an input type that accepts LoadBalancerServiceHealthCheckHttpArgs and LoadBalancerServiceHealthCheckHttpOutput values. You can construct a concrete instance of `LoadBalancerServiceHealthCheckHttpInput` via:

LoadBalancerServiceHealthCheckHttpArgs{...}

type LoadBalancerServiceHealthCheckHttpOutput

type LoadBalancerServiceHealthCheckHttpOutput struct{ *pulumi.OutputState }

func (LoadBalancerServiceHealthCheckHttpOutput) Domain

Domain we try to access when performing the Health Check.

func (LoadBalancerServiceHealthCheckHttpOutput) ElementType

func (LoadBalancerServiceHealthCheckHttpOutput) Path

Path we try to access when performing the Health Check.

func (LoadBalancerServiceHealthCheckHttpOutput) Response

Response we expect to be included in the Target response when a Health Check was performed.

func (LoadBalancerServiceHealthCheckHttpOutput) StatusCodes

We expect that the target answers with these status codes. If not the target is marked as `unhealthy`.

func (LoadBalancerServiceHealthCheckHttpOutput) Tls

Enable TLS certificate checking.

func (LoadBalancerServiceHealthCheckHttpOutput) ToLoadBalancerServiceHealthCheckHttpOutput

func (o LoadBalancerServiceHealthCheckHttpOutput) ToLoadBalancerServiceHealthCheckHttpOutput() LoadBalancerServiceHealthCheckHttpOutput

func (LoadBalancerServiceHealthCheckHttpOutput) ToLoadBalancerServiceHealthCheckHttpOutputWithContext

func (o LoadBalancerServiceHealthCheckHttpOutput) ToLoadBalancerServiceHealthCheckHttpOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckHttpOutput

func (LoadBalancerServiceHealthCheckHttpOutput) ToLoadBalancerServiceHealthCheckHttpPtrOutput

func (o LoadBalancerServiceHealthCheckHttpOutput) ToLoadBalancerServiceHealthCheckHttpPtrOutput() LoadBalancerServiceHealthCheckHttpPtrOutput

func (LoadBalancerServiceHealthCheckHttpOutput) ToLoadBalancerServiceHealthCheckHttpPtrOutputWithContext

func (o LoadBalancerServiceHealthCheckHttpOutput) ToLoadBalancerServiceHealthCheckHttpPtrOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckHttpPtrOutput

type LoadBalancerServiceHealthCheckHttpPtrInput

type LoadBalancerServiceHealthCheckHttpPtrInput interface {
	pulumi.Input

	ToLoadBalancerServiceHealthCheckHttpPtrOutput() LoadBalancerServiceHealthCheckHttpPtrOutput
	ToLoadBalancerServiceHealthCheckHttpPtrOutputWithContext(context.Context) LoadBalancerServiceHealthCheckHttpPtrOutput
}

LoadBalancerServiceHealthCheckHttpPtrInput is an input type that accepts LoadBalancerServiceHealthCheckHttpArgs, LoadBalancerServiceHealthCheckHttpPtr and LoadBalancerServiceHealthCheckHttpPtrOutput values. You can construct a concrete instance of `LoadBalancerServiceHealthCheckHttpPtrInput` via:

        LoadBalancerServiceHealthCheckHttpArgs{...}

or:

        nil

type LoadBalancerServiceHealthCheckHttpPtrOutput

type LoadBalancerServiceHealthCheckHttpPtrOutput struct{ *pulumi.OutputState }

func (LoadBalancerServiceHealthCheckHttpPtrOutput) Domain

Domain we try to access when performing the Health Check.

func (LoadBalancerServiceHealthCheckHttpPtrOutput) Elem

func (LoadBalancerServiceHealthCheckHttpPtrOutput) ElementType

func (LoadBalancerServiceHealthCheckHttpPtrOutput) Path

Path we try to access when performing the Health Check.

func (LoadBalancerServiceHealthCheckHttpPtrOutput) Response

Response we expect to be included in the Target response when a Health Check was performed.

func (LoadBalancerServiceHealthCheckHttpPtrOutput) StatusCodes

We expect that the target answers with these status codes. If not the target is marked as `unhealthy`.

func (LoadBalancerServiceHealthCheckHttpPtrOutput) Tls

Enable TLS certificate checking.

func (LoadBalancerServiceHealthCheckHttpPtrOutput) ToLoadBalancerServiceHealthCheckHttpPtrOutput

func (o LoadBalancerServiceHealthCheckHttpPtrOutput) ToLoadBalancerServiceHealthCheckHttpPtrOutput() LoadBalancerServiceHealthCheckHttpPtrOutput

func (LoadBalancerServiceHealthCheckHttpPtrOutput) ToLoadBalancerServiceHealthCheckHttpPtrOutputWithContext

func (o LoadBalancerServiceHealthCheckHttpPtrOutput) ToLoadBalancerServiceHealthCheckHttpPtrOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckHttpPtrOutput

type LoadBalancerServiceHealthCheckInput

type LoadBalancerServiceHealthCheckInput interface {
	pulumi.Input

	ToLoadBalancerServiceHealthCheckOutput() LoadBalancerServiceHealthCheckOutput
	ToLoadBalancerServiceHealthCheckOutputWithContext(context.Context) LoadBalancerServiceHealthCheckOutput
}

LoadBalancerServiceHealthCheckInput is an input type that accepts LoadBalancerServiceHealthCheckArgs and LoadBalancerServiceHealthCheckOutput values. You can construct a concrete instance of `LoadBalancerServiceHealthCheckInput` via:

LoadBalancerServiceHealthCheckArgs{...}

type LoadBalancerServiceHealthCheckOutput

type LoadBalancerServiceHealthCheckOutput struct{ *pulumi.OutputState }

func (LoadBalancerServiceHealthCheckOutput) ElementType

func (LoadBalancerServiceHealthCheckOutput) Http

HTTP configuration. Required if `protocol` is `http`.

func (LoadBalancerServiceHealthCheckOutput) Interval

Interval how often the health check will be performed, in seconds.

func (LoadBalancerServiceHealthCheckOutput) Port

Port the health check tries to connect to, required if protocol is `tcp`. Can be everything between `1` and `65535`. Must be unique per Load Balancer.

func (LoadBalancerServiceHealthCheckOutput) Protocol

Protocol the health check uses. `http` or `tcp`

func (LoadBalancerServiceHealthCheckOutput) Retries

Number of tries a health check will be performed until a target will be listed as `unhealthy`.

func (LoadBalancerServiceHealthCheckOutput) Timeout

Timeout when a health check try will be canceled if there is no response, in seconds.

func (LoadBalancerServiceHealthCheckOutput) ToLoadBalancerServiceHealthCheckOutput

func (o LoadBalancerServiceHealthCheckOutput) ToLoadBalancerServiceHealthCheckOutput() LoadBalancerServiceHealthCheckOutput

func (LoadBalancerServiceHealthCheckOutput) ToLoadBalancerServiceHealthCheckOutputWithContext

func (o LoadBalancerServiceHealthCheckOutput) ToLoadBalancerServiceHealthCheckOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckOutput

func (LoadBalancerServiceHealthCheckOutput) ToLoadBalancerServiceHealthCheckPtrOutput

func (o LoadBalancerServiceHealthCheckOutput) ToLoadBalancerServiceHealthCheckPtrOutput() LoadBalancerServiceHealthCheckPtrOutput

func (LoadBalancerServiceHealthCheckOutput) ToLoadBalancerServiceHealthCheckPtrOutputWithContext

func (o LoadBalancerServiceHealthCheckOutput) ToLoadBalancerServiceHealthCheckPtrOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckPtrOutput

type LoadBalancerServiceHealthCheckPtrInput

type LoadBalancerServiceHealthCheckPtrInput interface {
	pulumi.Input

	ToLoadBalancerServiceHealthCheckPtrOutput() LoadBalancerServiceHealthCheckPtrOutput
	ToLoadBalancerServiceHealthCheckPtrOutputWithContext(context.Context) LoadBalancerServiceHealthCheckPtrOutput
}

LoadBalancerServiceHealthCheckPtrInput is an input type that accepts LoadBalancerServiceHealthCheckArgs, LoadBalancerServiceHealthCheckPtr and LoadBalancerServiceHealthCheckPtrOutput values. You can construct a concrete instance of `LoadBalancerServiceHealthCheckPtrInput` via:

        LoadBalancerServiceHealthCheckArgs{...}

or:

        nil

type LoadBalancerServiceHealthCheckPtrOutput

type LoadBalancerServiceHealthCheckPtrOutput struct{ *pulumi.OutputState }

func (LoadBalancerServiceHealthCheckPtrOutput) Elem

func (LoadBalancerServiceHealthCheckPtrOutput) ElementType

func (LoadBalancerServiceHealthCheckPtrOutput) Http

HTTP configuration. Required if `protocol` is `http`.

func (LoadBalancerServiceHealthCheckPtrOutput) Interval

Interval how often the health check will be performed, in seconds.

func (LoadBalancerServiceHealthCheckPtrOutput) Port

Port the health check tries to connect to, required if protocol is `tcp`. Can be everything between `1` and `65535`. Must be unique per Load Balancer.

func (LoadBalancerServiceHealthCheckPtrOutput) Protocol

Protocol the health check uses. `http` or `tcp`

func (LoadBalancerServiceHealthCheckPtrOutput) Retries

Number of tries a health check will be performed until a target will be listed as `unhealthy`.

func (LoadBalancerServiceHealthCheckPtrOutput) Timeout

Timeout when a health check try will be canceled if there is no response, in seconds.

func (LoadBalancerServiceHealthCheckPtrOutput) ToLoadBalancerServiceHealthCheckPtrOutput

func (o LoadBalancerServiceHealthCheckPtrOutput) ToLoadBalancerServiceHealthCheckPtrOutput() LoadBalancerServiceHealthCheckPtrOutput

func (LoadBalancerServiceHealthCheckPtrOutput) ToLoadBalancerServiceHealthCheckPtrOutputWithContext

func (o LoadBalancerServiceHealthCheckPtrOutput) ToLoadBalancerServiceHealthCheckPtrOutputWithContext(ctx context.Context) LoadBalancerServiceHealthCheckPtrOutput

type LoadBalancerServiceHttp

type LoadBalancerServiceHttp struct {
	// List of IDs from certificates which the Load Balancer has.
	Certificates []int `pulumi:"certificates"`
	// Lifetime of the cookie for sticky session (in seconds). Default: `300`
	CookieLifetime *int `pulumi:"cookieLifetime"`
	// Name of the cookie for sticky session. Default: `HCLBSTICKY`
	CookieName *string `pulumi:"cookieName"`
	// Redirect HTTP to HTTPS traffic. Only supported for services with `protocol` `https` using the default HTTP port `80`.
	RedirectHttp *bool `pulumi:"redirectHttp"`
	// Enable sticky sessions
	StickySessions *bool `pulumi:"stickySessions"`
}

type LoadBalancerServiceHttpArgs

type LoadBalancerServiceHttpArgs struct {
	// List of IDs from certificates which the Load Balancer has.
	Certificates pulumi.IntArrayInput `pulumi:"certificates"`
	// Lifetime of the cookie for sticky session (in seconds). Default: `300`
	CookieLifetime pulumi.IntPtrInput `pulumi:"cookieLifetime"`
	// Name of the cookie for sticky session. Default: `HCLBSTICKY`
	CookieName pulumi.StringPtrInput `pulumi:"cookieName"`
	// Redirect HTTP to HTTPS traffic. Only supported for services with `protocol` `https` using the default HTTP port `80`.
	RedirectHttp pulumi.BoolPtrInput `pulumi:"redirectHttp"`
	// Enable sticky sessions
	StickySessions pulumi.BoolPtrInput `pulumi:"stickySessions"`
}

func (LoadBalancerServiceHttpArgs) ElementType

func (LoadBalancerServiceHttpArgs) ToLoadBalancerServiceHttpOutput

func (i LoadBalancerServiceHttpArgs) ToLoadBalancerServiceHttpOutput() LoadBalancerServiceHttpOutput

func (LoadBalancerServiceHttpArgs) ToLoadBalancerServiceHttpOutputWithContext

func (i LoadBalancerServiceHttpArgs) ToLoadBalancerServiceHttpOutputWithContext(ctx context.Context) LoadBalancerServiceHttpOutput

func (LoadBalancerServiceHttpArgs) ToLoadBalancerServiceHttpPtrOutput

func (i LoadBalancerServiceHttpArgs) ToLoadBalancerServiceHttpPtrOutput() LoadBalancerServiceHttpPtrOutput

func (LoadBalancerServiceHttpArgs) ToLoadBalancerServiceHttpPtrOutputWithContext

func (i LoadBalancerServiceHttpArgs) ToLoadBalancerServiceHttpPtrOutputWithContext(ctx context.Context) LoadBalancerServiceHttpPtrOutput

type LoadBalancerServiceHttpInput

type LoadBalancerServiceHttpInput interface {
	pulumi.Input

	ToLoadBalancerServiceHttpOutput() LoadBalancerServiceHttpOutput
	ToLoadBalancerServiceHttpOutputWithContext(context.Context) LoadBalancerServiceHttpOutput
}

LoadBalancerServiceHttpInput is an input type that accepts LoadBalancerServiceHttpArgs and LoadBalancerServiceHttpOutput values. You can construct a concrete instance of `LoadBalancerServiceHttpInput` via:

LoadBalancerServiceHttpArgs{...}

type LoadBalancerServiceHttpOutput

type LoadBalancerServiceHttpOutput struct{ *pulumi.OutputState }

func (LoadBalancerServiceHttpOutput) Certificates

List of IDs from certificates which the Load Balancer has.

func (LoadBalancerServiceHttpOutput) CookieLifetime

Lifetime of the cookie for sticky session (in seconds). Default: `300`

func (LoadBalancerServiceHttpOutput) CookieName

Name of the cookie for sticky session. Default: `HCLBSTICKY`

func (LoadBalancerServiceHttpOutput) ElementType

func (LoadBalancerServiceHttpOutput) RedirectHttp

Redirect HTTP to HTTPS traffic. Only supported for services with `protocol` `https` using the default HTTP port `80`.

func (LoadBalancerServiceHttpOutput) StickySessions

Enable sticky sessions

func (LoadBalancerServiceHttpOutput) ToLoadBalancerServiceHttpOutput

func (o LoadBalancerServiceHttpOutput) ToLoadBalancerServiceHttpOutput() LoadBalancerServiceHttpOutput

func (LoadBalancerServiceHttpOutput) ToLoadBalancerServiceHttpOutputWithContext

func (o LoadBalancerServiceHttpOutput) ToLoadBalancerServiceHttpOutputWithContext(ctx context.Context) LoadBalancerServiceHttpOutput

func (LoadBalancerServiceHttpOutput) ToLoadBalancerServiceHttpPtrOutput

func (o LoadBalancerServiceHttpOutput) ToLoadBalancerServiceHttpPtrOutput() LoadBalancerServiceHttpPtrOutput

func (LoadBalancerServiceHttpOutput) ToLoadBalancerServiceHttpPtrOutputWithContext

func (o LoadBalancerServiceHttpOutput) ToLoadBalancerServiceHttpPtrOutputWithContext(ctx context.Context) LoadBalancerServiceHttpPtrOutput

type LoadBalancerServiceHttpPtrInput

type LoadBalancerServiceHttpPtrInput interface {
	pulumi.Input

	ToLoadBalancerServiceHttpPtrOutput() LoadBalancerServiceHttpPtrOutput
	ToLoadBalancerServiceHttpPtrOutputWithContext(context.Context) LoadBalancerServiceHttpPtrOutput
}

LoadBalancerServiceHttpPtrInput is an input type that accepts LoadBalancerServiceHttpArgs, LoadBalancerServiceHttpPtr and LoadBalancerServiceHttpPtrOutput values. You can construct a concrete instance of `LoadBalancerServiceHttpPtrInput` via:

        LoadBalancerServiceHttpArgs{...}

or:

        nil

type LoadBalancerServiceHttpPtrOutput

type LoadBalancerServiceHttpPtrOutput struct{ *pulumi.OutputState }

func (LoadBalancerServiceHttpPtrOutput) Certificates

List of IDs from certificates which the Load Balancer has.

func (LoadBalancerServiceHttpPtrOutput) CookieLifetime

Lifetime of the cookie for sticky session (in seconds). Default: `300`

func (LoadBalancerServiceHttpPtrOutput) CookieName

Name of the cookie for sticky session. Default: `HCLBSTICKY`

func (LoadBalancerServiceHttpPtrOutput) Elem

func (LoadBalancerServiceHttpPtrOutput) ElementType

func (LoadBalancerServiceHttpPtrOutput) RedirectHttp

Redirect HTTP to HTTPS traffic. Only supported for services with `protocol` `https` using the default HTTP port `80`.

func (LoadBalancerServiceHttpPtrOutput) StickySessions

Enable sticky sessions

func (LoadBalancerServiceHttpPtrOutput) ToLoadBalancerServiceHttpPtrOutput

func (o LoadBalancerServiceHttpPtrOutput) ToLoadBalancerServiceHttpPtrOutput() LoadBalancerServiceHttpPtrOutput

func (LoadBalancerServiceHttpPtrOutput) ToLoadBalancerServiceHttpPtrOutputWithContext

func (o LoadBalancerServiceHttpPtrOutput) ToLoadBalancerServiceHttpPtrOutputWithContext(ctx context.Context) LoadBalancerServiceHttpPtrOutput

type LoadBalancerServiceInput added in v0.4.1

type LoadBalancerServiceInput interface {
	pulumi.Input

	ToLoadBalancerServiceOutput() LoadBalancerServiceOutput
	ToLoadBalancerServiceOutputWithContext(ctx context.Context) LoadBalancerServiceOutput
}

type LoadBalancerServiceMap added in v0.6.2

type LoadBalancerServiceMap map[string]LoadBalancerServiceInput

func (LoadBalancerServiceMap) ElementType added in v0.6.2

func (LoadBalancerServiceMap) ElementType() reflect.Type

func (LoadBalancerServiceMap) ToLoadBalancerServiceMapOutput added in v0.6.2

func (i LoadBalancerServiceMap) ToLoadBalancerServiceMapOutput() LoadBalancerServiceMapOutput

func (LoadBalancerServiceMap) ToLoadBalancerServiceMapOutputWithContext added in v0.6.2

func (i LoadBalancerServiceMap) ToLoadBalancerServiceMapOutputWithContext(ctx context.Context) LoadBalancerServiceMapOutput

type LoadBalancerServiceMapInput added in v0.6.2

type LoadBalancerServiceMapInput interface {
	pulumi.Input

	ToLoadBalancerServiceMapOutput() LoadBalancerServiceMapOutput
	ToLoadBalancerServiceMapOutputWithContext(context.Context) LoadBalancerServiceMapOutput
}

LoadBalancerServiceMapInput is an input type that accepts LoadBalancerServiceMap and LoadBalancerServiceMapOutput values. You can construct a concrete instance of `LoadBalancerServiceMapInput` via:

LoadBalancerServiceMap{ "key": LoadBalancerServiceArgs{...} }

type LoadBalancerServiceMapOutput added in v0.6.2

type LoadBalancerServiceMapOutput struct{ *pulumi.OutputState }

func (LoadBalancerServiceMapOutput) ElementType added in v0.6.2

func (LoadBalancerServiceMapOutput) MapIndex added in v0.6.2

func (LoadBalancerServiceMapOutput) ToLoadBalancerServiceMapOutput added in v0.6.2

func (o LoadBalancerServiceMapOutput) ToLoadBalancerServiceMapOutput() LoadBalancerServiceMapOutput

func (LoadBalancerServiceMapOutput) ToLoadBalancerServiceMapOutputWithContext added in v0.6.2

func (o LoadBalancerServiceMapOutput) ToLoadBalancerServiceMapOutputWithContext(ctx context.Context) LoadBalancerServiceMapOutput

type LoadBalancerServiceOutput added in v0.4.1

type LoadBalancerServiceOutput struct{ *pulumi.OutputState }

func (LoadBalancerServiceOutput) DestinationPort added in v1.9.0

func (o LoadBalancerServiceOutput) DestinationPort() pulumi.IntOutput

Port the service connects to the targets on, required if protocol is `tcp`. Can be everything between `1` and `65535`.

func (LoadBalancerServiceOutput) ElementType added in v0.4.1

func (LoadBalancerServiceOutput) ElementType() reflect.Type

func (LoadBalancerServiceOutput) HealthCheck added in v1.9.0

Health Check configuration when `protocol` is `http` or `https`.

func (LoadBalancerServiceOutput) Http added in v1.9.0

HTTP configuration when `protocol` is `http` or `https`.

func (LoadBalancerServiceOutput) ListenPort added in v1.9.0

Port the service listen on, required if protocol is `tcp`. Can be everything between `1` and `65535`. Must be unique per Load Balancer.

func (LoadBalancerServiceOutput) LoadBalancerId added in v1.9.0

func (o LoadBalancerServiceOutput) LoadBalancerId() pulumi.StringOutput

Id of the load balancer this service belongs to.

func (LoadBalancerServiceOutput) Protocol added in v1.9.0

Protocol of the service. `http`, `https` or `tcp`

func (LoadBalancerServiceOutput) Proxyprotocol added in v1.9.0

func (o LoadBalancerServiceOutput) Proxyprotocol() pulumi.BoolOutput

Enable proxyprotocol.

func (LoadBalancerServiceOutput) ToLoadBalancerServiceOutput added in v0.4.1

func (o LoadBalancerServiceOutput) ToLoadBalancerServiceOutput() LoadBalancerServiceOutput

func (LoadBalancerServiceOutput) ToLoadBalancerServiceOutputWithContext added in v0.4.1

func (o LoadBalancerServiceOutput) ToLoadBalancerServiceOutputWithContext(ctx context.Context) LoadBalancerServiceOutput

type LoadBalancerServiceState

type LoadBalancerServiceState struct {
	// Port the service connects to the targets on, required if protocol is `tcp`. Can be everything between `1` and `65535`.
	DestinationPort pulumi.IntPtrInput
	// Health Check configuration when `protocol` is `http` or `https`.
	HealthCheck LoadBalancerServiceHealthCheckPtrInput
	// HTTP configuration when `protocol` is `http` or `https`.
	Http LoadBalancerServiceHttpPtrInput
	// Port the service listen on, required if protocol is `tcp`. Can be everything between `1` and `65535`. Must be unique per Load Balancer.
	ListenPort pulumi.IntPtrInput
	// Id of the load balancer this service belongs to.
	LoadBalancerId pulumi.StringPtrInput
	// Protocol of the service. `http`, `https` or `tcp`
	Protocol pulumi.StringPtrInput
	// Enable proxyprotocol.
	Proxyprotocol pulumi.BoolPtrInput
}

func (LoadBalancerServiceState) ElementType

func (LoadBalancerServiceState) ElementType() reflect.Type

type LoadBalancerState

type LoadBalancerState struct {
	// Configuration of the algorithm the Load Balancer use.
	Algorithm LoadBalancerAlgorithmPtrInput
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// (string) IPv4 Address of the Load Balancer.
	Ipv4 pulumi.StringPtrInput
	// (string) IPv6 Address of the Load Balancer.
	Ipv6 pulumi.StringPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Type of the Load Balancer.
	LoadBalancerType pulumi.StringPtrInput
	// The location name of the Load Balancer. Require when no networkZone is set.
	Location pulumi.StringPtrInput
	// Name of the Load Balancer.
	Name pulumi.StringPtrInput
	// (int) ID of the first private network that this Load Balancer is connected to.
	NetworkId pulumi.IntPtrInput
	// (string) IP of the Load Balancer in the first private network that it is connected to.
	NetworkIp pulumi.StringPtrInput
	// The Network Zone of the Load Balancer. Require when no location is set.
	NetworkZone pulumi.StringPtrInput
	// Deprecated: Use LoadBalancerTarget resource instead. This allows the full control over the selected targets.
	Targets LoadBalancerTargetTypeArrayInput
}

func (LoadBalancerState) ElementType

func (LoadBalancerState) ElementType() reflect.Type

type LoadBalancerTarget

type LoadBalancerTarget struct {
	pulumi.CustomResourceState

	// IP address for an IP Target. Required if
	// `type` is `ip`.
	Ip pulumi.StringPtrOutput `pulumi:"ip"`
	// Label Selector selecting targets
	// for this Load Balancer. Required if `type` is `labelSelector`.
	LabelSelector pulumi.StringPtrOutput `pulumi:"labelSelector"`
	// ID of the Load Balancer to which
	// the target gets attached.
	LoadBalancerId pulumi.IntOutput `pulumi:"loadBalancerId"`
	// ID of the server which should be a
	// target for this Load Balancer. Required if `type` is `server`
	ServerId pulumi.IntPtrOutput `pulumi:"serverId"`
	// Type of the target. Possible values
	// `server`, `labelSelector`, `ip`.
	Type pulumi.StringOutput `pulumi:"type"`
	// use the private IP to connect to
	// Load Balancer targets. Only allowed if type is `server` or
	// `labelSelector`.
	UsePrivateIp pulumi.BoolOutput `pulumi:"usePrivateIp"`
}

Adds a target to a Hetzner Cloud Load Balancer.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		myServer, err := hcloud.NewServer(ctx, "myServer", &hcloud.ServerArgs{
			ServerType: pulumi.String("cx11"),
			Image:      pulumi.String("ubuntu-18.04"),
		})
		if err != nil {
			return err
		}
		loadBalancer, err := hcloud.NewLoadBalancer(ctx, "loadBalancer", &hcloud.LoadBalancerArgs{
			LoadBalancerType: pulumi.String("lb11"),
			Location:         pulumi.String("nbg1"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewLoadBalancerTarget(ctx, "loadBalancerTarget", &hcloud.LoadBalancerTargetArgs{
			Type:           pulumi.String("server"),
			LoadBalancerId: loadBalancer.ID(),
			ServerId:       myServer.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Load Balancer Target entries can be imported using a compound ID with the following format:

`<load-balancer-id>__<type>__<identifier>`

Where _identifier_ depends on the _type_:

- `server`: server id, for example: `123`

- `label_selector`: label selector, for example: `foo=bar`

- `ip`: ip address, for example: `203.0.113.123`

```sh $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget myloadbalancerservertarget 123__server__321 ```

```sh $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget myloadbalancerlabeltarget 123__label_selector__foo=bar ```

```sh $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget myloadbalanceriptarget 123__ip__203.0.113.123 ```

func GetLoadBalancerTarget

func GetLoadBalancerTarget(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LoadBalancerTargetState, opts ...pulumi.ResourceOption) (*LoadBalancerTarget, error)

GetLoadBalancerTarget gets an existing LoadBalancerTarget resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLoadBalancerTarget

func NewLoadBalancerTarget(ctx *pulumi.Context,
	name string, args *LoadBalancerTargetArgs, opts ...pulumi.ResourceOption) (*LoadBalancerTarget, error)

NewLoadBalancerTarget registers a new resource with the given unique name, arguments, and options.

func (*LoadBalancerTarget) ElementType added in v0.4.1

func (*LoadBalancerTarget) ElementType() reflect.Type

func (*LoadBalancerTarget) ToLoadBalancerTargetOutput added in v0.4.1

func (i *LoadBalancerTarget) ToLoadBalancerTargetOutput() LoadBalancerTargetOutput

func (*LoadBalancerTarget) ToLoadBalancerTargetOutputWithContext added in v0.4.1

func (i *LoadBalancerTarget) ToLoadBalancerTargetOutputWithContext(ctx context.Context) LoadBalancerTargetOutput

type LoadBalancerTargetArgs

type LoadBalancerTargetArgs struct {
	// IP address for an IP Target. Required if
	// `type` is `ip`.
	Ip pulumi.StringPtrInput
	// Label Selector selecting targets
	// for this Load Balancer. Required if `type` is `labelSelector`.
	LabelSelector pulumi.StringPtrInput
	// ID of the Load Balancer to which
	// the target gets attached.
	LoadBalancerId pulumi.IntInput
	// ID of the server which should be a
	// target for this Load Balancer. Required if `type` is `server`
	ServerId pulumi.IntPtrInput
	// Type of the target. Possible values
	// `server`, `labelSelector`, `ip`.
	Type pulumi.StringInput
	// use the private IP to connect to
	// Load Balancer targets. Only allowed if type is `server` or
	// `labelSelector`.
	UsePrivateIp pulumi.BoolPtrInput
}

The set of arguments for constructing a LoadBalancerTarget resource.

func (LoadBalancerTargetArgs) ElementType

func (LoadBalancerTargetArgs) ElementType() reflect.Type

type LoadBalancerTargetArray added in v0.6.2

type LoadBalancerTargetArray []LoadBalancerTargetInput

func (LoadBalancerTargetArray) ElementType added in v0.6.2

func (LoadBalancerTargetArray) ElementType() reflect.Type

func (LoadBalancerTargetArray) ToLoadBalancerTargetArrayOutput added in v0.6.2

func (i LoadBalancerTargetArray) ToLoadBalancerTargetArrayOutput() LoadBalancerTargetArrayOutput

func (LoadBalancerTargetArray) ToLoadBalancerTargetArrayOutputWithContext added in v0.6.2

func (i LoadBalancerTargetArray) ToLoadBalancerTargetArrayOutputWithContext(ctx context.Context) LoadBalancerTargetArrayOutput

type LoadBalancerTargetArrayInput added in v0.6.2

type LoadBalancerTargetArrayInput interface {
	pulumi.Input

	ToLoadBalancerTargetArrayOutput() LoadBalancerTargetArrayOutput
	ToLoadBalancerTargetArrayOutputWithContext(context.Context) LoadBalancerTargetArrayOutput
}

LoadBalancerTargetArrayInput is an input type that accepts LoadBalancerTargetArray and LoadBalancerTargetArrayOutput values. You can construct a concrete instance of `LoadBalancerTargetArrayInput` via:

LoadBalancerTargetArray{ LoadBalancerTargetArgs{...} }

type LoadBalancerTargetArrayOutput added in v0.6.2

type LoadBalancerTargetArrayOutput struct{ *pulumi.OutputState }

func (LoadBalancerTargetArrayOutput) ElementType added in v0.6.2

func (LoadBalancerTargetArrayOutput) Index added in v0.6.2

func (LoadBalancerTargetArrayOutput) ToLoadBalancerTargetArrayOutput added in v0.6.2

func (o LoadBalancerTargetArrayOutput) ToLoadBalancerTargetArrayOutput() LoadBalancerTargetArrayOutput

func (LoadBalancerTargetArrayOutput) ToLoadBalancerTargetArrayOutputWithContext added in v0.6.2

func (o LoadBalancerTargetArrayOutput) ToLoadBalancerTargetArrayOutputWithContext(ctx context.Context) LoadBalancerTargetArrayOutput

type LoadBalancerTargetInput added in v0.4.1

type LoadBalancerTargetInput interface {
	pulumi.Input

	ToLoadBalancerTargetOutput() LoadBalancerTargetOutput
	ToLoadBalancerTargetOutputWithContext(ctx context.Context) LoadBalancerTargetOutput
}

type LoadBalancerTargetMap added in v0.6.2

type LoadBalancerTargetMap map[string]LoadBalancerTargetInput

func (LoadBalancerTargetMap) ElementType added in v0.6.2

func (LoadBalancerTargetMap) ElementType() reflect.Type

func (LoadBalancerTargetMap) ToLoadBalancerTargetMapOutput added in v0.6.2

func (i LoadBalancerTargetMap) ToLoadBalancerTargetMapOutput() LoadBalancerTargetMapOutput

func (LoadBalancerTargetMap) ToLoadBalancerTargetMapOutputWithContext added in v0.6.2

func (i LoadBalancerTargetMap) ToLoadBalancerTargetMapOutputWithContext(ctx context.Context) LoadBalancerTargetMapOutput

type LoadBalancerTargetMapInput added in v0.6.2

type LoadBalancerTargetMapInput interface {
	pulumi.Input

	ToLoadBalancerTargetMapOutput() LoadBalancerTargetMapOutput
	ToLoadBalancerTargetMapOutputWithContext(context.Context) LoadBalancerTargetMapOutput
}

LoadBalancerTargetMapInput is an input type that accepts LoadBalancerTargetMap and LoadBalancerTargetMapOutput values. You can construct a concrete instance of `LoadBalancerTargetMapInput` via:

LoadBalancerTargetMap{ "key": LoadBalancerTargetArgs{...} }

type LoadBalancerTargetMapOutput added in v0.6.2

type LoadBalancerTargetMapOutput struct{ *pulumi.OutputState }

func (LoadBalancerTargetMapOutput) ElementType added in v0.6.2

func (LoadBalancerTargetMapOutput) MapIndex added in v0.6.2

func (LoadBalancerTargetMapOutput) ToLoadBalancerTargetMapOutput added in v0.6.2

func (o LoadBalancerTargetMapOutput) ToLoadBalancerTargetMapOutput() LoadBalancerTargetMapOutput

func (LoadBalancerTargetMapOutput) ToLoadBalancerTargetMapOutputWithContext added in v0.6.2

func (o LoadBalancerTargetMapOutput) ToLoadBalancerTargetMapOutputWithContext(ctx context.Context) LoadBalancerTargetMapOutput

type LoadBalancerTargetOutput added in v0.4.1

type LoadBalancerTargetOutput struct{ *pulumi.OutputState }

func (LoadBalancerTargetOutput) ElementType added in v0.4.1

func (LoadBalancerTargetOutput) ElementType() reflect.Type

func (LoadBalancerTargetOutput) Ip added in v1.9.0

IP address for an IP Target. Required if `type` is `ip`.

func (LoadBalancerTargetOutput) LabelSelector added in v1.9.0

Label Selector selecting targets for this Load Balancer. Required if `type` is `labelSelector`.

func (LoadBalancerTargetOutput) LoadBalancerId added in v1.9.0

func (o LoadBalancerTargetOutput) LoadBalancerId() pulumi.IntOutput

ID of the Load Balancer to which the target gets attached.

func (LoadBalancerTargetOutput) ServerId added in v1.9.0

ID of the server which should be a target for this Load Balancer. Required if `type` is `server`

func (LoadBalancerTargetOutput) ToLoadBalancerTargetOutput added in v0.4.1

func (o LoadBalancerTargetOutput) ToLoadBalancerTargetOutput() LoadBalancerTargetOutput

func (LoadBalancerTargetOutput) ToLoadBalancerTargetOutputWithContext added in v0.4.1

func (o LoadBalancerTargetOutput) ToLoadBalancerTargetOutputWithContext(ctx context.Context) LoadBalancerTargetOutput

func (LoadBalancerTargetOutput) Type added in v1.9.0

Type of the target. Possible values `server`, `labelSelector`, `ip`.

func (LoadBalancerTargetOutput) UsePrivateIp added in v1.9.0

func (o LoadBalancerTargetOutput) UsePrivateIp() pulumi.BoolOutput

use the private IP to connect to Load Balancer targets. Only allowed if type is `server` or `labelSelector`.

type LoadBalancerTargetState

type LoadBalancerTargetState struct {
	// IP address for an IP Target. Required if
	// `type` is `ip`.
	Ip pulumi.StringPtrInput
	// Label Selector selecting targets
	// for this Load Balancer. Required if `type` is `labelSelector`.
	LabelSelector pulumi.StringPtrInput
	// ID of the Load Balancer to which
	// the target gets attached.
	LoadBalancerId pulumi.IntPtrInput
	// ID of the server which should be a
	// target for this Load Balancer. Required if `type` is `server`
	ServerId pulumi.IntPtrInput
	// Type of the target. Possible values
	// `server`, `labelSelector`, `ip`.
	Type pulumi.StringPtrInput
	// use the private IP to connect to
	// Load Balancer targets. Only allowed if type is `server` or
	// `labelSelector`.
	UsePrivateIp pulumi.BoolPtrInput
}

func (LoadBalancerTargetState) ElementType

func (LoadBalancerTargetState) ElementType() reflect.Type

type LoadBalancerTargetType

type LoadBalancerTargetType struct {
	ServerId *int `pulumi:"serverId"`
	// Type of the Load Balancer Algorithm. `roundRobin` or `leastConnections`
	Type string `pulumi:"type"`
	// Deprecated: Does not work. Use the LoadBalancerTarget resource instead.
	UsePrivateIp *bool `pulumi:"usePrivateIp"`
}

type LoadBalancerTargetTypeArgs

type LoadBalancerTargetTypeArgs struct {
	ServerId pulumi.IntPtrInput `pulumi:"serverId"`
	// Type of the Load Balancer Algorithm. `roundRobin` or `leastConnections`
	Type pulumi.StringInput `pulumi:"type"`
	// Deprecated: Does not work. Use the LoadBalancerTarget resource instead.
	UsePrivateIp pulumi.BoolPtrInput `pulumi:"usePrivateIp"`
}

func (LoadBalancerTargetTypeArgs) ElementType

func (LoadBalancerTargetTypeArgs) ElementType() reflect.Type

func (LoadBalancerTargetTypeArgs) ToLoadBalancerTargetTypeOutput

func (i LoadBalancerTargetTypeArgs) ToLoadBalancerTargetTypeOutput() LoadBalancerTargetTypeOutput

func (LoadBalancerTargetTypeArgs) ToLoadBalancerTargetTypeOutputWithContext

func (i LoadBalancerTargetTypeArgs) ToLoadBalancerTargetTypeOutputWithContext(ctx context.Context) LoadBalancerTargetTypeOutput

type LoadBalancerTargetTypeArray

type LoadBalancerTargetTypeArray []LoadBalancerTargetTypeInput

func (LoadBalancerTargetTypeArray) ElementType

func (LoadBalancerTargetTypeArray) ToLoadBalancerTargetTypeArrayOutput

func (i LoadBalancerTargetTypeArray) ToLoadBalancerTargetTypeArrayOutput() LoadBalancerTargetTypeArrayOutput

func (LoadBalancerTargetTypeArray) ToLoadBalancerTargetTypeArrayOutputWithContext

func (i LoadBalancerTargetTypeArray) ToLoadBalancerTargetTypeArrayOutputWithContext(ctx context.Context) LoadBalancerTargetTypeArrayOutput

type LoadBalancerTargetTypeArrayInput

type LoadBalancerTargetTypeArrayInput interface {
	pulumi.Input

	ToLoadBalancerTargetTypeArrayOutput() LoadBalancerTargetTypeArrayOutput
	ToLoadBalancerTargetTypeArrayOutputWithContext(context.Context) LoadBalancerTargetTypeArrayOutput
}

LoadBalancerTargetTypeArrayInput is an input type that accepts LoadBalancerTargetTypeArray and LoadBalancerTargetTypeArrayOutput values. You can construct a concrete instance of `LoadBalancerTargetTypeArrayInput` via:

LoadBalancerTargetTypeArray{ LoadBalancerTargetTypeArgs{...} }

type LoadBalancerTargetTypeArrayOutput

type LoadBalancerTargetTypeArrayOutput struct{ *pulumi.OutputState }

func (LoadBalancerTargetTypeArrayOutput) ElementType

func (LoadBalancerTargetTypeArrayOutput) Index

func (LoadBalancerTargetTypeArrayOutput) ToLoadBalancerTargetTypeArrayOutput

func (o LoadBalancerTargetTypeArrayOutput) ToLoadBalancerTargetTypeArrayOutput() LoadBalancerTargetTypeArrayOutput

func (LoadBalancerTargetTypeArrayOutput) ToLoadBalancerTargetTypeArrayOutputWithContext

func (o LoadBalancerTargetTypeArrayOutput) ToLoadBalancerTargetTypeArrayOutputWithContext(ctx context.Context) LoadBalancerTargetTypeArrayOutput

type LoadBalancerTargetTypeInput

type LoadBalancerTargetTypeInput interface {
	pulumi.Input

	ToLoadBalancerTargetTypeOutput() LoadBalancerTargetTypeOutput
	ToLoadBalancerTargetTypeOutputWithContext(context.Context) LoadBalancerTargetTypeOutput
}

LoadBalancerTargetTypeInput is an input type that accepts LoadBalancerTargetTypeArgs and LoadBalancerTargetTypeOutput values. You can construct a concrete instance of `LoadBalancerTargetTypeInput` via:

LoadBalancerTargetTypeArgs{...}

type LoadBalancerTargetTypeOutput

type LoadBalancerTargetTypeOutput struct{ *pulumi.OutputState }

func (LoadBalancerTargetTypeOutput) ElementType

func (LoadBalancerTargetTypeOutput) ServerId

func (LoadBalancerTargetTypeOutput) ToLoadBalancerTargetTypeOutput

func (o LoadBalancerTargetTypeOutput) ToLoadBalancerTargetTypeOutput() LoadBalancerTargetTypeOutput

func (LoadBalancerTargetTypeOutput) ToLoadBalancerTargetTypeOutputWithContext

func (o LoadBalancerTargetTypeOutput) ToLoadBalancerTargetTypeOutputWithContext(ctx context.Context) LoadBalancerTargetTypeOutput

func (LoadBalancerTargetTypeOutput) Type

Type of the Load Balancer Algorithm. `roundRobin` or `leastConnections`

func (LoadBalancerTargetTypeOutput) UsePrivateIp deprecated

Deprecated: Does not work. Use the LoadBalancerTarget resource instead.

type LookupCertificateArgs

type LookupCertificateArgs struct {
	// ID of the certificate.
	Id *int `pulumi:"id"`
	// Name of the certificate.
	Name *string `pulumi:"name"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getCertificate.

type LookupCertificateOutputArgs added in v1.6.0

type LookupCertificateOutputArgs struct {
	// ID of the certificate.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// Name of the certificate.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getCertificate.

func (LookupCertificateOutputArgs) ElementType added in v1.6.0

type LookupCertificateResult

type LookupCertificateResult struct {
	// (string) PEM encoded TLS certificate.
	Certificate string `pulumi:"certificate"`
	// (string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
	Created string `pulumi:"created"`
	// (list) Domains and subdomains covered by the certificate.
	DomainNames []string `pulumi:"domainNames"`
	// (string) Fingerprint of the certificate.
	Fingerprint string `pulumi:"fingerprint"`
	// (int) Unique ID of the certificate.
	Id int `pulumi:"id"`
	// (map) User-defined labels (key-value pairs) assigned to the certificate.
	Labels map[string]interface{} `pulumi:"labels"`
	// (string) Name of the Certificate.
	Name *string `pulumi:"name"`
	// (string) Point in time when the Certificate stops being valid (in ISO-8601 format).
	NotValidAfter string `pulumi:"notValidAfter"`
	// (string) Point in time when the Certificate becomes valid (in ISO-8601 format).
	NotValidBefore string  `pulumi:"notValidBefore"`
	Type           string  `pulumi:"type"`
	WithSelector   *string `pulumi:"withSelector"`
}

A collection of values returned by getCertificate.

func LookupCertificate

func LookupCertificate(ctx *pulumi.Context, args *LookupCertificateArgs, opts ...pulumi.InvokeOption) (*LookupCertificateResult, error)

Provides details about a specific Hetzner Cloud Certificate.

<!--Start PulumiCodeChooser --> ```go 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.LookupCertificate(ctx, &hcloud.LookupCertificateArgs{
			Name: pulumi.StringRef("sample-certificate-1"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupCertificate(ctx, &hcloud.LookupCertificateArgs{
			Id: pulumi.IntRef(4711),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupCertificateResultOutput added in v1.6.0

type LookupCertificateResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCertificate.

func LookupCertificateOutput added in v1.6.0

func (LookupCertificateResultOutput) Certificate added in v1.6.0

(string) PEM encoded TLS certificate.

func (LookupCertificateResultOutput) Created added in v1.6.0

(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).

func (LookupCertificateResultOutput) DomainNames added in v1.6.0

(list) Domains and subdomains covered by the certificate.

func (LookupCertificateResultOutput) ElementType added in v1.6.0

func (LookupCertificateResultOutput) Fingerprint added in v1.6.0

(string) Fingerprint of the certificate.

func (LookupCertificateResultOutput) Id added in v1.6.0

(int) Unique ID of the certificate.

func (LookupCertificateResultOutput) Labels added in v1.6.0

(map) User-defined labels (key-value pairs) assigned to the certificate.

func (LookupCertificateResultOutput) Name added in v1.6.0

(string) Name of the Certificate.

func (LookupCertificateResultOutput) NotValidAfter added in v1.6.0

(string) Point in time when the Certificate stops being valid (in ISO-8601 format).

func (LookupCertificateResultOutput) NotValidBefore added in v1.6.0

(string) Point in time when the Certificate becomes valid (in ISO-8601 format).

func (LookupCertificateResultOutput) ToLookupCertificateResultOutput added in v1.6.0

func (o LookupCertificateResultOutput) ToLookupCertificateResultOutput() LookupCertificateResultOutput

func (LookupCertificateResultOutput) ToLookupCertificateResultOutputWithContext added in v1.6.0

func (o LookupCertificateResultOutput) ToLookupCertificateResultOutputWithContext(ctx context.Context) LookupCertificateResultOutput

func (LookupCertificateResultOutput) Type added in v1.6.0

func (LookupCertificateResultOutput) WithSelector added in v1.6.0

type LookupFirewallArgs added in v0.7.0

type LookupFirewallArgs struct {
	// Configuration of the Applied Resources
	ApplyTos []GetFirewallApplyTo `pulumi:"applyTos"`
	// ID of the firewall.
	Id *int `pulumi:"id"`
	// (map) User-defined labels (key-value pairs)
	Labels map[string]interface{} `pulumi:"labels"`
	// Return most recent firewall if multiple are found.
	MostRecent *bool `pulumi:"mostRecent"`
	// Name of the firewall.
	Name *string `pulumi:"name"`
	// (string)  Configuration of a Rule from this Firewall.
	Rules []GetFirewallRule `pulumi:"rules"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getFirewall.

type LookupFirewallOutputArgs added in v1.6.0

type LookupFirewallOutputArgs struct {
	// Configuration of the Applied Resources
	ApplyTos GetFirewallApplyToArrayInput `pulumi:"applyTos"`
	// ID of the firewall.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// (map) User-defined labels (key-value pairs)
	Labels pulumi.MapInput `pulumi:"labels"`
	// Return most recent firewall if multiple are found.
	MostRecent pulumi.BoolPtrInput `pulumi:"mostRecent"`
	// Name of the firewall.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// (string)  Configuration of a Rule from this Firewall.
	Rules GetFirewallRuleArrayInput `pulumi:"rules"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getFirewall.

func (LookupFirewallOutputArgs) ElementType added in v1.6.0

func (LookupFirewallOutputArgs) ElementType() reflect.Type

type LookupFirewallResult added in v0.7.0

type LookupFirewallResult struct {
	// Configuration of the Applied Resources
	ApplyTos []GetFirewallApplyTo `pulumi:"applyTos"`
	// (int) Unique ID of the Firewall.
	Id *int `pulumi:"id"`
	// (map) User-defined labels (key-value pairs)
	Labels     map[string]interface{} `pulumi:"labels"`
	MostRecent *bool                  `pulumi:"mostRecent"`
	// (string) Name of the Firewall.
	Name string `pulumi:"name"`
	// (string)  Configuration of a Rule from this Firewall.
	Rules        []GetFirewallRule `pulumi:"rules"`
	WithSelector *string           `pulumi:"withSelector"`
}

A collection of values returned by getFirewall.

func LookupFirewall added in v0.7.0

func LookupFirewall(ctx *pulumi.Context, args *LookupFirewallArgs, opts ...pulumi.InvokeOption) (*LookupFirewallResult, error)

Provides details about a specific Hetzner Cloud Firewall.

<!--Start PulumiCodeChooser --> ```go 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.LookupFirewall(ctx, &hcloud.LookupFirewallArgs{
			Name: pulumi.StringRef("sample-firewall-1"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupFirewall(ctx, &hcloud.LookupFirewallArgs{
			Id: pulumi.IntRef(4711),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupFirewallResultOutput added in v1.6.0

type LookupFirewallResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFirewall.

func LookupFirewallOutput added in v1.6.0

func LookupFirewallOutput(ctx *pulumi.Context, args LookupFirewallOutputArgs, opts ...pulumi.InvokeOption) LookupFirewallResultOutput

func (LookupFirewallResultOutput) ApplyTos added in v1.6.0

Configuration of the Applied Resources

func (LookupFirewallResultOutput) ElementType added in v1.6.0

func (LookupFirewallResultOutput) ElementType() reflect.Type

func (LookupFirewallResultOutput) Id added in v1.6.0

(int) Unique ID of the Firewall.

func (LookupFirewallResultOutput) Labels added in v1.6.0

(map) User-defined labels (key-value pairs)

func (LookupFirewallResultOutput) MostRecent added in v1.6.0

func (LookupFirewallResultOutput) Name added in v1.6.0

(string) Name of the Firewall.

func (LookupFirewallResultOutput) Rules added in v1.6.0

(string) Configuration of a Rule from this Firewall.

func (LookupFirewallResultOutput) ToLookupFirewallResultOutput added in v1.6.0

func (o LookupFirewallResultOutput) ToLookupFirewallResultOutput() LookupFirewallResultOutput

func (LookupFirewallResultOutput) ToLookupFirewallResultOutputWithContext added in v1.6.0

func (o LookupFirewallResultOutput) ToLookupFirewallResultOutputWithContext(ctx context.Context) LookupFirewallResultOutput

func (LookupFirewallResultOutput) WithSelector added in v1.6.0

type LookupFloatingIpArgs

type LookupFloatingIpArgs struct {
	// ID of the Floating IP.
	Id *int `pulumi:"id"`
	// IP address of the Floating IP.
	IpAddress *string `pulumi:"ipAddress"`
	// Name of the Floating IP.
	Name *string `pulumi:"name"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getFloatingIp.

type LookupFloatingIpOutputArgs added in v1.6.0

type LookupFloatingIpOutputArgs struct {
	// ID of the Floating IP.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// IP address of the Floating IP.
	IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"`
	// Name of the Floating IP.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Deprecated: Please use the withSelector property instead.
	Selector pulumi.StringPtrInput `pulumi:"selector"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getFloatingIp.

func (LookupFloatingIpOutputArgs) ElementType added in v1.6.0

func (LookupFloatingIpOutputArgs) ElementType() reflect.Type

type LookupFloatingIpResult

type LookupFloatingIpResult struct {
	// (bool) Whether delete protection is enabled.
	DeleteProtection bool `pulumi:"deleteProtection"`
	// (string) Description of the Floating IP.
	Description string `pulumi:"description"`
	// (string) Home location.
	HomeLocation string `pulumi:"homeLocation"`
	// (int) Unique ID of the Floating IP.
	Id int `pulumi:"id"`
	// (string) IP Address of the Floating IP.
	IpAddress string `pulumi:"ipAddress"`
	// (string) IPv6 subnet. (Only set if `type` is `ipv6`)
	IpNetwork string `pulumi:"ipNetwork"`
	// (map) User-defined labels (key-value pairs).
	Labels map[string]interface{} `pulumi:"labels"`
	// (string) Name of the Floating IP.
	Name *string `pulumi:"name"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	// (int) Server to assign the Floating IP is assigned to.
	ServerId int `pulumi:"serverId"`
	// (string) Type of the Floating IP.
	Type         string  `pulumi:"type"`
	WithSelector *string `pulumi:"withSelector"`
}

A collection of values returned by getFloatingIp.

func LookupFloatingIp

func LookupFloatingIp(ctx *pulumi.Context, args *LookupFloatingIpArgs, opts ...pulumi.InvokeOption) (*LookupFloatingIpResult, error)

Provides details about a Hetzner Cloud Floating IP.

This resource can be useful when you need to determine a Floating IP ID based on the IP address.

## Example Usage

# Data Source: FloatingIp Provides details about a Hetzner Cloud Floating IP. This resource can be useful when you need to determine a Floating IP ID based on the IP address.

### Additional Examples <!--Start PulumiCodeChooser --> ```go 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 {
		ip1, err := hcloud.LookupFloatingIp(ctx, &hcloud.LookupFloatingIpArgs{
			IpAddress: pulumi.StringRef("1.2.3.4"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupFloatingIp(ctx, &hcloud.LookupFloatingIpArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		var main []*hcloud.FloatingIpAssignment
		for index := 0; index < _var.Counter; index++ {
			key0 := index
			_ := index
			__res, err := hcloud.NewFloatingIpAssignment(ctx, fmt.Sprintf("main-%v", key0), &hcloud.FloatingIpAssignmentArgs{
				FloatingIpId: pulumi.Int(ip1.Id),
				ServerId:     pulumi.Any(hcloud_server.Main.Id),
			})
			if err != nil {
				return err
			}
			main = append(main, __res)
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupFloatingIpResultOutput added in v1.6.0

type LookupFloatingIpResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFloatingIp.

func LookupFloatingIpOutput added in v1.6.0

func (LookupFloatingIpResultOutput) DeleteProtection added in v1.6.0

func (o LookupFloatingIpResultOutput) DeleteProtection() pulumi.BoolOutput

(bool) Whether delete protection is enabled.

func (LookupFloatingIpResultOutput) Description added in v1.6.0

(string) Description of the Floating IP.

func (LookupFloatingIpResultOutput) ElementType added in v1.6.0

func (LookupFloatingIpResultOutput) HomeLocation added in v1.6.0

(string) Home location.

func (LookupFloatingIpResultOutput) Id added in v1.6.0

(int) Unique ID of the Floating IP.

func (LookupFloatingIpResultOutput) IpAddress added in v1.6.0

(string) IP Address of the Floating IP.

func (LookupFloatingIpResultOutput) IpNetwork added in v1.6.0

(string) IPv6 subnet. (Only set if `type` is `ipv6`)

func (LookupFloatingIpResultOutput) Labels added in v1.6.0

(map) User-defined labels (key-value pairs).

func (LookupFloatingIpResultOutput) Name added in v1.6.0

(string) Name of the Floating IP.

func (LookupFloatingIpResultOutput) Selector deprecated added in v1.6.0

Deprecated: Please use the withSelector property instead.

func (LookupFloatingIpResultOutput) ServerId added in v1.6.0

(int) Server to assign the Floating IP is assigned to.

func (LookupFloatingIpResultOutput) ToLookupFloatingIpResultOutput added in v1.6.0

func (o LookupFloatingIpResultOutput) ToLookupFloatingIpResultOutput() LookupFloatingIpResultOutput

func (LookupFloatingIpResultOutput) ToLookupFloatingIpResultOutputWithContext added in v1.6.0

func (o LookupFloatingIpResultOutput) ToLookupFloatingIpResultOutputWithContext(ctx context.Context) LookupFloatingIpResultOutput

func (LookupFloatingIpResultOutput) Type added in v1.6.0

(string) Type of the Floating IP.

func (LookupFloatingIpResultOutput) WithSelector added in v1.6.0

type LookupLoadBalancerArgs

type LookupLoadBalancerArgs struct {
	// ID of the Load Balancer.
	Id *int `pulumi:"id"`
	// Name of the Load Balancer.
	Name *string `pulumi:"name"`
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getLoadBalancer.

type LookupLoadBalancerOutputArgs added in v1.6.0

type LookupLoadBalancerOutputArgs struct {
	// ID of the Load Balancer.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// Name of the Load Balancer.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getLoadBalancer.

func (LookupLoadBalancerOutputArgs) ElementType added in v1.6.0

type LookupLoadBalancerResult

type LookupLoadBalancerResult struct {
	// (Optional) Configuration of the algorithm the Load Balancer use.
	Algorithms []GetLoadBalancerAlgorithm `pulumi:"algorithms"`
	// (bool) Whether delete protection is enabled.
	DeleteProtection bool `pulumi:"deleteProtection"`
	// (int) Unique ID of the Load Balancer.
	Id int `pulumi:"id"`
	// (string) IPv4 Address of the Load Balancer.
	Ipv4 string `pulumi:"ipv4"`
	// (string) IPv4 Address of the Load Balancer.
	Ipv6 string `pulumi:"ipv6"`
	// (map) User-defined labels (key-value pairs) .
	Labels map[string]interface{} `pulumi:"labels"`
	// (string) Name of the Type of the Load Balancer.
	LoadBalancerType string `pulumi:"loadBalancerType"`
	// (string) Name of the location the Load Balancer is in.
	Location string `pulumi:"location"`
	// (string) Name of the Load Balancer.
	Name *string `pulumi:"name"`
	// (int) ID of the first private network that this Load Balancer is connected to.
	NetworkId int `pulumi:"networkId"`
	// (string) IP of the Load Balancer in the first private network that it is connected to.
	NetworkIp   string `pulumi:"networkIp"`
	NetworkZone string `pulumi:"networkZone"`
	// (list) List of services a Load Balancer provides.
	Services []GetLoadBalancerServiceType `pulumi:"services"`
	// (list) List of targets of the Load Balancer.
	Targets      []GetLoadBalancerTargetType `pulumi:"targets"`
	WithSelector *string                     `pulumi:"withSelector"`
}

A collection of values returned by getLoadBalancer.

func LookupLoadBalancer

func LookupLoadBalancer(ctx *pulumi.Context, args *LookupLoadBalancerArgs, opts ...pulumi.InvokeOption) (*LookupLoadBalancerResult, error)

Provides details about a specific Hetzner Cloud Load Balancer.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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
	})
}

``` <!--End PulumiCodeChooser -->

type LookupLoadBalancerResultOutput added in v1.6.0

type LookupLoadBalancerResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getLoadBalancer.

func LookupLoadBalancerOutput added in v1.6.0

func (LookupLoadBalancerResultOutput) Algorithms added in v1.6.0

(Optional) Configuration of the algorithm the Load Balancer use.

func (LookupLoadBalancerResultOutput) DeleteProtection added in v1.6.0

func (o LookupLoadBalancerResultOutput) DeleteProtection() pulumi.BoolOutput

(bool) Whether delete protection is enabled.

func (LookupLoadBalancerResultOutput) ElementType added in v1.6.0

func (LookupLoadBalancerResultOutput) Id added in v1.6.0

(int) Unique ID of the Load Balancer.

func (LookupLoadBalancerResultOutput) Ipv4 added in v1.6.0

(string) IPv4 Address of the Load Balancer.

func (LookupLoadBalancerResultOutput) Ipv6 added in v1.6.0

(string) IPv4 Address of the Load Balancer.

func (LookupLoadBalancerResultOutput) Labels added in v1.6.0

(map) User-defined labels (key-value pairs) .

func (LookupLoadBalancerResultOutput) LoadBalancerType added in v1.6.0

func (o LookupLoadBalancerResultOutput) LoadBalancerType() pulumi.StringOutput

(string) Name of the Type of the Load Balancer.

func (LookupLoadBalancerResultOutput) Location added in v1.6.0

(string) Name of the location the Load Balancer is in.

func (LookupLoadBalancerResultOutput) Name added in v1.6.0

(string) Name of the Load Balancer.

func (LookupLoadBalancerResultOutput) NetworkId added in v1.10.2

(int) ID of the first private network that this Load Balancer is connected to.

func (LookupLoadBalancerResultOutput) NetworkIp added in v1.10.2

(string) IP of the Load Balancer in the first private network that it is connected to.

func (LookupLoadBalancerResultOutput) NetworkZone added in v1.6.0

func (LookupLoadBalancerResultOutput) Services added in v1.6.0

(list) List of services a Load Balancer provides.

func (LookupLoadBalancerResultOutput) Targets added in v1.6.0

(list) List of targets of the Load Balancer.

func (LookupLoadBalancerResultOutput) ToLookupLoadBalancerResultOutput added in v1.6.0

func (o LookupLoadBalancerResultOutput) ToLookupLoadBalancerResultOutput() LookupLoadBalancerResultOutput

func (LookupLoadBalancerResultOutput) ToLookupLoadBalancerResultOutputWithContext added in v1.6.0

func (o LookupLoadBalancerResultOutput) ToLookupLoadBalancerResultOutputWithContext(ctx context.Context) LookupLoadBalancerResultOutput

func (LookupLoadBalancerResultOutput) WithSelector added in v1.6.0

type LookupNetworkArgs

type LookupNetworkArgs struct {
	// ID of the Network.
	Id *int `pulumi:"id"`
	// IPv4 prefix of the Network.
	IpRange *string                `pulumi:"ipRange"`
	Labels  map[string]interface{} `pulumi:"labels"`
	// Deprecated: This attribute has no purpose.
	MostRecent *bool `pulumi:"mostRecent"`
	// Name of the Network.
	Name *string `pulumi:"name"`
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getNetwork.

type LookupNetworkOutputArgs added in v1.6.0

type LookupNetworkOutputArgs struct {
	// ID of the Network.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// IPv4 prefix of the Network.
	IpRange pulumi.StringPtrInput `pulumi:"ipRange"`
	Labels  pulumi.MapInput       `pulumi:"labels"`
	// Deprecated: This attribute has no purpose.
	MostRecent pulumi.BoolPtrInput `pulumi:"mostRecent"`
	// Name of the Network.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getNetwork.

func (LookupNetworkOutputArgs) ElementType added in v1.6.0

func (LookupNetworkOutputArgs) ElementType() reflect.Type

type LookupNetworkResult

type LookupNetworkResult struct {
	// (bool) Whether delete protection is enabled.
	DeleteProtection bool `pulumi:"deleteProtection"`
	// (bool) Indicates if the routes from this network should be exposed to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
	ExposeRoutesToVswitch bool `pulumi:"exposeRoutesToVswitch"`
	// Unique ID of the Network.
	Id int `pulumi:"id"`
	// IPv4 prefix of the Network.
	IpRange string                 `pulumi:"ipRange"`
	Labels  map[string]interface{} `pulumi:"labels"`
	// Deprecated: This attribute has no purpose.
	MostRecent *bool `pulumi:"mostRecent"`
	// Name of the Network.
	Name         string  `pulumi:"name"`
	WithSelector *string `pulumi:"withSelector"`
}

A collection of values returned by getNetwork.

func LookupNetwork

func LookupNetwork(ctx *pulumi.Context, args *LookupNetworkArgs, opts ...pulumi.InvokeOption) (*LookupNetworkResult, error)

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.LookupNetwork(ctx, &hcloud.LookupNetworkArgs{
			Id: pulumi.IntRef(1234),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupNetwork(ctx, &hcloud.LookupNetworkArgs{
			Name: pulumi.StringRef("my-network"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupNetwork(ctx, &hcloud.LookupNetworkArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupNetworkResultOutput added in v1.6.0

type LookupNetworkResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNetwork.

func LookupNetworkOutput added in v1.6.0

func LookupNetworkOutput(ctx *pulumi.Context, args LookupNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkResultOutput

func (LookupNetworkResultOutput) DeleteProtection added in v1.6.0

func (o LookupNetworkResultOutput) DeleteProtection() pulumi.BoolOutput

(bool) Whether delete protection is enabled.

func (LookupNetworkResultOutput) ElementType added in v1.6.0

func (LookupNetworkResultOutput) ElementType() reflect.Type

func (LookupNetworkResultOutput) ExposeRoutesToVswitch added in v1.13.0

func (o LookupNetworkResultOutput) ExposeRoutesToVswitch() pulumi.BoolOutput

(bool) Indicates if the routes from this network should be exposed to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.

func (LookupNetworkResultOutput) Id added in v1.6.0

Unique ID of the Network.

func (LookupNetworkResultOutput) IpRange added in v1.6.0

IPv4 prefix of the Network.

func (LookupNetworkResultOutput) Labels added in v1.6.0

func (LookupNetworkResultOutput) MostRecent deprecated added in v1.6.0

Deprecated: This attribute has no purpose.

func (LookupNetworkResultOutput) Name added in v1.6.0

Name of the Network.

func (LookupNetworkResultOutput) ToLookupNetworkResultOutput added in v1.6.0

func (o LookupNetworkResultOutput) ToLookupNetworkResultOutput() LookupNetworkResultOutput

func (LookupNetworkResultOutput) ToLookupNetworkResultOutputWithContext added in v1.6.0

func (o LookupNetworkResultOutput) ToLookupNetworkResultOutputWithContext(ctx context.Context) LookupNetworkResultOutput

func (LookupNetworkResultOutput) WithSelector added in v1.6.0

type LookupPlacementGroupArgs added in v1.3.0

type LookupPlacementGroupArgs struct {
	// ID of the placement group.
	Id *int `pulumi:"id"`
	// (map) User-defined labels (key-value pairs)
	Labels map[string]interface{} `pulumi:"labels"`
	// Return most recent placement group if multiple are found.
	MostRecent *bool `pulumi:"mostRecent"`
	// Name of the placement group.
	Name *string `pulumi:"name"`
	// (string)  Type of the Placement Group.
	Type *string `pulumi:"type"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getPlacementGroup.

type LookupPlacementGroupOutputArgs added in v1.6.0

type LookupPlacementGroupOutputArgs struct {
	// ID of the placement group.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// (map) User-defined labels (key-value pairs)
	Labels pulumi.MapInput `pulumi:"labels"`
	// Return most recent placement group if multiple are found.
	MostRecent pulumi.BoolPtrInput `pulumi:"mostRecent"`
	// Name of the placement group.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// (string)  Type of the Placement Group.
	Type pulumi.StringPtrInput `pulumi:"type"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getPlacementGroup.

func (LookupPlacementGroupOutputArgs) ElementType added in v1.6.0

type LookupPlacementGroupResult added in v1.3.0

type LookupPlacementGroupResult struct {
	// (int) Unique ID of the Placement Group.
	Id int `pulumi:"id"`
	// (map) User-defined labels (key-value pairs)
	Labels     map[string]interface{} `pulumi:"labels"`
	MostRecent *bool                  `pulumi:"mostRecent"`
	// (string) Name of the Placement Group.
	Name    string `pulumi:"name"`
	Servers []int  `pulumi:"servers"`
	// (string)  Type of the Placement Group.
	Type         string  `pulumi:"type"`
	WithSelector *string `pulumi:"withSelector"`
}

A collection of values returned by getPlacementGroup.

func LookupPlacementGroup added in v1.3.0

func LookupPlacementGroup(ctx *pulumi.Context, args *LookupPlacementGroupArgs, opts ...pulumi.InvokeOption) (*LookupPlacementGroupResult, error)

Provides details about a specific Hetzner Cloud Placement Group.

<!--Start PulumiCodeChooser --> ```go 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.LookupPlacementGroup(ctx, &hcloud.LookupPlacementGroupArgs{
			Name: pulumi.StringRef("sample-placement-group-1"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupPlacementGroup(ctx, &hcloud.LookupPlacementGroupArgs{
			Id: pulumi.IntRef(4711),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupPlacementGroupResultOutput added in v1.6.0

type LookupPlacementGroupResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPlacementGroup.

func LookupPlacementGroupOutput added in v1.6.0

func (LookupPlacementGroupResultOutput) ElementType added in v1.6.0

func (LookupPlacementGroupResultOutput) Id added in v1.6.0

(int) Unique ID of the Placement Group.

func (LookupPlacementGroupResultOutput) Labels added in v1.6.0

(map) User-defined labels (key-value pairs)

func (LookupPlacementGroupResultOutput) MostRecent added in v1.6.0

func (LookupPlacementGroupResultOutput) Name added in v1.6.0

(string) Name of the Placement Group.

func (LookupPlacementGroupResultOutput) Servers added in v1.6.0

func (LookupPlacementGroupResultOutput) ToLookupPlacementGroupResultOutput added in v1.6.0

func (o LookupPlacementGroupResultOutput) ToLookupPlacementGroupResultOutput() LookupPlacementGroupResultOutput

func (LookupPlacementGroupResultOutput) ToLookupPlacementGroupResultOutputWithContext added in v1.6.0

func (o LookupPlacementGroupResultOutput) ToLookupPlacementGroupResultOutputWithContext(ctx context.Context) LookupPlacementGroupResultOutput

func (LookupPlacementGroupResultOutput) Type added in v1.6.0

(string) Type of the Placement Group.

func (LookupPlacementGroupResultOutput) WithSelector added in v1.6.0

type LookupPrimaryIpArgs added in v1.9.0

type LookupPrimaryIpArgs struct {
	// (int) ID of the assigned resource.
	AssigneeId *int `pulumi:"assigneeId"`
	// ID of the Primary IP.
	Id *int `pulumi:"id"`
	// IP address of the Primary IP.
	IpAddress *string `pulumi:"ipAddress"`
	// Name of the Primary IP.
	Name *string `pulumi:"name"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getPrimaryIp.

type LookupPrimaryIpOutputArgs added in v1.9.0

type LookupPrimaryIpOutputArgs struct {
	// (int) ID of the assigned resource.
	AssigneeId pulumi.IntPtrInput `pulumi:"assigneeId"`
	// ID of the Primary IP.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// IP address of the Primary IP.
	IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"`
	// Name of the Primary IP.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getPrimaryIp.

func (LookupPrimaryIpOutputArgs) ElementType added in v1.9.0

func (LookupPrimaryIpOutputArgs) ElementType() reflect.Type

type LookupPrimaryIpResult added in v1.9.0

type LookupPrimaryIpResult struct {
	// (int) ID of the assigned resource.
	AssigneeId int `pulumi:"assigneeId"`
	// (string) The type of the assigned resource.
	AssigneeType string `pulumi:"assigneeType"`
	// (bool) Whether auto delete is enabled.
	AutoDelete bool `pulumi:"autoDelete"`
	// (string) The datacenter name of the Primary IP.
	Datacenter string `pulumi:"datacenter"`
	// (bool) Whether delete protection is enabled.
	DeleteProtection bool `pulumi:"deleteProtection"`
	// (int) Unique ID of the Primary IP.
	Id int `pulumi:"id"`
	// (string) IP Address of the Primary IP.
	IpAddress string `pulumi:"ipAddress"`
	// (string) IPv6 subnet of the Primary IP for IPv6 addresses. (Only set if `type` is `ipv6`)
	IpNetwork string `pulumi:"ipNetwork"`
	// (string) Description of the Primary IP.
	Labels map[string]interface{} `pulumi:"labels"`
	// (string) Name of the Primary IP.
	Name *string `pulumi:"name"`
	// (string) Type of the Primary IP.
	Type         string  `pulumi:"type"`
	WithSelector *string `pulumi:"withSelector"`
}

A collection of values returned by getPrimaryIp.

func LookupPrimaryIp added in v1.9.0

func LookupPrimaryIp(ctx *pulumi.Context, args *LookupPrimaryIpArgs, opts ...pulumi.InvokeOption) (*LookupPrimaryIpResult, error)

Provides details about a Hetzner Cloud Primary IP.

This resource can be useful when you need to determine a Primary IP ID based on the IP address.

Side note:

If a server is getting created, it has to have a primary ip. If a server is getting created without defining primary ips, two of them (one ipv4 and one ipv6) getting created & attached. Currently, Primary IPs can be only attached to servers.

## Example Usage

Data Source: PrimaryIp

Provides details about a Hetzner Cloud Primary IP. This resource can be useful when you need to determine a Primary IP ID based on the IP address.

### Additional Examples

<!--Start PulumiCodeChooser --> ```go 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.LookupPrimaryIp(ctx, &hcloud.LookupPrimaryIpArgs{
			IpAddress: pulumi.StringRef("1.2.3.4"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupPrimaryIp(ctx, &hcloud.LookupPrimaryIpArgs{
			Name: pulumi.StringRef("primary_ip_1"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupPrimaryIp(ctx, &hcloud.LookupPrimaryIpArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		// Link a server to an existing primary IP
		_, err = hcloud.NewServer(ctx, "serverTest", &hcloud.ServerArgs{
			Image:      pulumi.String("ubuntu-20.04"),
			ServerType: pulumi.String("cx11"),
			Datacenter: pulumi.String("fsn1-dc14"),
			Labels: pulumi.Map{
				"test": pulumi.Any("tessst1"),
			},
			PublicNets: hcloud.ServerPublicNetArray{
				&hcloud.ServerPublicNetArgs{
					Ipv4: pulumi.Any(hcloud_primary_ip.Ip_1.Id),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupPrimaryIpResultOutput added in v1.9.0

type LookupPrimaryIpResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPrimaryIp.

func LookupPrimaryIpOutput added in v1.9.0

func (LookupPrimaryIpResultOutput) AssigneeId added in v1.9.0

(int) ID of the assigned resource.

func (LookupPrimaryIpResultOutput) AssigneeType added in v1.9.0

(string) The type of the assigned resource.

func (LookupPrimaryIpResultOutput) AutoDelete added in v1.9.0

(bool) Whether auto delete is enabled.

func (LookupPrimaryIpResultOutput) Datacenter added in v1.9.0

(string) The datacenter name of the Primary IP.

func (LookupPrimaryIpResultOutput) DeleteProtection added in v1.9.0

func (o LookupPrimaryIpResultOutput) DeleteProtection() pulumi.BoolOutput

(bool) Whether delete protection is enabled.

func (LookupPrimaryIpResultOutput) ElementType added in v1.9.0

func (LookupPrimaryIpResultOutput) Id added in v1.9.0

(int) Unique ID of the Primary IP.

func (LookupPrimaryIpResultOutput) IpAddress added in v1.9.0

(string) IP Address of the Primary IP.

func (LookupPrimaryIpResultOutput) IpNetwork added in v1.9.0

(string) IPv6 subnet of the Primary IP for IPv6 addresses. (Only set if `type` is `ipv6`)

func (LookupPrimaryIpResultOutput) Labels added in v1.9.0

(string) Description of the Primary IP.

func (LookupPrimaryIpResultOutput) Name added in v1.9.0

(string) Name of the Primary IP.

func (LookupPrimaryIpResultOutput) ToLookupPrimaryIpResultOutput added in v1.9.0

func (o LookupPrimaryIpResultOutput) ToLookupPrimaryIpResultOutput() LookupPrimaryIpResultOutput

func (LookupPrimaryIpResultOutput) ToLookupPrimaryIpResultOutputWithContext added in v1.9.0

func (o LookupPrimaryIpResultOutput) ToLookupPrimaryIpResultOutputWithContext(ctx context.Context) LookupPrimaryIpResultOutput

func (LookupPrimaryIpResultOutput) Type added in v1.9.0

(string) Type of the Primary IP.

func (LookupPrimaryIpResultOutput) WithSelector added in v1.9.0

type LookupServerArgs

type LookupServerArgs struct {
	// ID of the server.
	Id *int `pulumi:"id"`
	// Name of the server.
	Name *string `pulumi:"name"`
	// (Optional, string) Placement Group ID the server is assigned to.
	PlacementGroupId *int `pulumi:"placementGroupId"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector *string `pulumi:"withSelector"`
	// List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
	WithStatuses []string `pulumi:"withStatuses"`
}

A collection of arguments for invoking getServer.

type LookupServerOutputArgs added in v1.6.0

type LookupServerOutputArgs struct {
	// ID of the server.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// Name of the server.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// (Optional, string) Placement Group ID the server is assigned to.
	PlacementGroupId pulumi.IntPtrInput `pulumi:"placementGroupId"`
	// Deprecated: Please use the withSelector property instead.
	Selector pulumi.StringPtrInput `pulumi:"selector"`
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
	// List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
	WithStatuses pulumi.StringArrayInput `pulumi:"withStatuses"`
}

A collection of arguments for invoking getServer.

func (LookupServerOutputArgs) ElementType added in v1.6.0

func (LookupServerOutputArgs) ElementType() reflect.Type

type LookupServerResult

type LookupServerResult struct {
	// (string) The backup window of the server, if enabled.
	BackupWindow string `pulumi:"backupWindow"`
	// (bool) Whether backups are enabled.
	Backups bool `pulumi:"backups"`
	// (string) The datacenter name.
	Datacenter string `pulumi:"datacenter"`
	// (bool) Whether delete protection is enabled.
	DeleteProtection bool `pulumi:"deleteProtection"`
	// (Optional, list) Firewall IDs the server is attached to.
	FirewallIds []int `pulumi:"firewallIds"`
	// (int) Unique ID of the server.
	Id int `pulumi:"id"`
	// (string) Name or ID of the image the server was created from.
	Image string `pulumi:"image"`
	// (string) The IPv4 address.
	Ipv4Address string `pulumi:"ipv4Address"`
	// (string) The first IPv6 address of the assigned network.
	Ipv6Address string `pulumi:"ipv6Address"`
	// (string) The IPv6 network.
	Ipv6Network string `pulumi:"ipv6Network"`
	// (string) ID or Name of the mounted ISO image. Architecture of ISO must equal the server (type) architecture.
	Iso string `pulumi:"iso"`
	// (map) User-defined labels (key-value pairs)
	Labels map[string]interface{} `pulumi:"labels"`
	// (string) The location name.
	Location string `pulumi:"location"`
	// (string) Name of the server.
	Name string `pulumi:"name"`
	// (Optional, string) Placement Group ID the server is assigned to.
	PlacementGroupId *int `pulumi:"placementGroupId"`
	// (int) The size of the primary disk in GB.
	PrimaryDiskSize int `pulumi:"primaryDiskSize"`
	// (bool) Whether rebuild protection is enabled.
	RebuildProtection bool   `pulumi:"rebuildProtection"`
	Rescue            string `pulumi:"rescue"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	// (string) Name of the server type.
	ServerType string `pulumi:"serverType"`
	// (string) The status of the server.
	Status       string   `pulumi:"status"`
	WithSelector *string  `pulumi:"withSelector"`
	WithStatuses []string `pulumi:"withStatuses"`
}

A collection of values returned by getServer.

func LookupServer

func LookupServer(ctx *pulumi.Context, args *LookupServerArgs, opts ...pulumi.InvokeOption) (*LookupServerResult, error)

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.LookupServer(ctx, &hcloud.LookupServerArgs{
			Name: pulumi.StringRef("my-server"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupServer(ctx, &hcloud.LookupServerArgs{
			Id: pulumi.IntRef(123),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupServer(ctx, &hcloud.LookupServerArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupServerResultOutput added in v1.6.0

type LookupServerResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServer.

func LookupServerOutput added in v1.6.0

func LookupServerOutput(ctx *pulumi.Context, args LookupServerOutputArgs, opts ...pulumi.InvokeOption) LookupServerResultOutput

func (LookupServerResultOutput) BackupWindow added in v1.6.0

func (o LookupServerResultOutput) BackupWindow() pulumi.StringOutput

(string) The backup window of the server, if enabled.

func (LookupServerResultOutput) Backups added in v1.6.0

(bool) Whether backups are enabled.

func (LookupServerResultOutput) Datacenter added in v1.6.0

(string) The datacenter name.

func (LookupServerResultOutput) DeleteProtection added in v1.6.0

func (o LookupServerResultOutput) DeleteProtection() pulumi.BoolOutput

(bool) Whether delete protection is enabled.

func (LookupServerResultOutput) ElementType added in v1.6.0

func (LookupServerResultOutput) ElementType() reflect.Type

func (LookupServerResultOutput) FirewallIds added in v1.6.0

(Optional, list) Firewall IDs the server is attached to.

func (LookupServerResultOutput) Id added in v1.6.0

(int) Unique ID of the server.

func (LookupServerResultOutput) Image added in v1.6.0

(string) Name or ID of the image the server was created from.

func (LookupServerResultOutput) Ipv4Address added in v1.6.0

(string) The IPv4 address.

func (LookupServerResultOutput) Ipv6Address added in v1.6.0

(string) The first IPv6 address of the assigned network.

func (LookupServerResultOutput) Ipv6Network added in v1.6.0

(string) The IPv6 network.

func (LookupServerResultOutput) Iso added in v1.6.0

(string) ID or Name of the mounted ISO image. Architecture of ISO must equal the server (type) architecture.

func (LookupServerResultOutput) Labels added in v1.6.0

(map) User-defined labels (key-value pairs)

func (LookupServerResultOutput) Location added in v1.6.0

(string) The location name.

func (LookupServerResultOutput) Name added in v1.6.0

(string) Name of the server.

func (LookupServerResultOutput) PlacementGroupId added in v1.6.0

func (o LookupServerResultOutput) PlacementGroupId() pulumi.IntPtrOutput

(Optional, string) Placement Group ID the server is assigned to.

func (LookupServerResultOutput) PrimaryDiskSize added in v1.17.0

func (o LookupServerResultOutput) PrimaryDiskSize() pulumi.IntOutput

(int) The size of the primary disk in GB.

func (LookupServerResultOutput) RebuildProtection added in v1.6.0

func (o LookupServerResultOutput) RebuildProtection() pulumi.BoolOutput

(bool) Whether rebuild protection is enabled.

func (LookupServerResultOutput) Rescue added in v1.6.0

func (LookupServerResultOutput) Selector deprecated added in v1.6.0

Deprecated: Please use the withSelector property instead.

func (LookupServerResultOutput) ServerType added in v1.6.0

(string) Name of the server type.

func (LookupServerResultOutput) Status added in v1.6.0

(string) The status of the server.

func (LookupServerResultOutput) ToLookupServerResultOutput added in v1.6.0

func (o LookupServerResultOutput) ToLookupServerResultOutput() LookupServerResultOutput

func (LookupServerResultOutput) ToLookupServerResultOutputWithContext added in v1.6.0

func (o LookupServerResultOutput) ToLookupServerResultOutputWithContext(ctx context.Context) LookupServerResultOutput

func (LookupServerResultOutput) WithSelector added in v1.6.0

func (LookupServerResultOutput) WithStatuses added in v1.6.0

type LookupSshKeyArgs

type LookupSshKeyArgs struct {
	// Fingerprint of the SSH Key.
	Fingerprint *string `pulumi:"fingerprint"`
	// ID of the SSH Key.
	Id     *int              `pulumi:"id"`
	Labels map[string]string `pulumi:"labels"`
	// Name of the SSH Key.
	Name *string `pulumi:"name"`
	// (string) Public Key of the SSH Key.
	PublicKey *string `pulumi:"publicKey"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector *string `pulumi:"withSelector"`
}

A collection of arguments for invoking getSshKey.

type LookupSshKeyOutputArgs added in v1.6.0

type LookupSshKeyOutputArgs struct {
	// Fingerprint of the SSH Key.
	Fingerprint pulumi.StringPtrInput `pulumi:"fingerprint"`
	// ID of the SSH Key.
	Id     pulumi.IntPtrInput    `pulumi:"id"`
	Labels pulumi.StringMapInput `pulumi:"labels"`
	// Name of the SSH Key.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// (string) Public Key of the SSH Key.
	PublicKey pulumi.StringPtrInput `pulumi:"publicKey"`
	// Deprecated: Please use the withSelector property instead.
	Selector pulumi.StringPtrInput `pulumi:"selector"`
	// [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
}

A collection of arguments for invoking getSshKey.

func (LookupSshKeyOutputArgs) ElementType added in v1.6.0

func (LookupSshKeyOutputArgs) ElementType() reflect.Type

type LookupSshKeyResult

type LookupSshKeyResult struct {
	// (string) Fingerprint of the SSH Key.
	Fingerprint string `pulumi:"fingerprint"`
	// (int) Unique ID of the SSH Key.
	Id     int               `pulumi:"id"`
	Labels map[string]string `pulumi:"labels"`
	// (string) Name of the SSH Key.
	Name string `pulumi:"name"`
	// (string) Public Key of the SSH Key.
	PublicKey string `pulumi:"publicKey"`
	// Deprecated: Please use the withSelector property instead.
	Selector     *string `pulumi:"selector"`
	WithSelector *string `pulumi:"withSelector"`
}

A collection of values returned by getSshKey.

func LookupSshKey

func LookupSshKey(ctx *pulumi.Context, args *LookupSshKeyArgs, opts ...pulumi.InvokeOption) (*LookupSshKeyResult, error)

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		sshKey1, err := hcloud.LookupSshKey(ctx, &hcloud.LookupSshKeyArgs{
			Id: pulumi.IntRef(1234),
		}, nil)
		if err != nil {
			return err
		}
		sshKey2, err := hcloud.LookupSshKey(ctx, &hcloud.LookupSshKeyArgs{
			Name: pulumi.StringRef("my-ssh-key"),
		}, nil)
		if err != nil {
			return err
		}
		sshKey3, err := hcloud.LookupSshKey(ctx, &hcloud.LookupSshKeyArgs{
			Fingerprint: pulumi.StringRef("43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupSshKey(ctx, &hcloud.LookupSshKeyArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.NewServer(ctx, "main", &hcloud.ServerArgs{
			SshKeys: pulumi.StringArray{
				pulumi.Int(sshKey1.Id),
				pulumi.Int(sshKey2.Id),
				pulumi.Int(sshKey3.Id),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupSshKeyResultOutput added in v1.6.0

type LookupSshKeyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSshKey.

func LookupSshKeyOutput added in v1.6.0

func LookupSshKeyOutput(ctx *pulumi.Context, args LookupSshKeyOutputArgs, opts ...pulumi.InvokeOption) LookupSshKeyResultOutput

func (LookupSshKeyResultOutput) ElementType added in v1.6.0

func (LookupSshKeyResultOutput) ElementType() reflect.Type

func (LookupSshKeyResultOutput) Fingerprint added in v1.6.0

(string) Fingerprint of the SSH Key.

func (LookupSshKeyResultOutput) Id added in v1.6.0

(int) Unique ID of the SSH Key.

func (LookupSshKeyResultOutput) Labels added in v1.6.0

func (LookupSshKeyResultOutput) Name added in v1.6.0

(string) Name of the SSH Key.

func (LookupSshKeyResultOutput) PublicKey added in v1.6.0

(string) Public Key of the SSH Key.

func (LookupSshKeyResultOutput) Selector deprecated added in v1.6.0

Deprecated: Please use the withSelector property instead.

func (LookupSshKeyResultOutput) ToLookupSshKeyResultOutput added in v1.6.0

func (o LookupSshKeyResultOutput) ToLookupSshKeyResultOutput() LookupSshKeyResultOutput

func (LookupSshKeyResultOutput) ToLookupSshKeyResultOutputWithContext added in v1.6.0

func (o LookupSshKeyResultOutput) ToLookupSshKeyResultOutputWithContext(ctx context.Context) LookupSshKeyResultOutput

func (LookupSshKeyResultOutput) WithSelector added in v1.6.0

type LookupVolumeArgs

type LookupVolumeArgs struct {
	// ID of the volume.
	Id *int `pulumi:"id"`
	// (string) The location name.
	Location *string `pulumi:"location"`
	// Name of the volume.
	Name *string `pulumi:"name"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	// (Optional, int) Server ID the volume is attached to
	ServerId *int `pulumi:"serverId"`
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector *string `pulumi:"withSelector"`
	// List only volumes with the specified status, could contain `creating` or `available`.
	WithStatuses []string `pulumi:"withStatuses"`
}

A collection of arguments for invoking getVolume.

type LookupVolumeOutputArgs added in v1.6.0

type LookupVolumeOutputArgs struct {
	// ID of the volume.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// (string) The location name.
	Location pulumi.StringPtrInput `pulumi:"location"`
	// Name of the volume.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Deprecated: Please use the withSelector property instead.
	Selector pulumi.StringPtrInput `pulumi:"selector"`
	// (Optional, int) Server ID the volume is attached to
	ServerId pulumi.IntPtrInput `pulumi:"serverId"`
	// Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
	WithSelector pulumi.StringPtrInput `pulumi:"withSelector"`
	// List only volumes with the specified status, could contain `creating` or `available`.
	WithStatuses pulumi.StringArrayInput `pulumi:"withStatuses"`
}

A collection of arguments for invoking getVolume.

func (LookupVolumeOutputArgs) ElementType added in v1.6.0

func (LookupVolumeOutputArgs) ElementType() reflect.Type

type LookupVolumeResult

type LookupVolumeResult struct {
	// (bool) Whether delete protection is enabled.
	DeleteProtection bool `pulumi:"deleteProtection"`
	// (int) Unique ID of the volume.
	Id int `pulumi:"id"`
	// (map) User-defined labels (key-value pairs).
	Labels map[string]interface{} `pulumi:"labels"`
	// (string) Device path on the file system for the Volume.
	LinuxDevice string `pulumi:"linuxDevice"`
	// (string) The location name.
	Location *string `pulumi:"location"`
	// (string) Name of the volume.
	Name string `pulumi:"name"`
	// Deprecated: Please use the withSelector property instead.
	Selector *string `pulumi:"selector"`
	// (Optional, int) Server ID the volume is attached to
	ServerId *int `pulumi:"serverId"`
	// (int) Size of the volume.
	Size         int      `pulumi:"size"`
	WithSelector *string  `pulumi:"withSelector"`
	WithStatuses []string `pulumi:"withStatuses"`
}

A collection of values returned by getVolume.

func LookupVolume

func LookupVolume(ctx *pulumi.Context, args *LookupVolumeArgs, opts ...pulumi.InvokeOption) (*LookupVolumeResult, error)

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.LookupVolume(ctx, &hcloud.LookupVolumeArgs{
			Id: pulumi.IntRef(1234),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupVolume(ctx, &hcloud.LookupVolumeArgs{
			Name: pulumi.StringRef("my-volume"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hcloud.LookupVolume(ctx, &hcloud.LookupVolumeArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupVolumeResultOutput added in v1.6.0

type LookupVolumeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVolume.

func LookupVolumeOutput added in v1.6.0

func LookupVolumeOutput(ctx *pulumi.Context, args LookupVolumeOutputArgs, opts ...pulumi.InvokeOption) LookupVolumeResultOutput

func (LookupVolumeResultOutput) DeleteProtection added in v1.6.0

func (o LookupVolumeResultOutput) DeleteProtection() pulumi.BoolOutput

(bool) Whether delete protection is enabled.

func (LookupVolumeResultOutput) ElementType added in v1.6.0

func (LookupVolumeResultOutput) ElementType() reflect.Type

func (LookupVolumeResultOutput) Id added in v1.6.0

(int) Unique ID of the volume.

func (LookupVolumeResultOutput) Labels added in v1.6.0

(map) User-defined labels (key-value pairs).

func (LookupVolumeResultOutput) LinuxDevice added in v1.6.0

(string) Device path on the file system for the Volume.

func (LookupVolumeResultOutput) Location added in v1.6.0

(string) The location name.

func (LookupVolumeResultOutput) Name added in v1.6.0

(string) Name of the volume.

func (LookupVolumeResultOutput) Selector deprecated added in v1.6.0

Deprecated: Please use the withSelector property instead.

func (LookupVolumeResultOutput) ServerId added in v1.6.0

(Optional, int) Server ID the volume is attached to

func (LookupVolumeResultOutput) Size added in v1.6.0

(int) Size of the volume.

func (LookupVolumeResultOutput) ToLookupVolumeResultOutput added in v1.6.0

func (o LookupVolumeResultOutput) ToLookupVolumeResultOutput() LookupVolumeResultOutput

func (LookupVolumeResultOutput) ToLookupVolumeResultOutputWithContext added in v1.6.0

func (o LookupVolumeResultOutput) ToLookupVolumeResultOutputWithContext(ctx context.Context) LookupVolumeResultOutput

func (LookupVolumeResultOutput) WithSelector added in v1.6.0

func (LookupVolumeResultOutput) WithStatuses added in v1.6.0

type ManagedCertificate added in v0.8.0

type ManagedCertificate struct {
	pulumi.CustomResourceState

	// (string) PEM encoded TLS certificate.
	Certificate pulumi.StringOutput `pulumi:"certificate"`
	// (string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
	Created pulumi.StringOutput `pulumi:"created"`
	// Domain names for which a certificate
	// should be obtained.
	DomainNames pulumi.StringArrayOutput `pulumi:"domainNames"`
	// (string) Fingerprint of the certificate.
	Fingerprint pulumi.StringOutput `pulumi:"fingerprint"`
	// User-defined labels (key-value pairs) the
	// certificate should be created with.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// Name of the Certificate.
	Name pulumi.StringOutput `pulumi:"name"`
	// (string) Point in time when the Certificate stops being valid (in ISO-8601 format).
	NotValidAfter pulumi.StringOutput `pulumi:"notValidAfter"`
	// (string) Point in time when the Certificate becomes valid (in ISO-8601 format).
	NotValidBefore pulumi.StringOutput `pulumi:"notValidBefore"`
	Type           pulumi.StringOutput `pulumi:"type"`
}

Obtain a Hetzner Cloud managed TLS certificate.

## Import

Managed certificates can be imported using their `id`:

hcl

```sh $ pulumi import hcloud:index/managedCertificate:ManagedCertificate sample_certificate id ```

func GetManagedCertificate added in v0.8.0

func GetManagedCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ManagedCertificateState, opts ...pulumi.ResourceOption) (*ManagedCertificate, error)

GetManagedCertificate gets an existing ManagedCertificate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewManagedCertificate added in v0.8.0

func NewManagedCertificate(ctx *pulumi.Context,
	name string, args *ManagedCertificateArgs, opts ...pulumi.ResourceOption) (*ManagedCertificate, error)

NewManagedCertificate registers a new resource with the given unique name, arguments, and options.

func (*ManagedCertificate) ElementType added in v0.8.0

func (*ManagedCertificate) ElementType() reflect.Type

func (*ManagedCertificate) ToManagedCertificateOutput added in v0.8.0

func (i *ManagedCertificate) ToManagedCertificateOutput() ManagedCertificateOutput

func (*ManagedCertificate) ToManagedCertificateOutputWithContext added in v0.8.0

func (i *ManagedCertificate) ToManagedCertificateOutputWithContext(ctx context.Context) ManagedCertificateOutput

type ManagedCertificateArgs added in v0.8.0

type ManagedCertificateArgs struct {
	// Domain names for which a certificate
	// should be obtained.
	DomainNames pulumi.StringArrayInput
	// User-defined labels (key-value pairs) the
	// certificate should be created with.
	Labels pulumi.MapInput
	// Name of the Certificate.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a ManagedCertificate resource.

func (ManagedCertificateArgs) ElementType added in v0.8.0

func (ManagedCertificateArgs) ElementType() reflect.Type

type ManagedCertificateArray added in v0.8.0

type ManagedCertificateArray []ManagedCertificateInput

func (ManagedCertificateArray) ElementType added in v0.8.0

func (ManagedCertificateArray) ElementType() reflect.Type

func (ManagedCertificateArray) ToManagedCertificateArrayOutput added in v0.8.0

func (i ManagedCertificateArray) ToManagedCertificateArrayOutput() ManagedCertificateArrayOutput

func (ManagedCertificateArray) ToManagedCertificateArrayOutputWithContext added in v0.8.0

func (i ManagedCertificateArray) ToManagedCertificateArrayOutputWithContext(ctx context.Context) ManagedCertificateArrayOutput

type ManagedCertificateArrayInput added in v0.8.0

type ManagedCertificateArrayInput interface {
	pulumi.Input

	ToManagedCertificateArrayOutput() ManagedCertificateArrayOutput
	ToManagedCertificateArrayOutputWithContext(context.Context) ManagedCertificateArrayOutput
}

ManagedCertificateArrayInput is an input type that accepts ManagedCertificateArray and ManagedCertificateArrayOutput values. You can construct a concrete instance of `ManagedCertificateArrayInput` via:

ManagedCertificateArray{ ManagedCertificateArgs{...} }

type ManagedCertificateArrayOutput added in v0.8.0

type ManagedCertificateArrayOutput struct{ *pulumi.OutputState }

func (ManagedCertificateArrayOutput) ElementType added in v0.8.0

func (ManagedCertificateArrayOutput) Index added in v0.8.0

func (ManagedCertificateArrayOutput) ToManagedCertificateArrayOutput added in v0.8.0

func (o ManagedCertificateArrayOutput) ToManagedCertificateArrayOutput() ManagedCertificateArrayOutput

func (ManagedCertificateArrayOutput) ToManagedCertificateArrayOutputWithContext added in v0.8.0

func (o ManagedCertificateArrayOutput) ToManagedCertificateArrayOutputWithContext(ctx context.Context) ManagedCertificateArrayOutput

type ManagedCertificateInput added in v0.8.0

type ManagedCertificateInput interface {
	pulumi.Input

	ToManagedCertificateOutput() ManagedCertificateOutput
	ToManagedCertificateOutputWithContext(ctx context.Context) ManagedCertificateOutput
}

type ManagedCertificateMap added in v0.8.0

type ManagedCertificateMap map[string]ManagedCertificateInput

func (ManagedCertificateMap) ElementType added in v0.8.0

func (ManagedCertificateMap) ElementType() reflect.Type

func (ManagedCertificateMap) ToManagedCertificateMapOutput added in v0.8.0

func (i ManagedCertificateMap) ToManagedCertificateMapOutput() ManagedCertificateMapOutput

func (ManagedCertificateMap) ToManagedCertificateMapOutputWithContext added in v0.8.0

func (i ManagedCertificateMap) ToManagedCertificateMapOutputWithContext(ctx context.Context) ManagedCertificateMapOutput

type ManagedCertificateMapInput added in v0.8.0

type ManagedCertificateMapInput interface {
	pulumi.Input

	ToManagedCertificateMapOutput() ManagedCertificateMapOutput
	ToManagedCertificateMapOutputWithContext(context.Context) ManagedCertificateMapOutput
}

ManagedCertificateMapInput is an input type that accepts ManagedCertificateMap and ManagedCertificateMapOutput values. You can construct a concrete instance of `ManagedCertificateMapInput` via:

ManagedCertificateMap{ "key": ManagedCertificateArgs{...} }

type ManagedCertificateMapOutput added in v0.8.0

type ManagedCertificateMapOutput struct{ *pulumi.OutputState }

func (ManagedCertificateMapOutput) ElementType added in v0.8.0

func (ManagedCertificateMapOutput) MapIndex added in v0.8.0

func (ManagedCertificateMapOutput) ToManagedCertificateMapOutput added in v0.8.0

func (o ManagedCertificateMapOutput) ToManagedCertificateMapOutput() ManagedCertificateMapOutput

func (ManagedCertificateMapOutput) ToManagedCertificateMapOutputWithContext added in v0.8.0

func (o ManagedCertificateMapOutput) ToManagedCertificateMapOutputWithContext(ctx context.Context) ManagedCertificateMapOutput

type ManagedCertificateOutput added in v0.8.0

type ManagedCertificateOutput struct{ *pulumi.OutputState }

func (ManagedCertificateOutput) Certificate added in v1.9.0

(string) PEM encoded TLS certificate.

func (ManagedCertificateOutput) Created added in v1.9.0

(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).

func (ManagedCertificateOutput) DomainNames added in v1.9.0

Domain names for which a certificate should be obtained.

func (ManagedCertificateOutput) ElementType added in v0.8.0

func (ManagedCertificateOutput) ElementType() reflect.Type

func (ManagedCertificateOutput) Fingerprint added in v1.9.0

(string) Fingerprint of the certificate.

func (ManagedCertificateOutput) Labels added in v1.9.0

User-defined labels (key-value pairs) the certificate should be created with.

func (ManagedCertificateOutput) Name added in v1.9.0

Name of the Certificate.

func (ManagedCertificateOutput) NotValidAfter added in v1.9.0

func (o ManagedCertificateOutput) NotValidAfter() pulumi.StringOutput

(string) Point in time when the Certificate stops being valid (in ISO-8601 format).

func (ManagedCertificateOutput) NotValidBefore added in v1.9.0

func (o ManagedCertificateOutput) NotValidBefore() pulumi.StringOutput

(string) Point in time when the Certificate becomes valid (in ISO-8601 format).

func (ManagedCertificateOutput) ToManagedCertificateOutput added in v0.8.0

func (o ManagedCertificateOutput) ToManagedCertificateOutput() ManagedCertificateOutput

func (ManagedCertificateOutput) ToManagedCertificateOutputWithContext added in v0.8.0

func (o ManagedCertificateOutput) ToManagedCertificateOutputWithContext(ctx context.Context) ManagedCertificateOutput

func (ManagedCertificateOutput) Type added in v1.9.0

type ManagedCertificateState added in v0.8.0

type ManagedCertificateState struct {
	// (string) PEM encoded TLS certificate.
	Certificate pulumi.StringPtrInput
	// (string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
	Created pulumi.StringPtrInput
	// Domain names for which a certificate
	// should be obtained.
	DomainNames pulumi.StringArrayInput
	// (string) Fingerprint of the certificate.
	Fingerprint pulumi.StringPtrInput
	// User-defined labels (key-value pairs) the
	// certificate should be created with.
	Labels pulumi.MapInput
	// Name of the Certificate.
	Name pulumi.StringPtrInput
	// (string) Point in time when the Certificate stops being valid (in ISO-8601 format).
	NotValidAfter pulumi.StringPtrInput
	// (string) Point in time when the Certificate becomes valid (in ISO-8601 format).
	NotValidBefore pulumi.StringPtrInput
	Type           pulumi.StringPtrInput
}

func (ManagedCertificateState) ElementType added in v0.8.0

func (ManagedCertificateState) ElementType() reflect.Type

type Network

type Network struct {
	pulumi.CustomResourceState

	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrOutput `pulumi:"deleteProtection"`
	// Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
	ExposeRoutesToVswitch pulumi.BoolPtrOutput `pulumi:"exposeRoutesToVswitch"`
	// IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
	IpRange pulumi.StringOutput `pulumi:"ipRange"`
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// Name of the Network to create (must be unique per project).
	Name pulumi.StringOutput `pulumi:"name"`
}

Provides a Hetzner Cloud Network to represent a Network in the Hetzner Cloud.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.NewNetwork(ctx, "privNet", &hcloud.NetworkArgs{
			IpRange: pulumi.String("10.0.1.0/24"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Networks can be imported using its `id`:

```sh $ pulumi import hcloud:index/network:Network myip id ```

func GetNetwork

func GetNetwork(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkState, opts ...pulumi.ResourceOption) (*Network, error)

GetNetwork gets an existing Network resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNetwork

func NewNetwork(ctx *pulumi.Context,
	name string, args *NetworkArgs, opts ...pulumi.ResourceOption) (*Network, error)

NewNetwork registers a new resource with the given unique name, arguments, and options.

func (*Network) ElementType added in v0.4.1

func (*Network) ElementType() reflect.Type

func (*Network) ToNetworkOutput added in v0.4.1

func (i *Network) ToNetworkOutput() NetworkOutput

func (*Network) ToNetworkOutputWithContext added in v0.4.1

func (i *Network) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput

type NetworkArgs

type NetworkArgs struct {
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
	ExposeRoutesToVswitch pulumi.BoolPtrInput
	// IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
	IpRange pulumi.StringInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Name of the Network to create (must be unique per project).
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Network resource.

func (NetworkArgs) ElementType

func (NetworkArgs) ElementType() reflect.Type

type NetworkArray added in v0.6.2

type NetworkArray []NetworkInput

func (NetworkArray) ElementType added in v0.6.2

func (NetworkArray) ElementType() reflect.Type

func (NetworkArray) ToNetworkArrayOutput added in v0.6.2

func (i NetworkArray) ToNetworkArrayOutput() NetworkArrayOutput

func (NetworkArray) ToNetworkArrayOutputWithContext added in v0.6.2

func (i NetworkArray) ToNetworkArrayOutputWithContext(ctx context.Context) NetworkArrayOutput

type NetworkArrayInput added in v0.6.2

type NetworkArrayInput interface {
	pulumi.Input

	ToNetworkArrayOutput() NetworkArrayOutput
	ToNetworkArrayOutputWithContext(context.Context) NetworkArrayOutput
}

NetworkArrayInput is an input type that accepts NetworkArray and NetworkArrayOutput values. You can construct a concrete instance of `NetworkArrayInput` via:

NetworkArray{ NetworkArgs{...} }

type NetworkArrayOutput added in v0.6.2

type NetworkArrayOutput struct{ *pulumi.OutputState }

func (NetworkArrayOutput) ElementType added in v0.6.2

func (NetworkArrayOutput) ElementType() reflect.Type

func (NetworkArrayOutput) Index added in v0.6.2

func (NetworkArrayOutput) ToNetworkArrayOutput added in v0.6.2

func (o NetworkArrayOutput) ToNetworkArrayOutput() NetworkArrayOutput

func (NetworkArrayOutput) ToNetworkArrayOutputWithContext added in v0.6.2

func (o NetworkArrayOutput) ToNetworkArrayOutputWithContext(ctx context.Context) NetworkArrayOutput

type NetworkInput added in v0.4.1

type NetworkInput interface {
	pulumi.Input

	ToNetworkOutput() NetworkOutput
	ToNetworkOutputWithContext(ctx context.Context) NetworkOutput
}

type NetworkMap added in v0.6.2

type NetworkMap map[string]NetworkInput

func (NetworkMap) ElementType added in v0.6.2

func (NetworkMap) ElementType() reflect.Type

func (NetworkMap) ToNetworkMapOutput added in v0.6.2

func (i NetworkMap) ToNetworkMapOutput() NetworkMapOutput

func (NetworkMap) ToNetworkMapOutputWithContext added in v0.6.2

func (i NetworkMap) ToNetworkMapOutputWithContext(ctx context.Context) NetworkMapOutput

type NetworkMapInput added in v0.6.2

type NetworkMapInput interface {
	pulumi.Input

	ToNetworkMapOutput() NetworkMapOutput
	ToNetworkMapOutputWithContext(context.Context) NetworkMapOutput
}

NetworkMapInput is an input type that accepts NetworkMap and NetworkMapOutput values. You can construct a concrete instance of `NetworkMapInput` via:

NetworkMap{ "key": NetworkArgs{...} }

type NetworkMapOutput added in v0.6.2

type NetworkMapOutput struct{ *pulumi.OutputState }

func (NetworkMapOutput) ElementType added in v0.6.2

func (NetworkMapOutput) ElementType() reflect.Type

func (NetworkMapOutput) MapIndex added in v0.6.2

func (NetworkMapOutput) ToNetworkMapOutput added in v0.6.2

func (o NetworkMapOutput) ToNetworkMapOutput() NetworkMapOutput

func (NetworkMapOutput) ToNetworkMapOutputWithContext added in v0.6.2

func (o NetworkMapOutput) ToNetworkMapOutputWithContext(ctx context.Context) NetworkMapOutput

type NetworkOutput added in v0.4.1

type NetworkOutput struct{ *pulumi.OutputState }

func (NetworkOutput) DeleteProtection added in v1.9.0

func (o NetworkOutput) DeleteProtection() pulumi.BoolPtrOutput

Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.

func (NetworkOutput) ElementType added in v0.4.1

func (NetworkOutput) ElementType() reflect.Type

func (NetworkOutput) ExposeRoutesToVswitch added in v1.13.0

func (o NetworkOutput) ExposeRoutesToVswitch() pulumi.BoolPtrOutput

Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.

func (NetworkOutput) IpRange added in v1.9.0

func (o NetworkOutput) IpRange() pulumi.StringOutput

IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.

func (NetworkOutput) Labels added in v1.9.0

func (o NetworkOutput) Labels() pulumi.MapOutput

User-defined labels (key-value pairs) should be created with.

func (NetworkOutput) Name added in v1.9.0

Name of the Network to create (must be unique per project).

func (NetworkOutput) ToNetworkOutput added in v0.4.1

func (o NetworkOutput) ToNetworkOutput() NetworkOutput

func (NetworkOutput) ToNetworkOutputWithContext added in v0.4.1

func (o NetworkOutput) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput

type NetworkRoute

type NetworkRoute struct {
	pulumi.CustomResourceState

	// Destination network or host of this route. Must be a subnet of the ipRange of the Network. Must not overlap with an existing ipRange in any subnets or with any destinations in other routes or with the first ip of the networks ipRange or with 172.31.1.1.
	Destination pulumi.StringOutput `pulumi:"destination"`
	// Gateway for the route. Cannot be the first ip of the networks ipRange and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
	Gateway pulumi.StringOutput `pulumi:"gateway"`
	// ID of the Network the route should be added to.
	NetworkId pulumi.IntOutput `pulumi:"networkId"`
}

Provides a Hetzner Cloud Network Route to represent a Network route in the Hetzner Cloud.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		mynet, err := hcloud.NewNetwork(ctx, "mynet", &hcloud.NetworkArgs{
			IpRange: pulumi.String("10.0.0.0/8"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewNetworkRoute(ctx, "privNet", &hcloud.NetworkRouteArgs{
			NetworkId:   mynet.ID(),
			Destination: pulumi.String("10.100.1.0/24"),
			Gateway:     pulumi.String("10.0.1.1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Network Route entries can be imported using a compound ID with the following format:

`<network-id>-<destination>`

```sh $ pulumi import hcloud:index/networkRoute:NetworkRoute myroute 123-10.0.0.0/16 ```

func GetNetworkRoute

func GetNetworkRoute(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkRouteState, opts ...pulumi.ResourceOption) (*NetworkRoute, error)

GetNetworkRoute gets an existing NetworkRoute resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNetworkRoute

func NewNetworkRoute(ctx *pulumi.Context,
	name string, args *NetworkRouteArgs, opts ...pulumi.ResourceOption) (*NetworkRoute, error)

NewNetworkRoute registers a new resource with the given unique name, arguments, and options.

func (*NetworkRoute) ElementType added in v0.4.1

func (*NetworkRoute) ElementType() reflect.Type

func (*NetworkRoute) ToNetworkRouteOutput added in v0.4.1

func (i *NetworkRoute) ToNetworkRouteOutput() NetworkRouteOutput

func (*NetworkRoute) ToNetworkRouteOutputWithContext added in v0.4.1

func (i *NetworkRoute) ToNetworkRouteOutputWithContext(ctx context.Context) NetworkRouteOutput

type NetworkRouteArgs

type NetworkRouteArgs struct {
	// Destination network or host of this route. Must be a subnet of the ipRange of the Network. Must not overlap with an existing ipRange in any subnets or with any destinations in other routes or with the first ip of the networks ipRange or with 172.31.1.1.
	Destination pulumi.StringInput
	// Gateway for the route. Cannot be the first ip of the networks ipRange and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
	Gateway pulumi.StringInput
	// ID of the Network the route should be added to.
	NetworkId pulumi.IntInput
}

The set of arguments for constructing a NetworkRoute resource.

func (NetworkRouteArgs) ElementType

func (NetworkRouteArgs) ElementType() reflect.Type

type NetworkRouteArray added in v0.6.2

type NetworkRouteArray []NetworkRouteInput

func (NetworkRouteArray) ElementType added in v0.6.2

func (NetworkRouteArray) ElementType() reflect.Type

func (NetworkRouteArray) ToNetworkRouteArrayOutput added in v0.6.2

func (i NetworkRouteArray) ToNetworkRouteArrayOutput() NetworkRouteArrayOutput

func (NetworkRouteArray) ToNetworkRouteArrayOutputWithContext added in v0.6.2

func (i NetworkRouteArray) ToNetworkRouteArrayOutputWithContext(ctx context.Context) NetworkRouteArrayOutput

type NetworkRouteArrayInput added in v0.6.2

type NetworkRouteArrayInput interface {
	pulumi.Input

	ToNetworkRouteArrayOutput() NetworkRouteArrayOutput
	ToNetworkRouteArrayOutputWithContext(context.Context) NetworkRouteArrayOutput
}

NetworkRouteArrayInput is an input type that accepts NetworkRouteArray and NetworkRouteArrayOutput values. You can construct a concrete instance of `NetworkRouteArrayInput` via:

NetworkRouteArray{ NetworkRouteArgs{...} }

type NetworkRouteArrayOutput added in v0.6.2

type NetworkRouteArrayOutput struct{ *pulumi.OutputState }

func (NetworkRouteArrayOutput) ElementType added in v0.6.2

func (NetworkRouteArrayOutput) ElementType() reflect.Type

func (NetworkRouteArrayOutput) Index added in v0.6.2

func (NetworkRouteArrayOutput) ToNetworkRouteArrayOutput added in v0.6.2

func (o NetworkRouteArrayOutput) ToNetworkRouteArrayOutput() NetworkRouteArrayOutput

func (NetworkRouteArrayOutput) ToNetworkRouteArrayOutputWithContext added in v0.6.2

func (o NetworkRouteArrayOutput) ToNetworkRouteArrayOutputWithContext(ctx context.Context) NetworkRouteArrayOutput

type NetworkRouteInput added in v0.4.1

type NetworkRouteInput interface {
	pulumi.Input

	ToNetworkRouteOutput() NetworkRouteOutput
	ToNetworkRouteOutputWithContext(ctx context.Context) NetworkRouteOutput
}

type NetworkRouteMap added in v0.6.2

type NetworkRouteMap map[string]NetworkRouteInput

func (NetworkRouteMap) ElementType added in v0.6.2

func (NetworkRouteMap) ElementType() reflect.Type

func (NetworkRouteMap) ToNetworkRouteMapOutput added in v0.6.2

func (i NetworkRouteMap) ToNetworkRouteMapOutput() NetworkRouteMapOutput

func (NetworkRouteMap) ToNetworkRouteMapOutputWithContext added in v0.6.2

func (i NetworkRouteMap) ToNetworkRouteMapOutputWithContext(ctx context.Context) NetworkRouteMapOutput

type NetworkRouteMapInput added in v0.6.2

type NetworkRouteMapInput interface {
	pulumi.Input

	ToNetworkRouteMapOutput() NetworkRouteMapOutput
	ToNetworkRouteMapOutputWithContext(context.Context) NetworkRouteMapOutput
}

NetworkRouteMapInput is an input type that accepts NetworkRouteMap and NetworkRouteMapOutput values. You can construct a concrete instance of `NetworkRouteMapInput` via:

NetworkRouteMap{ "key": NetworkRouteArgs{...} }

type NetworkRouteMapOutput added in v0.6.2

type NetworkRouteMapOutput struct{ *pulumi.OutputState }

func (NetworkRouteMapOutput) ElementType added in v0.6.2

func (NetworkRouteMapOutput) ElementType() reflect.Type

func (NetworkRouteMapOutput) MapIndex added in v0.6.2

func (NetworkRouteMapOutput) ToNetworkRouteMapOutput added in v0.6.2

func (o NetworkRouteMapOutput) ToNetworkRouteMapOutput() NetworkRouteMapOutput

func (NetworkRouteMapOutput) ToNetworkRouteMapOutputWithContext added in v0.6.2

func (o NetworkRouteMapOutput) ToNetworkRouteMapOutputWithContext(ctx context.Context) NetworkRouteMapOutput

type NetworkRouteOutput added in v0.4.1

type NetworkRouteOutput struct{ *pulumi.OutputState }

func (NetworkRouteOutput) Destination added in v1.9.0

func (o NetworkRouteOutput) Destination() pulumi.StringOutput

Destination network or host of this route. Must be a subnet of the ipRange of the Network. Must not overlap with an existing ipRange in any subnets or with any destinations in other routes or with the first ip of the networks ipRange or with 172.31.1.1.

func (NetworkRouteOutput) ElementType added in v0.4.1

func (NetworkRouteOutput) ElementType() reflect.Type

func (NetworkRouteOutput) Gateway added in v1.9.0

Gateway for the route. Cannot be the first ip of the networks ipRange and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.

func (NetworkRouteOutput) NetworkId added in v1.9.0

func (o NetworkRouteOutput) NetworkId() pulumi.IntOutput

ID of the Network the route should be added to.

func (NetworkRouteOutput) ToNetworkRouteOutput added in v0.4.1

func (o NetworkRouteOutput) ToNetworkRouteOutput() NetworkRouteOutput

func (NetworkRouteOutput) ToNetworkRouteOutputWithContext added in v0.4.1

func (o NetworkRouteOutput) ToNetworkRouteOutputWithContext(ctx context.Context) NetworkRouteOutput

type NetworkRouteState

type NetworkRouteState struct {
	// Destination network or host of this route. Must be a subnet of the ipRange of the Network. Must not overlap with an existing ipRange in any subnets or with any destinations in other routes or with the first ip of the networks ipRange or with 172.31.1.1.
	Destination pulumi.StringPtrInput
	// Gateway for the route. Cannot be the first ip of the networks ipRange and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
	Gateway pulumi.StringPtrInput
	// ID of the Network the route should be added to.
	NetworkId pulumi.IntPtrInput
}

func (NetworkRouteState) ElementType

func (NetworkRouteState) ElementType() reflect.Type

type NetworkState

type NetworkState struct {
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
	ExposeRoutesToVswitch pulumi.BoolPtrInput
	// IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
	IpRange pulumi.StringPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Name of the Network to create (must be unique per project).
	Name pulumi.StringPtrInput
}

func (NetworkState) ElementType

func (NetworkState) ElementType() reflect.Type

type NetworkSubnet

type NetworkSubnet struct {
	pulumi.CustomResourceState

	Gateway pulumi.StringOutput `pulumi:"gateway"`
	// Range to allocate IPs from. Must be a subnet of the ipRange of the Network and must not overlap with any other subnets or with any destinations in routes.
	IpRange pulumi.StringOutput `pulumi:"ipRange"`
	// ID of the Network the subnet should be added to.
	NetworkId pulumi.IntOutput `pulumi:"networkId"`
	// Name of network zone.
	NetworkZone pulumi.StringOutput `pulumi:"networkZone"`
	// Type of subnet. `server`, `cloud` or `vswitch`
	Type pulumi.StringOutput `pulumi:"type"`
	// ID of the vswitch, Required if type is `vswitch`
	VswitchId pulumi.IntPtrOutput `pulumi:"vswitchId"`
}

Provides a Hetzner Cloud Network Subnet to represent a Subnet in the Hetzner Cloud.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		mynet, err := hcloud.NewNetwork(ctx, "mynet", &hcloud.NetworkArgs{
			IpRange: pulumi.String("10.0.0.0/8"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewNetworkSubnet(ctx, "foonet", &hcloud.NetworkSubnetArgs{
			NetworkId:   mynet.ID(),
			Type:        pulumi.String("cloud"),
			NetworkZone: pulumi.String("eu-central"),
			IpRange:     pulumi.String("10.0.1.0/24"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Network Subnet entries can be imported using a compound ID with the following format:

`<network-id>-<ip_range>`

```sh $ pulumi import hcloud:index/networkSubnet:NetworkSubnet mysubnet 123-10.0.0.0/24 ```

func GetNetworkSubnet

func GetNetworkSubnet(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkSubnetState, opts ...pulumi.ResourceOption) (*NetworkSubnet, error)

GetNetworkSubnet gets an existing NetworkSubnet resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNetworkSubnet

func NewNetworkSubnet(ctx *pulumi.Context,
	name string, args *NetworkSubnetArgs, opts ...pulumi.ResourceOption) (*NetworkSubnet, error)

NewNetworkSubnet registers a new resource with the given unique name, arguments, and options.

func (*NetworkSubnet) ElementType added in v0.4.1

func (*NetworkSubnet) ElementType() reflect.Type

func (*NetworkSubnet) ToNetworkSubnetOutput added in v0.4.1

func (i *NetworkSubnet) ToNetworkSubnetOutput() NetworkSubnetOutput

func (*NetworkSubnet) ToNetworkSubnetOutputWithContext added in v0.4.1

func (i *NetworkSubnet) ToNetworkSubnetOutputWithContext(ctx context.Context) NetworkSubnetOutput

type NetworkSubnetArgs

type NetworkSubnetArgs struct {
	// Range to allocate IPs from. Must be a subnet of the ipRange of the Network and must not overlap with any other subnets or with any destinations in routes.
	IpRange pulumi.StringInput
	// ID of the Network the subnet should be added to.
	NetworkId pulumi.IntInput
	// Name of network zone.
	NetworkZone pulumi.StringInput
	// Type of subnet. `server`, `cloud` or `vswitch`
	Type pulumi.StringInput
	// ID of the vswitch, Required if type is `vswitch`
	VswitchId pulumi.IntPtrInput
}

The set of arguments for constructing a NetworkSubnet resource.

func (NetworkSubnetArgs) ElementType

func (NetworkSubnetArgs) ElementType() reflect.Type

type NetworkSubnetArray added in v0.6.2

type NetworkSubnetArray []NetworkSubnetInput

func (NetworkSubnetArray) ElementType added in v0.6.2

func (NetworkSubnetArray) ElementType() reflect.Type

func (NetworkSubnetArray) ToNetworkSubnetArrayOutput added in v0.6.2

func (i NetworkSubnetArray) ToNetworkSubnetArrayOutput() NetworkSubnetArrayOutput

func (NetworkSubnetArray) ToNetworkSubnetArrayOutputWithContext added in v0.6.2

func (i NetworkSubnetArray) ToNetworkSubnetArrayOutputWithContext(ctx context.Context) NetworkSubnetArrayOutput

type NetworkSubnetArrayInput added in v0.6.2

type NetworkSubnetArrayInput interface {
	pulumi.Input

	ToNetworkSubnetArrayOutput() NetworkSubnetArrayOutput
	ToNetworkSubnetArrayOutputWithContext(context.Context) NetworkSubnetArrayOutput
}

NetworkSubnetArrayInput is an input type that accepts NetworkSubnetArray and NetworkSubnetArrayOutput values. You can construct a concrete instance of `NetworkSubnetArrayInput` via:

NetworkSubnetArray{ NetworkSubnetArgs{...} }

type NetworkSubnetArrayOutput added in v0.6.2

type NetworkSubnetArrayOutput struct{ *pulumi.OutputState }

func (NetworkSubnetArrayOutput) ElementType added in v0.6.2

func (NetworkSubnetArrayOutput) ElementType() reflect.Type

func (NetworkSubnetArrayOutput) Index added in v0.6.2

func (NetworkSubnetArrayOutput) ToNetworkSubnetArrayOutput added in v0.6.2

func (o NetworkSubnetArrayOutput) ToNetworkSubnetArrayOutput() NetworkSubnetArrayOutput

func (NetworkSubnetArrayOutput) ToNetworkSubnetArrayOutputWithContext added in v0.6.2

func (o NetworkSubnetArrayOutput) ToNetworkSubnetArrayOutputWithContext(ctx context.Context) NetworkSubnetArrayOutput

type NetworkSubnetInput added in v0.4.1

type NetworkSubnetInput interface {
	pulumi.Input

	ToNetworkSubnetOutput() NetworkSubnetOutput
	ToNetworkSubnetOutputWithContext(ctx context.Context) NetworkSubnetOutput
}

type NetworkSubnetMap added in v0.6.2

type NetworkSubnetMap map[string]NetworkSubnetInput

func (NetworkSubnetMap) ElementType added in v0.6.2

func (NetworkSubnetMap) ElementType() reflect.Type

func (NetworkSubnetMap) ToNetworkSubnetMapOutput added in v0.6.2

func (i NetworkSubnetMap) ToNetworkSubnetMapOutput() NetworkSubnetMapOutput

func (NetworkSubnetMap) ToNetworkSubnetMapOutputWithContext added in v0.6.2

func (i NetworkSubnetMap) ToNetworkSubnetMapOutputWithContext(ctx context.Context) NetworkSubnetMapOutput

type NetworkSubnetMapInput added in v0.6.2

type NetworkSubnetMapInput interface {
	pulumi.Input

	ToNetworkSubnetMapOutput() NetworkSubnetMapOutput
	ToNetworkSubnetMapOutputWithContext(context.Context) NetworkSubnetMapOutput
}

NetworkSubnetMapInput is an input type that accepts NetworkSubnetMap and NetworkSubnetMapOutput values. You can construct a concrete instance of `NetworkSubnetMapInput` via:

NetworkSubnetMap{ "key": NetworkSubnetArgs{...} }

type NetworkSubnetMapOutput added in v0.6.2

type NetworkSubnetMapOutput struct{ *pulumi.OutputState }

func (NetworkSubnetMapOutput) ElementType added in v0.6.2

func (NetworkSubnetMapOutput) ElementType() reflect.Type

func (NetworkSubnetMapOutput) MapIndex added in v0.6.2

func (NetworkSubnetMapOutput) ToNetworkSubnetMapOutput added in v0.6.2

func (o NetworkSubnetMapOutput) ToNetworkSubnetMapOutput() NetworkSubnetMapOutput

func (NetworkSubnetMapOutput) ToNetworkSubnetMapOutputWithContext added in v0.6.2

func (o NetworkSubnetMapOutput) ToNetworkSubnetMapOutputWithContext(ctx context.Context) NetworkSubnetMapOutput

type NetworkSubnetOutput added in v0.4.1

type NetworkSubnetOutput struct{ *pulumi.OutputState }

func (NetworkSubnetOutput) ElementType added in v0.4.1

func (NetworkSubnetOutput) ElementType() reflect.Type

func (NetworkSubnetOutput) Gateway added in v1.9.0

func (NetworkSubnetOutput) IpRange added in v1.9.0

Range to allocate IPs from. Must be a subnet of the ipRange of the Network and must not overlap with any other subnets or with any destinations in routes.

func (NetworkSubnetOutput) NetworkId added in v1.9.0

func (o NetworkSubnetOutput) NetworkId() pulumi.IntOutput

ID of the Network the subnet should be added to.

func (NetworkSubnetOutput) NetworkZone added in v1.9.0

func (o NetworkSubnetOutput) NetworkZone() pulumi.StringOutput

Name of network zone.

func (NetworkSubnetOutput) ToNetworkSubnetOutput added in v0.4.1

func (o NetworkSubnetOutput) ToNetworkSubnetOutput() NetworkSubnetOutput

func (NetworkSubnetOutput) ToNetworkSubnetOutputWithContext added in v0.4.1

func (o NetworkSubnetOutput) ToNetworkSubnetOutputWithContext(ctx context.Context) NetworkSubnetOutput

func (NetworkSubnetOutput) Type added in v1.9.0

Type of subnet. `server`, `cloud` or `vswitch`

func (NetworkSubnetOutput) VswitchId added in v1.9.0

func (o NetworkSubnetOutput) VswitchId() pulumi.IntPtrOutput

ID of the vswitch, Required if type is `vswitch`

type NetworkSubnetState

type NetworkSubnetState struct {
	Gateway pulumi.StringPtrInput
	// Range to allocate IPs from. Must be a subnet of the ipRange of the Network and must not overlap with any other subnets or with any destinations in routes.
	IpRange pulumi.StringPtrInput
	// ID of the Network the subnet should be added to.
	NetworkId pulumi.IntPtrInput
	// Name of network zone.
	NetworkZone pulumi.StringPtrInput
	// Type of subnet. `server`, `cloud` or `vswitch`
	Type pulumi.StringPtrInput
	// ID of the vswitch, Required if type is `vswitch`
	VswitchId pulumi.IntPtrInput
}

func (NetworkSubnetState) ElementType

func (NetworkSubnetState) ElementType() reflect.Type

type PlacementGroup added in v1.3.0

type PlacementGroup struct {
	pulumi.CustomResourceState

	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// Name of the Placement Group.
	Name    pulumi.StringOutput   `pulumi:"name"`
	Servers pulumi.IntArrayOutput `pulumi:"servers"`
	// Type of the Placement Group.
	Type pulumi.StringOutput `pulumi:"type"`
}

Provides a Hetzner Cloud Placement Group to represent a Placement Group in the Hetzner Cloud.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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.NewPlacementGroup(ctx, "my-placement-group", &hcloud.PlacementGroupArgs{
			Type: pulumi.String("spread"),
			Labels: pulumi.Map{
				"key": pulumi.Any("value"),
			},
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image:            pulumi.String("debian-11"),
			ServerType:       pulumi.String("cx11"),
			PlacementGroupId: my_placement_group.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Placement Groups can be imported using its `id`:

```sh $ pulumi import hcloud:index/placementGroup:PlacementGroup my-placement-group id ```

func GetPlacementGroup added in v1.3.0

func GetPlacementGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PlacementGroupState, opts ...pulumi.ResourceOption) (*PlacementGroup, error)

GetPlacementGroup gets an existing PlacementGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPlacementGroup added in v1.3.0

func NewPlacementGroup(ctx *pulumi.Context,
	name string, args *PlacementGroupArgs, opts ...pulumi.ResourceOption) (*PlacementGroup, error)

NewPlacementGroup registers a new resource with the given unique name, arguments, and options.

func (*PlacementGroup) ElementType added in v1.3.0

func (*PlacementGroup) ElementType() reflect.Type

func (*PlacementGroup) ToPlacementGroupOutput added in v1.3.0

func (i *PlacementGroup) ToPlacementGroupOutput() PlacementGroupOutput

func (*PlacementGroup) ToPlacementGroupOutputWithContext added in v1.3.0

func (i *PlacementGroup) ToPlacementGroupOutputWithContext(ctx context.Context) PlacementGroupOutput

type PlacementGroupArgs added in v1.3.0

type PlacementGroupArgs struct {
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Name of the Placement Group.
	Name pulumi.StringPtrInput
	// Type of the Placement Group.
	Type pulumi.StringInput
}

The set of arguments for constructing a PlacementGroup resource.

func (PlacementGroupArgs) ElementType added in v1.3.0

func (PlacementGroupArgs) ElementType() reflect.Type

type PlacementGroupArray added in v1.3.0

type PlacementGroupArray []PlacementGroupInput

func (PlacementGroupArray) ElementType added in v1.3.0

func (PlacementGroupArray) ElementType() reflect.Type

func (PlacementGroupArray) ToPlacementGroupArrayOutput added in v1.3.0

func (i PlacementGroupArray) ToPlacementGroupArrayOutput() PlacementGroupArrayOutput

func (PlacementGroupArray) ToPlacementGroupArrayOutputWithContext added in v1.3.0

func (i PlacementGroupArray) ToPlacementGroupArrayOutputWithContext(ctx context.Context) PlacementGroupArrayOutput

type PlacementGroupArrayInput added in v1.3.0

type PlacementGroupArrayInput interface {
	pulumi.Input

	ToPlacementGroupArrayOutput() PlacementGroupArrayOutput
	ToPlacementGroupArrayOutputWithContext(context.Context) PlacementGroupArrayOutput
}

PlacementGroupArrayInput is an input type that accepts PlacementGroupArray and PlacementGroupArrayOutput values. You can construct a concrete instance of `PlacementGroupArrayInput` via:

PlacementGroupArray{ PlacementGroupArgs{...} }

type PlacementGroupArrayOutput added in v1.3.0

type PlacementGroupArrayOutput struct{ *pulumi.OutputState }

func (PlacementGroupArrayOutput) ElementType added in v1.3.0

func (PlacementGroupArrayOutput) ElementType() reflect.Type

func (PlacementGroupArrayOutput) Index added in v1.3.0

func (PlacementGroupArrayOutput) ToPlacementGroupArrayOutput added in v1.3.0

func (o PlacementGroupArrayOutput) ToPlacementGroupArrayOutput() PlacementGroupArrayOutput

func (PlacementGroupArrayOutput) ToPlacementGroupArrayOutputWithContext added in v1.3.0

func (o PlacementGroupArrayOutput) ToPlacementGroupArrayOutputWithContext(ctx context.Context) PlacementGroupArrayOutput

type PlacementGroupInput added in v1.3.0

type PlacementGroupInput interface {
	pulumi.Input

	ToPlacementGroupOutput() PlacementGroupOutput
	ToPlacementGroupOutputWithContext(ctx context.Context) PlacementGroupOutput
}

type PlacementGroupMap added in v1.3.0

type PlacementGroupMap map[string]PlacementGroupInput

func (PlacementGroupMap) ElementType added in v1.3.0

func (PlacementGroupMap) ElementType() reflect.Type

func (PlacementGroupMap) ToPlacementGroupMapOutput added in v1.3.0

func (i PlacementGroupMap) ToPlacementGroupMapOutput() PlacementGroupMapOutput

func (PlacementGroupMap) ToPlacementGroupMapOutputWithContext added in v1.3.0

func (i PlacementGroupMap) ToPlacementGroupMapOutputWithContext(ctx context.Context) PlacementGroupMapOutput

type PlacementGroupMapInput added in v1.3.0

type PlacementGroupMapInput interface {
	pulumi.Input

	ToPlacementGroupMapOutput() PlacementGroupMapOutput
	ToPlacementGroupMapOutputWithContext(context.Context) PlacementGroupMapOutput
}

PlacementGroupMapInput is an input type that accepts PlacementGroupMap and PlacementGroupMapOutput values. You can construct a concrete instance of `PlacementGroupMapInput` via:

PlacementGroupMap{ "key": PlacementGroupArgs{...} }

type PlacementGroupMapOutput added in v1.3.0

type PlacementGroupMapOutput struct{ *pulumi.OutputState }

func (PlacementGroupMapOutput) ElementType added in v1.3.0

func (PlacementGroupMapOutput) ElementType() reflect.Type

func (PlacementGroupMapOutput) MapIndex added in v1.3.0

func (PlacementGroupMapOutput) ToPlacementGroupMapOutput added in v1.3.0

func (o PlacementGroupMapOutput) ToPlacementGroupMapOutput() PlacementGroupMapOutput

func (PlacementGroupMapOutput) ToPlacementGroupMapOutputWithContext added in v1.3.0

func (o PlacementGroupMapOutput) ToPlacementGroupMapOutputWithContext(ctx context.Context) PlacementGroupMapOutput

type PlacementGroupOutput added in v1.3.0

type PlacementGroupOutput struct{ *pulumi.OutputState }

func (PlacementGroupOutput) ElementType added in v1.3.0

func (PlacementGroupOutput) ElementType() reflect.Type

func (PlacementGroupOutput) Labels added in v1.9.0

User-defined labels (key-value pairs) should be created with.

func (PlacementGroupOutput) Name added in v1.9.0

Name of the Placement Group.

func (PlacementGroupOutput) Servers added in v1.9.0

func (PlacementGroupOutput) ToPlacementGroupOutput added in v1.3.0

func (o PlacementGroupOutput) ToPlacementGroupOutput() PlacementGroupOutput

func (PlacementGroupOutput) ToPlacementGroupOutputWithContext added in v1.3.0

func (o PlacementGroupOutput) ToPlacementGroupOutputWithContext(ctx context.Context) PlacementGroupOutput

func (PlacementGroupOutput) Type added in v1.9.0

Type of the Placement Group.

type PlacementGroupState added in v1.3.0

type PlacementGroupState struct {
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Name of the Placement Group.
	Name    pulumi.StringPtrInput
	Servers pulumi.IntArrayInput
	// Type of the Placement Group.
	Type pulumi.StringPtrInput
}

func (PlacementGroupState) ElementType added in v1.3.0

func (PlacementGroupState) ElementType() reflect.Type

type PrimaryIp added in v1.9.0

type PrimaryIp struct {
	pulumi.CustomResourceState

	// ID of the assigned resource
	AssigneeId pulumi.IntOutput `pulumi:"assigneeId"`
	// The type of the assigned resource. Currently supported: `server`
	AssigneeType pulumi.StringOutput `pulumi:"assigneeType"`
	// Whether auto delete is enabled.
	// `Important note:`It is recommended to set `autoDelete` to `false`, because if a server assigned to the managed ip is getting deleted, it will also delete the primary IP which will break the TF state.
	AutoDelete pulumi.BoolOutput `pulumi:"autoDelete"`
	// The datacenter name to create the resource in.
	Datacenter pulumi.StringOutput `pulumi:"datacenter"`
	// Whether delete protection is enabled. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrOutput `pulumi:"deleteProtection"`
	// (string) IP Address of the Primary IP.
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// (string) IPv6 subnet of the Primary IP for IPv6 addresses. (Only set if `type` is `ipv6`)
	IpNetwork pulumi.StringOutput `pulumi:"ipNetwork"`
	// Description of the Primary IP.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// Name of the Primary IP.
	Name pulumi.StringOutput `pulumi:"name"`
	// Type of the Primary IP. `ipv4` or `ipv6`
	Type pulumi.StringOutput `pulumi:"type"`
}

Provides a Hetzner Cloud Primary IP to represent a publicly-accessible static IP address that can be mapped to one of your servers.

If a server is getting created, it has to have a primary ip. If a server is getting created without defining primary ips, two of them (one ipv4 and one ipv6) getting created & attached. Currently, Primary IPs can be only attached to servers.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		main, err := hcloud.NewPrimaryIp(ctx, "main", &hcloud.PrimaryIpArgs{
			Datacenter:   pulumi.String("fsn1-dc14"),
			Type:         pulumi.String("ipv4"),
			AssigneeType: pulumi.String("server"),
			AutoDelete:   pulumi.Bool(true),
			Labels: pulumi.Map{
				"hallo": pulumi.Any("welt"),
			},
		})
		if err != nil {
			return err
		}
		// Link a server to a primary IP
		_, err = hcloud.NewServer(ctx, "serverTest", &hcloud.ServerArgs{
			Image:      pulumi.String("ubuntu-20.04"),
			ServerType: pulumi.String("cx11"),
			Datacenter: pulumi.String("fsn1-dc14"),
			Labels: pulumi.Map{
				"test": pulumi.Any("tessst1"),
			},
			PublicNets: hcloud.ServerPublicNetArray{
				&hcloud.ServerPublicNetArgs{
					Ipv4: main.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Primary IPs can be imported using its `id`:

```sh $ pulumi import hcloud:index/primaryIp:PrimaryIp myip id ```

func GetPrimaryIp added in v1.9.0

func GetPrimaryIp(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PrimaryIpState, opts ...pulumi.ResourceOption) (*PrimaryIp, error)

GetPrimaryIp gets an existing PrimaryIp resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPrimaryIp added in v1.9.0

func NewPrimaryIp(ctx *pulumi.Context,
	name string, args *PrimaryIpArgs, opts ...pulumi.ResourceOption) (*PrimaryIp, error)

NewPrimaryIp registers a new resource with the given unique name, arguments, and options.

func (*PrimaryIp) ElementType added in v1.9.0

func (*PrimaryIp) ElementType() reflect.Type

func (*PrimaryIp) ToPrimaryIpOutput added in v1.9.0

func (i *PrimaryIp) ToPrimaryIpOutput() PrimaryIpOutput

func (*PrimaryIp) ToPrimaryIpOutputWithContext added in v1.9.0

func (i *PrimaryIp) ToPrimaryIpOutputWithContext(ctx context.Context) PrimaryIpOutput

type PrimaryIpArgs added in v1.9.0

type PrimaryIpArgs struct {
	// ID of the assigned resource
	AssigneeId pulumi.IntPtrInput
	// The type of the assigned resource. Currently supported: `server`
	AssigneeType pulumi.StringInput
	// Whether auto delete is enabled.
	// `Important note:`It is recommended to set `autoDelete` to `false`, because if a server assigned to the managed ip is getting deleted, it will also delete the primary IP which will break the TF state.
	AutoDelete pulumi.BoolInput
	// The datacenter name to create the resource in.
	Datacenter pulumi.StringPtrInput
	// Whether delete protection is enabled. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// Description of the Primary IP.
	Labels pulumi.MapInput
	// Name of the Primary IP.
	Name pulumi.StringPtrInput
	// Type of the Primary IP. `ipv4` or `ipv6`
	Type pulumi.StringInput
}

The set of arguments for constructing a PrimaryIp resource.

func (PrimaryIpArgs) ElementType added in v1.9.0

func (PrimaryIpArgs) ElementType() reflect.Type

type PrimaryIpArray added in v1.9.0

type PrimaryIpArray []PrimaryIpInput

func (PrimaryIpArray) ElementType added in v1.9.0

func (PrimaryIpArray) ElementType() reflect.Type

func (PrimaryIpArray) ToPrimaryIpArrayOutput added in v1.9.0

func (i PrimaryIpArray) ToPrimaryIpArrayOutput() PrimaryIpArrayOutput

func (PrimaryIpArray) ToPrimaryIpArrayOutputWithContext added in v1.9.0

func (i PrimaryIpArray) ToPrimaryIpArrayOutputWithContext(ctx context.Context) PrimaryIpArrayOutput

type PrimaryIpArrayInput added in v1.9.0

type PrimaryIpArrayInput interface {
	pulumi.Input

	ToPrimaryIpArrayOutput() PrimaryIpArrayOutput
	ToPrimaryIpArrayOutputWithContext(context.Context) PrimaryIpArrayOutput
}

PrimaryIpArrayInput is an input type that accepts PrimaryIpArray and PrimaryIpArrayOutput values. You can construct a concrete instance of `PrimaryIpArrayInput` via:

PrimaryIpArray{ PrimaryIpArgs{...} }

type PrimaryIpArrayOutput added in v1.9.0

type PrimaryIpArrayOutput struct{ *pulumi.OutputState }

func (PrimaryIpArrayOutput) ElementType added in v1.9.0

func (PrimaryIpArrayOutput) ElementType() reflect.Type

func (PrimaryIpArrayOutput) Index added in v1.9.0

func (PrimaryIpArrayOutput) ToPrimaryIpArrayOutput added in v1.9.0

func (o PrimaryIpArrayOutput) ToPrimaryIpArrayOutput() PrimaryIpArrayOutput

func (PrimaryIpArrayOutput) ToPrimaryIpArrayOutputWithContext added in v1.9.0

func (o PrimaryIpArrayOutput) ToPrimaryIpArrayOutputWithContext(ctx context.Context) PrimaryIpArrayOutput

type PrimaryIpInput added in v1.9.0

type PrimaryIpInput interface {
	pulumi.Input

	ToPrimaryIpOutput() PrimaryIpOutput
	ToPrimaryIpOutputWithContext(ctx context.Context) PrimaryIpOutput
}

type PrimaryIpMap added in v1.9.0

type PrimaryIpMap map[string]PrimaryIpInput

func (PrimaryIpMap) ElementType added in v1.9.0

func (PrimaryIpMap) ElementType() reflect.Type

func (PrimaryIpMap) ToPrimaryIpMapOutput added in v1.9.0

func (i PrimaryIpMap) ToPrimaryIpMapOutput() PrimaryIpMapOutput

func (PrimaryIpMap) ToPrimaryIpMapOutputWithContext added in v1.9.0

func (i PrimaryIpMap) ToPrimaryIpMapOutputWithContext(ctx context.Context) PrimaryIpMapOutput

type PrimaryIpMapInput added in v1.9.0

type PrimaryIpMapInput interface {
	pulumi.Input

	ToPrimaryIpMapOutput() PrimaryIpMapOutput
	ToPrimaryIpMapOutputWithContext(context.Context) PrimaryIpMapOutput
}

PrimaryIpMapInput is an input type that accepts PrimaryIpMap and PrimaryIpMapOutput values. You can construct a concrete instance of `PrimaryIpMapInput` via:

PrimaryIpMap{ "key": PrimaryIpArgs{...} }

type PrimaryIpMapOutput added in v1.9.0

type PrimaryIpMapOutput struct{ *pulumi.OutputState }

func (PrimaryIpMapOutput) ElementType added in v1.9.0

func (PrimaryIpMapOutput) ElementType() reflect.Type

func (PrimaryIpMapOutput) MapIndex added in v1.9.0

func (PrimaryIpMapOutput) ToPrimaryIpMapOutput added in v1.9.0

func (o PrimaryIpMapOutput) ToPrimaryIpMapOutput() PrimaryIpMapOutput

func (PrimaryIpMapOutput) ToPrimaryIpMapOutputWithContext added in v1.9.0

func (o PrimaryIpMapOutput) ToPrimaryIpMapOutputWithContext(ctx context.Context) PrimaryIpMapOutput

type PrimaryIpOutput added in v1.9.0

type PrimaryIpOutput struct{ *pulumi.OutputState }

func (PrimaryIpOutput) AssigneeId added in v1.9.0

func (o PrimaryIpOutput) AssigneeId() pulumi.IntOutput

ID of the assigned resource

func (PrimaryIpOutput) AssigneeType added in v1.9.0

func (o PrimaryIpOutput) AssigneeType() pulumi.StringOutput

The type of the assigned resource. Currently supported: `server`

func (PrimaryIpOutput) AutoDelete added in v1.9.0

func (o PrimaryIpOutput) AutoDelete() pulumi.BoolOutput

Whether auto delete is enabled. `Important note:`It is recommended to set `autoDelete` to `false`, because if a server assigned to the managed ip is getting deleted, it will also delete the primary IP which will break the TF state.

func (PrimaryIpOutput) Datacenter added in v1.9.0

func (o PrimaryIpOutput) Datacenter() pulumi.StringOutput

The datacenter name to create the resource in.

func (PrimaryIpOutput) DeleteProtection added in v1.9.0

func (o PrimaryIpOutput) DeleteProtection() pulumi.BoolPtrOutput

Whether delete protection is enabled. See "Delete Protection" in the Provider Docs for details.

func (PrimaryIpOutput) ElementType added in v1.9.0

func (PrimaryIpOutput) ElementType() reflect.Type

func (PrimaryIpOutput) IpAddress added in v1.9.0

func (o PrimaryIpOutput) IpAddress() pulumi.StringOutput

(string) IP Address of the Primary IP.

func (PrimaryIpOutput) IpNetwork added in v1.9.0

func (o PrimaryIpOutput) IpNetwork() pulumi.StringOutput

(string) IPv6 subnet of the Primary IP for IPv6 addresses. (Only set if `type` is `ipv6`)

func (PrimaryIpOutput) Labels added in v1.9.0

func (o PrimaryIpOutput) Labels() pulumi.MapOutput

Description of the Primary IP.

func (PrimaryIpOutput) Name added in v1.9.0

Name of the Primary IP.

func (PrimaryIpOutput) ToPrimaryIpOutput added in v1.9.0

func (o PrimaryIpOutput) ToPrimaryIpOutput() PrimaryIpOutput

func (PrimaryIpOutput) ToPrimaryIpOutputWithContext added in v1.9.0

func (o PrimaryIpOutput) ToPrimaryIpOutputWithContext(ctx context.Context) PrimaryIpOutput

func (PrimaryIpOutput) Type added in v1.9.0

Type of the Primary IP. `ipv4` or `ipv6`

type PrimaryIpState added in v1.9.0

type PrimaryIpState struct {
	// ID of the assigned resource
	AssigneeId pulumi.IntPtrInput
	// The type of the assigned resource. Currently supported: `server`
	AssigneeType pulumi.StringPtrInput
	// Whether auto delete is enabled.
	// `Important note:`It is recommended to set `autoDelete` to `false`, because if a server assigned to the managed ip is getting deleted, it will also delete the primary IP which will break the TF state.
	AutoDelete pulumi.BoolPtrInput
	// The datacenter name to create the resource in.
	Datacenter pulumi.StringPtrInput
	// Whether delete protection is enabled. See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// (string) IP Address of the Primary IP.
	IpAddress pulumi.StringPtrInput
	// (string) IPv6 subnet of the Primary IP for IPv6 addresses. (Only set if `type` is `ipv6`)
	IpNetwork pulumi.StringPtrInput
	// Description of the Primary IP.
	Labels pulumi.MapInput
	// Name of the Primary IP.
	Name pulumi.StringPtrInput
	// Type of the Primary IP. `ipv4` or `ipv6`
	Type pulumi.StringPtrInput
}

func (PrimaryIpState) ElementType added in v1.9.0

func (PrimaryIpState) ElementType() reflect.Type

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// The Hetzner Cloud API endpoint, can be used to override the default API Endpoint https://api.hetzner.cloud/v1.
	Endpoint pulumi.StringPtrOutput `pulumi:"endpoint"`
	// The type of function to be used during the polling.
	PollFunction pulumi.StringPtrOutput `pulumi:"pollFunction"`
	// The interval at which actions are polled by the client. Default `500ms`. Increase this interval if you run into rate
	// limiting errors.
	PollInterval pulumi.StringPtrOutput `pulumi:"pollInterval"`
	// The Hetzner Cloud API token, can also be specified with the HCLOUD_TOKEN environment variable.
	Token pulumi.StringPtrOutput `pulumi:"token"`
}

The provider type for the hcloud package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType added in v0.4.1

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput added in v0.4.1

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext added in v0.4.1

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// The Hetzner Cloud API endpoint, can be used to override the default API Endpoint https://api.hetzner.cloud/v1.
	Endpoint pulumi.StringPtrInput
	// The type of function to be used during the polling.
	PollFunction pulumi.StringPtrInput
	// The interval at which actions are polled by the client. Default `500ms`. Increase this interval if you run into rate
	// limiting errors.
	PollInterval pulumi.StringPtrInput
	// The Hetzner Cloud API token, can also be specified with the HCLOUD_TOKEN environment variable.
	Token pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput added in v0.4.1

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput added in v0.4.1

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) ElementType added in v0.4.1

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) Endpoint added in v1.9.0

func (o ProviderOutput) Endpoint() pulumi.StringPtrOutput

The Hetzner Cloud API endpoint, can be used to override the default API Endpoint https://api.hetzner.cloud/v1.

func (ProviderOutput) PollFunction added in v1.17.0

func (o ProviderOutput) PollFunction() pulumi.StringPtrOutput

The type of function to be used during the polling.

func (ProviderOutput) PollInterval added in v1.9.0

func (o ProviderOutput) PollInterval() pulumi.StringPtrOutput

The interval at which actions are polled by the client. Default `500ms`. Increase this interval if you run into rate limiting errors.

func (ProviderOutput) ToProviderOutput added in v0.4.1

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext added in v0.4.1

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

func (ProviderOutput) Token added in v1.9.0

The Hetzner Cloud API token, can also be specified with the HCLOUD_TOKEN environment variable.

type Rdns

type Rdns struct {
	pulumi.CustomResourceState

	// The DNS address the `ipAddress` should resolve to.
	DnsPtr pulumi.StringOutput `pulumi:"dnsPtr"`
	// The Floating IP the `ipAddress` belongs to.
	FloatingIpId pulumi.IntPtrOutput `pulumi:"floatingIpId"`
	// The IP address that should point to `dnsPtr`.
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// The Load Balancer the `ipAddress` belongs to.
	LoadBalancerId pulumi.IntPtrOutput `pulumi:"loadBalancerId"`
	// The Primary IP the `ipAddress` belongs to.
	PrimaryIpId pulumi.IntPtrOutput `pulumi:"primaryIpId"`
	// The server the `ipAddress` belongs to.
	ServerId pulumi.IntPtrOutput `pulumi:"serverId"`
}

Provides a Hetzner Cloud Reverse DNS Entry to create, modify and reset reverse dns entries for Hetzner Cloud Servers, Primary IPs, Floating IPs or Load Balancers.

## Example Usage

For servers:

<!--Start PulumiCodeChooser --> ```go 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 {
		node1, err := hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image:      pulumi.String("debian-11"),
			ServerType: pulumi.String("cx11"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewRdns(ctx, "master", &hcloud.RdnsArgs{
			ServerId:  node1.ID(),
			IpAddress: node1.Ipv4Address,
			DnsPtr:    pulumi.String("example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

For Primary IPs:

<!--Start PulumiCodeChooser --> ```go 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 {
		primary1PrimaryIp, err := hcloud.NewPrimaryIp(ctx, "primary1PrimaryIp", &hcloud.PrimaryIpArgs{
			Datacenter: pulumi.String("nbg1-dc3"),
			Type:       pulumi.String("ipv4"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewRdns(ctx, "primary1Rdns", &hcloud.RdnsArgs{
			PrimaryIpId: primary1PrimaryIp.ID(),
			IpAddress:   primary1PrimaryIp.IpAddress,
			DnsPtr:      pulumi.String("example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

For Floating IPs:

<!--Start PulumiCodeChooser --> ```go 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 {
		floating1, err := hcloud.NewFloatingIp(ctx, "floating1", &hcloud.FloatingIpArgs{
			HomeLocation: pulumi.String("nbg1"),
			Type:         pulumi.String("ipv4"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewRdns(ctx, "floatingMaster", &hcloud.RdnsArgs{
			DnsPtr:       pulumi.String("example.com"),
			FloatingIpId: floating1.ID(),
			IpAddress:    floating1.IpAddress,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

For Load Balancers:

<!--Start PulumiCodeChooser --> ```go 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 {
		loadBalancer1, err := hcloud.NewLoadBalancer(ctx, "loadBalancer1", &hcloud.LoadBalancerArgs{
			LoadBalancerType: pulumi.String("lb11"),
			Location:         pulumi.String("fsn1"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewRdns(ctx, "loadBalancerMaster", &hcloud.RdnsArgs{
			DnsPtr:         pulumi.String("example.com"),
			IpAddress:      loadBalancer1.Ipv4,
			LoadBalancerId: loadBalancer1.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Reverse DNS entries can be imported using a compound ID with the following format:

`<prefix (s for server/ f for floating ip / l for load balancer)>-<server, floating ip or load balancer ID>-<IP address>`

import reverse dns entry on server with id 123, ip 192.168.100.1

```sh $ pulumi import hcloud:index/rdns:Rdns myrdns s-123-192.168.100.1 ```

import reverse dns entry on primary ip with id 123, ip 2001:db8::1

```sh $ pulumi import hcloud:index/rdns:Rdns myrdns p-123-2001:db8::1 ```

import reverse dns entry on floating ip with id 123, ip 2001:db8::1

```sh $ pulumi import hcloud:index/rdns:Rdns myrdns f-123-2001:db8::1 ```

import reverse dns entry on load balancer with id 123, ip 2001:db8::1

```sh $ pulumi import hcloud:index/rdns:Rdns myrdns l-123-2001:db8::1 ```

func GetRdns

func GetRdns(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RdnsState, opts ...pulumi.ResourceOption) (*Rdns, error)

GetRdns gets an existing Rdns resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRdns

func NewRdns(ctx *pulumi.Context,
	name string, args *RdnsArgs, opts ...pulumi.ResourceOption) (*Rdns, error)

NewRdns registers a new resource with the given unique name, arguments, and options.

func (*Rdns) ElementType added in v0.4.1

func (*Rdns) ElementType() reflect.Type

func (*Rdns) ToRdnsOutput added in v0.4.1

func (i *Rdns) ToRdnsOutput() RdnsOutput

func (*Rdns) ToRdnsOutputWithContext added in v0.4.1

func (i *Rdns) ToRdnsOutputWithContext(ctx context.Context) RdnsOutput

type RdnsArgs

type RdnsArgs struct {
	// The DNS address the `ipAddress` should resolve to.
	DnsPtr pulumi.StringInput
	// The Floating IP the `ipAddress` belongs to.
	FloatingIpId pulumi.IntPtrInput
	// The IP address that should point to `dnsPtr`.
	IpAddress pulumi.StringInput
	// The Load Balancer the `ipAddress` belongs to.
	LoadBalancerId pulumi.IntPtrInput
	// The Primary IP the `ipAddress` belongs to.
	PrimaryIpId pulumi.IntPtrInput
	// The server the `ipAddress` belongs to.
	ServerId pulumi.IntPtrInput
}

The set of arguments for constructing a Rdns resource.

func (RdnsArgs) ElementType

func (RdnsArgs) ElementType() reflect.Type

type RdnsArray added in v0.6.2

type RdnsArray []RdnsInput

func (RdnsArray) ElementType added in v0.6.2

func (RdnsArray) ElementType() reflect.Type

func (RdnsArray) ToRdnsArrayOutput added in v0.6.2

func (i RdnsArray) ToRdnsArrayOutput() RdnsArrayOutput

func (RdnsArray) ToRdnsArrayOutputWithContext added in v0.6.2

func (i RdnsArray) ToRdnsArrayOutputWithContext(ctx context.Context) RdnsArrayOutput

type RdnsArrayInput added in v0.6.2

type RdnsArrayInput interface {
	pulumi.Input

	ToRdnsArrayOutput() RdnsArrayOutput
	ToRdnsArrayOutputWithContext(context.Context) RdnsArrayOutput
}

RdnsArrayInput is an input type that accepts RdnsArray and RdnsArrayOutput values. You can construct a concrete instance of `RdnsArrayInput` via:

RdnsArray{ RdnsArgs{...} }

type RdnsArrayOutput added in v0.6.2

type RdnsArrayOutput struct{ *pulumi.OutputState }

func (RdnsArrayOutput) ElementType added in v0.6.2

func (RdnsArrayOutput) ElementType() reflect.Type

func (RdnsArrayOutput) Index added in v0.6.2

func (RdnsArrayOutput) ToRdnsArrayOutput added in v0.6.2

func (o RdnsArrayOutput) ToRdnsArrayOutput() RdnsArrayOutput

func (RdnsArrayOutput) ToRdnsArrayOutputWithContext added in v0.6.2

func (o RdnsArrayOutput) ToRdnsArrayOutputWithContext(ctx context.Context) RdnsArrayOutput

type RdnsInput added in v0.4.1

type RdnsInput interface {
	pulumi.Input

	ToRdnsOutput() RdnsOutput
	ToRdnsOutputWithContext(ctx context.Context) RdnsOutput
}

type RdnsMap added in v0.6.2

type RdnsMap map[string]RdnsInput

func (RdnsMap) ElementType added in v0.6.2

func (RdnsMap) ElementType() reflect.Type

func (RdnsMap) ToRdnsMapOutput added in v0.6.2

func (i RdnsMap) ToRdnsMapOutput() RdnsMapOutput

func (RdnsMap) ToRdnsMapOutputWithContext added in v0.6.2

func (i RdnsMap) ToRdnsMapOutputWithContext(ctx context.Context) RdnsMapOutput

type RdnsMapInput added in v0.6.2

type RdnsMapInput interface {
	pulumi.Input

	ToRdnsMapOutput() RdnsMapOutput
	ToRdnsMapOutputWithContext(context.Context) RdnsMapOutput
}

RdnsMapInput is an input type that accepts RdnsMap and RdnsMapOutput values. You can construct a concrete instance of `RdnsMapInput` via:

RdnsMap{ "key": RdnsArgs{...} }

type RdnsMapOutput added in v0.6.2

type RdnsMapOutput struct{ *pulumi.OutputState }

func (RdnsMapOutput) ElementType added in v0.6.2

func (RdnsMapOutput) ElementType() reflect.Type

func (RdnsMapOutput) MapIndex added in v0.6.2

func (RdnsMapOutput) ToRdnsMapOutput added in v0.6.2

func (o RdnsMapOutput) ToRdnsMapOutput() RdnsMapOutput

func (RdnsMapOutput) ToRdnsMapOutputWithContext added in v0.6.2

func (o RdnsMapOutput) ToRdnsMapOutputWithContext(ctx context.Context) RdnsMapOutput

type RdnsOutput added in v0.4.1

type RdnsOutput struct{ *pulumi.OutputState }

func (RdnsOutput) DnsPtr added in v1.9.0

func (o RdnsOutput) DnsPtr() pulumi.StringOutput

The DNS address the `ipAddress` should resolve to.

func (RdnsOutput) ElementType added in v0.4.1

func (RdnsOutput) ElementType() reflect.Type

func (RdnsOutput) FloatingIpId added in v1.9.0

func (o RdnsOutput) FloatingIpId() pulumi.IntPtrOutput

The Floating IP the `ipAddress` belongs to.

func (RdnsOutput) IpAddress added in v1.9.0

func (o RdnsOutput) IpAddress() pulumi.StringOutput

The IP address that should point to `dnsPtr`.

func (RdnsOutput) LoadBalancerId added in v1.9.0

func (o RdnsOutput) LoadBalancerId() pulumi.IntPtrOutput

The Load Balancer the `ipAddress` belongs to.

func (RdnsOutput) PrimaryIpId added in v1.12.0

func (o RdnsOutput) PrimaryIpId() pulumi.IntPtrOutput

The Primary IP the `ipAddress` belongs to.

func (RdnsOutput) ServerId added in v1.9.0

func (o RdnsOutput) ServerId() pulumi.IntPtrOutput

The server the `ipAddress` belongs to.

func (RdnsOutput) ToRdnsOutput added in v0.4.1

func (o RdnsOutput) ToRdnsOutput() RdnsOutput

func (RdnsOutput) ToRdnsOutputWithContext added in v0.4.1

func (o RdnsOutput) ToRdnsOutputWithContext(ctx context.Context) RdnsOutput

type RdnsState

type RdnsState struct {
	// The DNS address the `ipAddress` should resolve to.
	DnsPtr pulumi.StringPtrInput
	// The Floating IP the `ipAddress` belongs to.
	FloatingIpId pulumi.IntPtrInput
	// The IP address that should point to `dnsPtr`.
	IpAddress pulumi.StringPtrInput
	// The Load Balancer the `ipAddress` belongs to.
	LoadBalancerId pulumi.IntPtrInput
	// The Primary IP the `ipAddress` belongs to.
	PrimaryIpId pulumi.IntPtrInput
	// The server the `ipAddress` belongs to.
	ServerId pulumi.IntPtrInput
}

func (RdnsState) ElementType

func (RdnsState) ElementType() reflect.Type

type Server

type Server struct {
	pulumi.CustomResourceState

	// Enable the use of deprecated images (default: false). **Note** Deprecated images will be removed after three months. Using them is then no longer possible.
	AllowDeprecatedImages pulumi.BoolPtrOutput `pulumi:"allowDeprecatedImages"`
	// (string) The backup window of the server, if enabled.
	//
	// Deprecated: You should remove this property from your terraform configuration.
	BackupWindow pulumi.StringOutput `pulumi:"backupWindow"`
	// Enable or disable backups.
	Backups pulumi.BoolPtrOutput `pulumi:"backups"`
	// The datacenter name to create the server in. `nbg1-dc3`, `fsn1-dc14`, `hel1-dc2`, `ash-dc1` or `hil-dc1`
	Datacenter pulumi.StringOutput `pulumi:"datacenter"`
	// Enable or disable delete protection (Needs to be the same as `rebuildProtection`). See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrOutput `pulumi:"deleteProtection"`
	// Firewall IDs the server should be attached to on creation.
	FirewallIds pulumi.IntArrayOutput `pulumi:"firewallIds"`
	// Ignores any updates
	// to the `firewallIds` argument which were received from the server.
	// This should not be used in normal cases. See the documentation of the
	// `FirewallAttachment` resource for a reason to use this
	// argument.
	IgnoreRemoteFirewallIds pulumi.BoolPtrOutput   `pulumi:"ignoreRemoteFirewallIds"`
	Image                   pulumi.StringPtrOutput `pulumi:"image"`
	// (string) The IPv4 address.
	Ipv4Address pulumi.StringOutput `pulumi:"ipv4Address"`
	// (string) The first IPv6 address of the assigned network.
	Ipv6Address pulumi.StringOutput `pulumi:"ipv6Address"`
	// (string) The IPv6 network.
	Ipv6Network pulumi.StringOutput `pulumi:"ipv6Network"`
	// ID or Name of an ISO image to mount.
	Iso pulumi.StringPtrOutput `pulumi:"iso"`
	// If true, do not upgrade the disk. This allows downgrading the server type later.
	KeepDisk pulumi.BoolPtrOutput `pulumi:"keepDisk"`
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// The location name to create the server in. `nbg1`, `fsn1`, `hel1`, `ash` or `hil`
	Location pulumi.StringOutput `pulumi:"location"`
	// Name of the server to create (must be unique per project and a valid hostname as per RFC 1123).
	Name pulumi.StringOutput `pulumi:"name"`
	// Network the server should be attached to on creation. (Can be specified multiple times)
	Networks ServerNetworkTypeArrayOutput `pulumi:"networks"`
	// Placement Group ID the server added to on creation.
	PlacementGroupId pulumi.IntPtrOutput `pulumi:"placementGroupId"`
	// (int) The size of the primary disk in GB.
	PrimaryDiskSize pulumi.IntOutput `pulumi:"primaryDiskSize"`
	// In this block you can either enable / disable ipv4 and ipv6 or link existing primary IPs (checkout the examples).
	// If this block is not defined, two primary (ipv4 & ipv6) ips getting auto generated.
	PublicNets ServerPublicNetArrayOutput `pulumi:"publicNets"`
	// Enable or disable rebuild protection (Needs to be the same as `deleteProtection`).
	RebuildProtection pulumi.BoolPtrOutput `pulumi:"rebuildProtection"`
	// Enable and boot in to the specified rescue system. This enables simple installation of custom operating systems. `linux64` or `linux32`
	Rescue pulumi.StringPtrOutput `pulumi:"rescue"`
	// Name of the server type this server should be created with.
	ServerType pulumi.StringOutput `pulumi:"serverType"`
	// Whether to try shutting the server down gracefully before deleting it.
	ShutdownBeforeDeletion pulumi.BoolPtrOutput `pulumi:"shutdownBeforeDeletion"`
	// SSH key IDs or names which should be injected into the server at creation time. Once the server is created, you can not update the list of SSH Keys. If you do change this, you will be prompted to destroy and recreate the server. You can avoid this by setting lifecycle.ignore_changes to `[ sshKeys ]`.
	SshKeys pulumi.StringArrayOutput `pulumi:"sshKeys"`
	// (string) The status of the server.
	Status pulumi.StringOutput `pulumi:"status"`
	// Cloud-Init user data to use during server creation
	UserData pulumi.StringPtrOutput `pulumi:"userData"`
}

Provides an Hetzner Cloud server resource. This can be used to create, modify, and delete servers. Servers also support provisioning.

## Example Usage

### Basic server creation

<!--Start PulumiCodeChooser --> ```go 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 {
		// Create a new server running debian
		_, err := hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image: pulumi.String("debian-11"),
			PublicNets: hcloud.ServerPublicNetArray{
				&hcloud.ServerPublicNetArgs{
					Ipv4Enabled: pulumi.Bool(true),
					Ipv6Enabled: pulumi.Bool(true),
				},
			},
			ServerType: pulumi.String("cx11"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser --> <!--Start PulumiCodeChooser --> ```go 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 {
		// ## Server creation with one linked primary ip (ipv4)
		primaryIp1, err := hcloud.NewPrimaryIp(ctx, "primaryIp1", &hcloud.PrimaryIpArgs{
			Datacenter:   pulumi.String("fsn1-dc14"),
			Type:         pulumi.String("ipv4"),
			AssigneeType: pulumi.String("server"),
			AutoDelete:   pulumi.Bool(true),
			Labels: pulumi.Map{
				"hallo": pulumi.Any("welt"),
			},
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewServer(ctx, "serverTest", &hcloud.ServerArgs{
			Image:      pulumi.String("ubuntu-20.04"),
			ServerType: pulumi.String("cx11"),
			Datacenter: pulumi.String("fsn1-dc14"),
			Labels: pulumi.Map{
				"test": pulumi.Any("tessst1"),
			},
			PublicNets: hcloud.ServerPublicNetArray{
				&hcloud.ServerPublicNetArgs{
					Ipv4Enabled: pulumi.Bool(true),
					Ipv4:        primaryIp1.ID(),
					Ipv6Enabled: pulumi.Bool(false),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser --> ### Server creation with network <!--Start PulumiCodeChooser --> ```go 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 {
		network, err := hcloud.NewNetwork(ctx, "network", &hcloud.NetworkArgs{
			IpRange: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewNetworkSubnet(ctx, "network-subnet", &hcloud.NetworkSubnetArgs{
			Type:        pulumi.String("cloud"),
			NetworkId:   network.ID(),
			NetworkZone: pulumi.String("eu-central"),
			IpRange:     pulumi.String("10.0.1.0/24"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewServer(ctx, "server", &hcloud.ServerArgs{
			ServerType: pulumi.String("cx11"),
			Image:      pulumi.String("ubuntu-20.04"),
			Location:   pulumi.String("nbg1"),
			Networks: hcloud.ServerNetworkTypeArray{
				&hcloud.ServerNetworkTypeArgs{
					NetworkId: network.ID(),
					Ip:        pulumi.String("10.0.1.5"),
					AliasIps: pulumi.StringArray{
						pulumi.String("10.0.1.6"),
						pulumi.String("10.0.1.7"),
					},
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			network_subnet,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

### Server creation from snapshot

<!--Start PulumiCodeChooser --> ```go 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 {
		packerSnapshot, err := hcloud.GetImage(ctx, &hcloud.GetImageArgs{
			WithSelector: pulumi.StringRef("app=foobar"),
			MostRecent:   pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		// Create a new server from the snapshot
		_, err = hcloud.NewServer(ctx, "fromSnapshot", &hcloud.ServerArgs{
			Image:      pulumi.Int(packerSnapshot.Id),
			ServerType: pulumi.String("cx11"),
			PublicNets: hcloud.ServerPublicNetArray{
				&hcloud.ServerPublicNetArgs{
					Ipv4Enabled: pulumi.Bool(true),
					Ipv6Enabled: pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Primary IPs

When creating a server without linking at least one ´primary_ip´, it automatically creates & assigns two (ipv4 & ipv6). With the publicNet block, you can enable or link primary ips. If you don't define this block, two primary ips (ipv4, ipv6) will be created and assigned to the server automatically.

### Examples

<!--Start PulumiCodeChooser --> ```go 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 {
		// Assign existing ipv4 only
		_, err := hcloud.NewServer(ctx, "serverTestServer", &hcloud.ServerArgs{
			PublicNets: hcloud.ServerPublicNetArray{
				&hcloud.ServerPublicNetArgs{
					Ipv4Enabled: pulumi.Bool(true),
					Ipv4:        pulumi.Any(hcloud_primary_ip.Primary_ip_1.Id),
					Ipv6Enabled: pulumi.Bool(false),
				},
			},
		})
		if err != nil {
			return err
		}
		// Link a managed ipv4 but autogenerate ipv6
		_, err = hcloud.NewServer(ctx, "serverTestIndex/serverServer", &hcloud.ServerArgs{
			PublicNets: hcloud.ServerPublicNetArray{
				&hcloud.ServerPublicNetArgs{
					Ipv4Enabled: pulumi.Bool(true),
					Ipv4:        pulumi.Any(hcloud_primary_ip.Primary_ip_1.Id),
					Ipv6Enabled: pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		// Assign & create auto-generated ipv4 & ipv6
		_, err = hcloud.NewServer(ctx, "serverTestHcloudIndex/serverServer", &hcloud.ServerArgs{
			PublicNets: hcloud.ServerPublicNetArray{
				&hcloud.ServerPublicNetArgs{
					Ipv4Enabled: pulumi.Bool(true),
					Ipv6Enabled: pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Servers can be imported using the server `id`:

```sh $ pulumi import hcloud:index/server:Server myserver id ```

func GetServer

func GetServer(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServerState, opts ...pulumi.ResourceOption) (*Server, error)

GetServer gets an existing Server resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewServer

func NewServer(ctx *pulumi.Context,
	name string, args *ServerArgs, opts ...pulumi.ResourceOption) (*Server, error)

NewServer registers a new resource with the given unique name, arguments, and options.

func (*Server) ElementType added in v0.4.1

func (*Server) ElementType() reflect.Type

func (*Server) ToServerOutput added in v0.4.1

func (i *Server) ToServerOutput() ServerOutput

func (*Server) ToServerOutputWithContext added in v0.4.1

func (i *Server) ToServerOutputWithContext(ctx context.Context) ServerOutput

type ServerArgs

type ServerArgs struct {
	// Enable the use of deprecated images (default: false). **Note** Deprecated images will be removed after three months. Using them is then no longer possible.
	AllowDeprecatedImages pulumi.BoolPtrInput
	// Enable or disable backups.
	Backups pulumi.BoolPtrInput
	// The datacenter name to create the server in. `nbg1-dc3`, `fsn1-dc14`, `hel1-dc2`, `ash-dc1` or `hil-dc1`
	Datacenter pulumi.StringPtrInput
	// Enable or disable delete protection (Needs to be the same as `rebuildProtection`). See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// Firewall IDs the server should be attached to on creation.
	FirewallIds pulumi.IntArrayInput
	// Ignores any updates
	// to the `firewallIds` argument which were received from the server.
	// This should not be used in normal cases. See the documentation of the
	// `FirewallAttachment` resource for a reason to use this
	// argument.
	IgnoreRemoteFirewallIds pulumi.BoolPtrInput
	Image                   pulumi.StringPtrInput
	// ID or Name of an ISO image to mount.
	Iso pulumi.StringPtrInput
	// If true, do not upgrade the disk. This allows downgrading the server type later.
	KeepDisk pulumi.BoolPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// The location name to create the server in. `nbg1`, `fsn1`, `hel1`, `ash` or `hil`
	Location pulumi.StringPtrInput
	// Name of the server to create (must be unique per project and a valid hostname as per RFC 1123).
	Name pulumi.StringPtrInput
	// Network the server should be attached to on creation. (Can be specified multiple times)
	Networks ServerNetworkTypeArrayInput
	// Placement Group ID the server added to on creation.
	PlacementGroupId pulumi.IntPtrInput
	// In this block you can either enable / disable ipv4 and ipv6 or link existing primary IPs (checkout the examples).
	// If this block is not defined, two primary (ipv4 & ipv6) ips getting auto generated.
	PublicNets ServerPublicNetArrayInput
	// Enable or disable rebuild protection (Needs to be the same as `deleteProtection`).
	RebuildProtection pulumi.BoolPtrInput
	// Enable and boot in to the specified rescue system. This enables simple installation of custom operating systems. `linux64` or `linux32`
	Rescue pulumi.StringPtrInput
	// Name of the server type this server should be created with.
	ServerType pulumi.StringInput
	// Whether to try shutting the server down gracefully before deleting it.
	ShutdownBeforeDeletion pulumi.BoolPtrInput
	// SSH key IDs or names which should be injected into the server at creation time. Once the server is created, you can not update the list of SSH Keys. If you do change this, you will be prompted to destroy and recreate the server. You can avoid this by setting lifecycle.ignore_changes to `[ sshKeys ]`.
	SshKeys pulumi.StringArrayInput
	// Cloud-Init user data to use during server creation
	UserData pulumi.StringPtrInput
}

The set of arguments for constructing a Server resource.

func (ServerArgs) ElementType

func (ServerArgs) ElementType() reflect.Type

type ServerArray added in v0.6.2

type ServerArray []ServerInput

func (ServerArray) ElementType added in v0.6.2

func (ServerArray) ElementType() reflect.Type

func (ServerArray) ToServerArrayOutput added in v0.6.2

func (i ServerArray) ToServerArrayOutput() ServerArrayOutput

func (ServerArray) ToServerArrayOutputWithContext added in v0.6.2

func (i ServerArray) ToServerArrayOutputWithContext(ctx context.Context) ServerArrayOutput

type ServerArrayInput added in v0.6.2

type ServerArrayInput interface {
	pulumi.Input

	ToServerArrayOutput() ServerArrayOutput
	ToServerArrayOutputWithContext(context.Context) ServerArrayOutput
}

ServerArrayInput is an input type that accepts ServerArray and ServerArrayOutput values. You can construct a concrete instance of `ServerArrayInput` via:

ServerArray{ ServerArgs{...} }

type ServerArrayOutput added in v0.6.2

type ServerArrayOutput struct{ *pulumi.OutputState }

func (ServerArrayOutput) ElementType added in v0.6.2

func (ServerArrayOutput) ElementType() reflect.Type

func (ServerArrayOutput) Index added in v0.6.2

func (ServerArrayOutput) ToServerArrayOutput added in v0.6.2

func (o ServerArrayOutput) ToServerArrayOutput() ServerArrayOutput

func (ServerArrayOutput) ToServerArrayOutputWithContext added in v0.6.2

func (o ServerArrayOutput) ToServerArrayOutputWithContext(ctx context.Context) ServerArrayOutput

type ServerInput added in v0.4.1

type ServerInput interface {
	pulumi.Input

	ToServerOutput() ServerOutput
	ToServerOutputWithContext(ctx context.Context) ServerOutput
}

type ServerMap added in v0.6.2

type ServerMap map[string]ServerInput

func (ServerMap) ElementType added in v0.6.2

func (ServerMap) ElementType() reflect.Type

func (ServerMap) ToServerMapOutput added in v0.6.2

func (i ServerMap) ToServerMapOutput() ServerMapOutput

func (ServerMap) ToServerMapOutputWithContext added in v0.6.2

func (i ServerMap) ToServerMapOutputWithContext(ctx context.Context) ServerMapOutput

type ServerMapInput added in v0.6.2

type ServerMapInput interface {
	pulumi.Input

	ToServerMapOutput() ServerMapOutput
	ToServerMapOutputWithContext(context.Context) ServerMapOutput
}

ServerMapInput is an input type that accepts ServerMap and ServerMapOutput values. You can construct a concrete instance of `ServerMapInput` via:

ServerMap{ "key": ServerArgs{...} }

type ServerMapOutput added in v0.6.2

type ServerMapOutput struct{ *pulumi.OutputState }

func (ServerMapOutput) ElementType added in v0.6.2

func (ServerMapOutput) ElementType() reflect.Type

func (ServerMapOutput) MapIndex added in v0.6.2

func (ServerMapOutput) ToServerMapOutput added in v0.6.2

func (o ServerMapOutput) ToServerMapOutput() ServerMapOutput

func (ServerMapOutput) ToServerMapOutputWithContext added in v0.6.2

func (o ServerMapOutput) ToServerMapOutputWithContext(ctx context.Context) ServerMapOutput

type ServerNetwork

type ServerNetwork struct {
	pulumi.CustomResourceState

	// Additional IPs to be assigned
	// to this server.
	AliasIps pulumi.StringArrayOutput `pulumi:"aliasIps"`
	// IP to request to be assigned to this server.
	// If you do not provide this then you will be auto assigned an IP
	// address.
	Ip         pulumi.StringOutput `pulumi:"ip"`
	MacAddress pulumi.StringOutput `pulumi:"macAddress"`
	// ID of the network which should be added
	// to the server. Required if `subnetId` is not set. Successful creation
	// of the resource depends on the existence of a subnet in the Hetzner
	// Cloud Backend. Using `networkId` will not create an explicit
	// dependency between server and subnet. Therefore `dependsOn` may need
	// to be used. Alternatively the `subnetId` property can be used, which
	// will create an explicit dependency between `ServerNetwork` and
	// the existence of a subnet.
	NetworkId pulumi.IntPtrOutput `pulumi:"networkId"`
	// ID of the server.
	ServerId pulumi.IntOutput `pulumi:"serverId"`
	// ID of the sub-network which should be
	// added to the Server. Required if `networkId` is not set.
	// *Note*: if the `ip` property is missing, the Server is currently added
	// to the last created subnet.
	SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"`
}

Provides a Hetzner Cloud Server Network to represent a private network on a server in the Hetzner Cloud.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		node1, err := hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image:      pulumi.String("debian-11"),
			ServerType: pulumi.String("cx11"),
		})
		if err != nil {
			return err
		}
		mynet, err := hcloud.NewNetwork(ctx, "mynet", &hcloud.NetworkArgs{
			IpRange: pulumi.String("10.0.0.0/8"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewNetworkSubnet(ctx, "foonet", &hcloud.NetworkSubnetArgs{
			NetworkId:   mynet.ID(),
			Type:        pulumi.String("cloud"),
			NetworkZone: pulumi.String("eu-central"),
			IpRange:     pulumi.String("10.0.1.0/24"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewServerNetwork(ctx, "srvnetwork", &hcloud.ServerNetworkArgs{
			ServerId:  node1.ID(),
			NetworkId: mynet.ID(),
			Ip:        pulumi.String("10.0.1.5"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Server Network entries can be imported using a compound ID with the following format:

`<server-id>-<network-id>`

```sh $ pulumi import hcloud:index/serverNetwork:ServerNetwork myservernetwork 123-654 ```

func GetServerNetwork

func GetServerNetwork(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServerNetworkState, opts ...pulumi.ResourceOption) (*ServerNetwork, error)

GetServerNetwork gets an existing ServerNetwork resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewServerNetwork

func NewServerNetwork(ctx *pulumi.Context,
	name string, args *ServerNetworkArgs, opts ...pulumi.ResourceOption) (*ServerNetwork, error)

NewServerNetwork registers a new resource with the given unique name, arguments, and options.

func (*ServerNetwork) ElementType added in v0.4.1

func (*ServerNetwork) ElementType() reflect.Type

func (*ServerNetwork) ToServerNetworkOutput added in v0.4.1

func (i *ServerNetwork) ToServerNetworkOutput() ServerNetworkOutput

func (*ServerNetwork) ToServerNetworkOutputWithContext added in v0.4.1

func (i *ServerNetwork) ToServerNetworkOutputWithContext(ctx context.Context) ServerNetworkOutput

type ServerNetworkArgs

type ServerNetworkArgs struct {
	// Additional IPs to be assigned
	// to this server.
	AliasIps pulumi.StringArrayInput
	// IP to request to be assigned to this server.
	// If you do not provide this then you will be auto assigned an IP
	// address.
	Ip pulumi.StringPtrInput
	// ID of the network which should be added
	// to the server. Required if `subnetId` is not set. Successful creation
	// of the resource depends on the existence of a subnet in the Hetzner
	// Cloud Backend. Using `networkId` will not create an explicit
	// dependency between server and subnet. Therefore `dependsOn` may need
	// to be used. Alternatively the `subnetId` property can be used, which
	// will create an explicit dependency between `ServerNetwork` and
	// the existence of a subnet.
	NetworkId pulumi.IntPtrInput
	// ID of the server.
	ServerId pulumi.IntInput
	// ID of the sub-network which should be
	// added to the Server. Required if `networkId` is not set.
	// *Note*: if the `ip` property is missing, the Server is currently added
	// to the last created subnet.
	SubnetId pulumi.StringPtrInput
}

The set of arguments for constructing a ServerNetwork resource.

func (ServerNetworkArgs) ElementType

func (ServerNetworkArgs) ElementType() reflect.Type

type ServerNetworkArray added in v0.6.2

type ServerNetworkArray []ServerNetworkInput

func (ServerNetworkArray) ElementType added in v0.6.2

func (ServerNetworkArray) ElementType() reflect.Type

func (ServerNetworkArray) ToServerNetworkArrayOutput added in v0.6.2

func (i ServerNetworkArray) ToServerNetworkArrayOutput() ServerNetworkArrayOutput

func (ServerNetworkArray) ToServerNetworkArrayOutputWithContext added in v0.6.2

func (i ServerNetworkArray) ToServerNetworkArrayOutputWithContext(ctx context.Context) ServerNetworkArrayOutput

type ServerNetworkArrayInput added in v0.6.2

type ServerNetworkArrayInput interface {
	pulumi.Input

	ToServerNetworkArrayOutput() ServerNetworkArrayOutput
	ToServerNetworkArrayOutputWithContext(context.Context) ServerNetworkArrayOutput
}

ServerNetworkArrayInput is an input type that accepts ServerNetworkArray and ServerNetworkArrayOutput values. You can construct a concrete instance of `ServerNetworkArrayInput` via:

ServerNetworkArray{ ServerNetworkArgs{...} }

type ServerNetworkArrayOutput added in v0.6.2

type ServerNetworkArrayOutput struct{ *pulumi.OutputState }

func (ServerNetworkArrayOutput) ElementType added in v0.6.2

func (ServerNetworkArrayOutput) ElementType() reflect.Type

func (ServerNetworkArrayOutput) Index added in v0.6.2

func (ServerNetworkArrayOutput) ToServerNetworkArrayOutput added in v0.6.2

func (o ServerNetworkArrayOutput) ToServerNetworkArrayOutput() ServerNetworkArrayOutput

func (ServerNetworkArrayOutput) ToServerNetworkArrayOutputWithContext added in v0.6.2

func (o ServerNetworkArrayOutput) ToServerNetworkArrayOutputWithContext(ctx context.Context) ServerNetworkArrayOutput

type ServerNetworkInput added in v0.4.1

type ServerNetworkInput interface {
	pulumi.Input

	ToServerNetworkOutput() ServerNetworkOutput
	ToServerNetworkOutputWithContext(ctx context.Context) ServerNetworkOutput
}

type ServerNetworkMap added in v0.6.2

type ServerNetworkMap map[string]ServerNetworkInput

func (ServerNetworkMap) ElementType added in v0.6.2

func (ServerNetworkMap) ElementType() reflect.Type

func (ServerNetworkMap) ToServerNetworkMapOutput added in v0.6.2

func (i ServerNetworkMap) ToServerNetworkMapOutput() ServerNetworkMapOutput

func (ServerNetworkMap) ToServerNetworkMapOutputWithContext added in v0.6.2

func (i ServerNetworkMap) ToServerNetworkMapOutputWithContext(ctx context.Context) ServerNetworkMapOutput

type ServerNetworkMapInput added in v0.6.2

type ServerNetworkMapInput interface {
	pulumi.Input

	ToServerNetworkMapOutput() ServerNetworkMapOutput
	ToServerNetworkMapOutputWithContext(context.Context) ServerNetworkMapOutput
}

ServerNetworkMapInput is an input type that accepts ServerNetworkMap and ServerNetworkMapOutput values. You can construct a concrete instance of `ServerNetworkMapInput` via:

ServerNetworkMap{ "key": ServerNetworkArgs{...} }

type ServerNetworkMapOutput added in v0.6.2

type ServerNetworkMapOutput struct{ *pulumi.OutputState }

func (ServerNetworkMapOutput) ElementType added in v0.6.2

func (ServerNetworkMapOutput) ElementType() reflect.Type

func (ServerNetworkMapOutput) MapIndex added in v0.6.2

func (ServerNetworkMapOutput) ToServerNetworkMapOutput added in v0.6.2

func (o ServerNetworkMapOutput) ToServerNetworkMapOutput() ServerNetworkMapOutput

func (ServerNetworkMapOutput) ToServerNetworkMapOutputWithContext added in v0.6.2

func (o ServerNetworkMapOutput) ToServerNetworkMapOutputWithContext(ctx context.Context) ServerNetworkMapOutput

type ServerNetworkOutput added in v0.4.1

type ServerNetworkOutput struct{ *pulumi.OutputState }

func (ServerNetworkOutput) AliasIps added in v1.9.0

Additional IPs to be assigned to this server.

func (ServerNetworkOutput) ElementType added in v0.4.1

func (ServerNetworkOutput) ElementType() reflect.Type

func (ServerNetworkOutput) Ip added in v1.9.0

IP to request to be assigned to this server. If you do not provide this then you will be auto assigned an IP address.

func (ServerNetworkOutput) MacAddress added in v1.9.0

func (o ServerNetworkOutput) MacAddress() pulumi.StringOutput

func (ServerNetworkOutput) NetworkId added in v1.9.0

func (o ServerNetworkOutput) NetworkId() pulumi.IntPtrOutput

ID of the network which should be added to the server. Required if `subnetId` is not set. Successful creation of the resource depends on the existence of a subnet in the Hetzner Cloud Backend. Using `networkId` will not create an explicit dependency between server and subnet. Therefore `dependsOn` may need to be used. Alternatively the `subnetId` property can be used, which will create an explicit dependency between `ServerNetwork` and the existence of a subnet.

func (ServerNetworkOutput) ServerId added in v1.9.0

func (o ServerNetworkOutput) ServerId() pulumi.IntOutput

ID of the server.

func (ServerNetworkOutput) SubnetId added in v1.9.0

ID of the sub-network which should be added to the Server. Required if `networkId` is not set. *Note*: if the `ip` property is missing, the Server is currently added to the last created subnet.

func (ServerNetworkOutput) ToServerNetworkOutput added in v0.4.1

func (o ServerNetworkOutput) ToServerNetworkOutput() ServerNetworkOutput

func (ServerNetworkOutput) ToServerNetworkOutputWithContext added in v0.4.1

func (o ServerNetworkOutput) ToServerNetworkOutputWithContext(ctx context.Context) ServerNetworkOutput

type ServerNetworkState

type ServerNetworkState struct {
	// Additional IPs to be assigned
	// to this server.
	AliasIps pulumi.StringArrayInput
	// IP to request to be assigned to this server.
	// If you do not provide this then you will be auto assigned an IP
	// address.
	Ip         pulumi.StringPtrInput
	MacAddress pulumi.StringPtrInput
	// ID of the network which should be added
	// to the server. Required if `subnetId` is not set. Successful creation
	// of the resource depends on the existence of a subnet in the Hetzner
	// Cloud Backend. Using `networkId` will not create an explicit
	// dependency between server and subnet. Therefore `dependsOn` may need
	// to be used. Alternatively the `subnetId` property can be used, which
	// will create an explicit dependency between `ServerNetwork` and
	// the existence of a subnet.
	NetworkId pulumi.IntPtrInput
	// ID of the server.
	ServerId pulumi.IntPtrInput
	// ID of the sub-network which should be
	// added to the Server. Required if `networkId` is not set.
	// *Note*: if the `ip` property is missing, the Server is currently added
	// to the last created subnet.
	SubnetId pulumi.StringPtrInput
}

func (ServerNetworkState) ElementType

func (ServerNetworkState) ElementType() reflect.Type

type ServerNetworkType added in v0.5.0

type ServerNetworkType struct {
	AliasIps []string `pulumi:"aliasIps"`
	// Specify the IP the server should get in the network
	Ip *string `pulumi:"ip"`
	// (Optional, string) The MAC address the private interface of the server has
	MacAddress *string `pulumi:"macAddress"`
	// ID of the network
	NetworkId int `pulumi:"networkId"`
}

type ServerNetworkTypeArgs added in v0.5.0

type ServerNetworkTypeArgs struct {
	AliasIps pulumi.StringArrayInput `pulumi:"aliasIps"`
	// Specify the IP the server should get in the network
	Ip pulumi.StringPtrInput `pulumi:"ip"`
	// (Optional, string) The MAC address the private interface of the server has
	MacAddress pulumi.StringPtrInput `pulumi:"macAddress"`
	// ID of the network
	NetworkId pulumi.IntInput `pulumi:"networkId"`
}

func (ServerNetworkTypeArgs) ElementType added in v0.5.0

func (ServerNetworkTypeArgs) ElementType() reflect.Type

func (ServerNetworkTypeArgs) ToServerNetworkTypeOutput added in v0.5.0

func (i ServerNetworkTypeArgs) ToServerNetworkTypeOutput() ServerNetworkTypeOutput

func (ServerNetworkTypeArgs) ToServerNetworkTypeOutputWithContext added in v0.5.0

func (i ServerNetworkTypeArgs) ToServerNetworkTypeOutputWithContext(ctx context.Context) ServerNetworkTypeOutput

type ServerNetworkTypeArray added in v0.5.0

type ServerNetworkTypeArray []ServerNetworkTypeInput

func (ServerNetworkTypeArray) ElementType added in v0.5.0

func (ServerNetworkTypeArray) ElementType() reflect.Type

func (ServerNetworkTypeArray) ToServerNetworkTypeArrayOutput added in v0.5.0

func (i ServerNetworkTypeArray) ToServerNetworkTypeArrayOutput() ServerNetworkTypeArrayOutput

func (ServerNetworkTypeArray) ToServerNetworkTypeArrayOutputWithContext added in v0.5.0

func (i ServerNetworkTypeArray) ToServerNetworkTypeArrayOutputWithContext(ctx context.Context) ServerNetworkTypeArrayOutput

type ServerNetworkTypeArrayInput added in v0.5.0

type ServerNetworkTypeArrayInput interface {
	pulumi.Input

	ToServerNetworkTypeArrayOutput() ServerNetworkTypeArrayOutput
	ToServerNetworkTypeArrayOutputWithContext(context.Context) ServerNetworkTypeArrayOutput
}

ServerNetworkTypeArrayInput is an input type that accepts ServerNetworkTypeArray and ServerNetworkTypeArrayOutput values. You can construct a concrete instance of `ServerNetworkTypeArrayInput` via:

ServerNetworkTypeArray{ ServerNetworkTypeArgs{...} }

type ServerNetworkTypeArrayOutput added in v0.5.0

type ServerNetworkTypeArrayOutput struct{ *pulumi.OutputState }

func (ServerNetworkTypeArrayOutput) ElementType added in v0.5.0

func (ServerNetworkTypeArrayOutput) Index added in v0.5.0

func (ServerNetworkTypeArrayOutput) ToServerNetworkTypeArrayOutput added in v0.5.0

func (o ServerNetworkTypeArrayOutput) ToServerNetworkTypeArrayOutput() ServerNetworkTypeArrayOutput

func (ServerNetworkTypeArrayOutput) ToServerNetworkTypeArrayOutputWithContext added in v0.5.0

func (o ServerNetworkTypeArrayOutput) ToServerNetworkTypeArrayOutputWithContext(ctx context.Context) ServerNetworkTypeArrayOutput

type ServerNetworkTypeInput added in v0.5.0

type ServerNetworkTypeInput interface {
	pulumi.Input

	ToServerNetworkTypeOutput() ServerNetworkTypeOutput
	ToServerNetworkTypeOutputWithContext(context.Context) ServerNetworkTypeOutput
}

ServerNetworkTypeInput is an input type that accepts ServerNetworkTypeArgs and ServerNetworkTypeOutput values. You can construct a concrete instance of `ServerNetworkTypeInput` via:

ServerNetworkTypeArgs{...}

type ServerNetworkTypeOutput added in v0.5.0

type ServerNetworkTypeOutput struct{ *pulumi.OutputState }

func (ServerNetworkTypeOutput) AliasIps added in v0.5.0

func (ServerNetworkTypeOutput) ElementType added in v0.5.0

func (ServerNetworkTypeOutput) ElementType() reflect.Type

func (ServerNetworkTypeOutput) Ip added in v0.5.0

Specify the IP the server should get in the network

func (ServerNetworkTypeOutput) MacAddress added in v0.5.0

(Optional, string) The MAC address the private interface of the server has

func (ServerNetworkTypeOutput) NetworkId added in v0.5.0

ID of the network

func (ServerNetworkTypeOutput) ToServerNetworkTypeOutput added in v0.5.0

func (o ServerNetworkTypeOutput) ToServerNetworkTypeOutput() ServerNetworkTypeOutput

func (ServerNetworkTypeOutput) ToServerNetworkTypeOutputWithContext added in v0.5.0

func (o ServerNetworkTypeOutput) ToServerNetworkTypeOutputWithContext(ctx context.Context) ServerNetworkTypeOutput

type ServerOutput added in v0.4.1

type ServerOutput struct{ *pulumi.OutputState }

func (ServerOutput) AllowDeprecatedImages added in v1.10.0

func (o ServerOutput) AllowDeprecatedImages() pulumi.BoolPtrOutput

Enable the use of deprecated images (default: false). **Note** Deprecated images will be removed after three months. Using them is then no longer possible.

func (ServerOutput) BackupWindow deprecated added in v1.9.0

func (o ServerOutput) BackupWindow() pulumi.StringOutput

(string) The backup window of the server, if enabled.

Deprecated: You should remove this property from your terraform configuration.

func (ServerOutput) Backups added in v1.9.0

func (o ServerOutput) Backups() pulumi.BoolPtrOutput

Enable or disable backups.

func (ServerOutput) Datacenter added in v1.9.0

func (o ServerOutput) Datacenter() pulumi.StringOutput

The datacenter name to create the server in. `nbg1-dc3`, `fsn1-dc14`, `hel1-dc2`, `ash-dc1` or `hil-dc1`

func (ServerOutput) DeleteProtection added in v1.9.0

func (o ServerOutput) DeleteProtection() pulumi.BoolPtrOutput

Enable or disable delete protection (Needs to be the same as `rebuildProtection`). See "Delete Protection" in the Provider Docs for details.

func (ServerOutput) ElementType added in v0.4.1

func (ServerOutput) ElementType() reflect.Type

func (ServerOutput) FirewallIds added in v1.9.0

func (o ServerOutput) FirewallIds() pulumi.IntArrayOutput

Firewall IDs the server should be attached to on creation.

func (ServerOutput) IgnoreRemoteFirewallIds added in v1.9.0

func (o ServerOutput) IgnoreRemoteFirewallIds() pulumi.BoolPtrOutput

Ignores any updates to the `firewallIds` argument which were received from the server. This should not be used in normal cases. See the documentation of the `FirewallAttachment` resource for a reason to use this argument.

func (ServerOutput) Image added in v1.9.0

func (ServerOutput) Ipv4Address added in v1.9.0

func (o ServerOutput) Ipv4Address() pulumi.StringOutput

(string) The IPv4 address.

func (ServerOutput) Ipv6Address added in v1.9.0

func (o ServerOutput) Ipv6Address() pulumi.StringOutput

(string) The first IPv6 address of the assigned network.

func (ServerOutput) Ipv6Network added in v1.9.0

func (o ServerOutput) Ipv6Network() pulumi.StringOutput

(string) The IPv6 network.

func (ServerOutput) Iso added in v1.9.0

ID or Name of an ISO image to mount.

func (ServerOutput) KeepDisk added in v1.9.0

func (o ServerOutput) KeepDisk() pulumi.BoolPtrOutput

If true, do not upgrade the disk. This allows downgrading the server type later.

func (ServerOutput) Labels added in v1.9.0

func (o ServerOutput) Labels() pulumi.MapOutput

User-defined labels (key-value pairs) should be created with.

func (ServerOutput) Location added in v1.9.0

func (o ServerOutput) Location() pulumi.StringOutput

The location name to create the server in. `nbg1`, `fsn1`, `hel1`, `ash` or `hil`

func (ServerOutput) Name added in v1.9.0

func (o ServerOutput) Name() pulumi.StringOutput

Name of the server to create (must be unique per project and a valid hostname as per RFC 1123).

func (ServerOutput) Networks added in v1.9.0

Network the server should be attached to on creation. (Can be specified multiple times)

func (ServerOutput) PlacementGroupId added in v1.9.0

func (o ServerOutput) PlacementGroupId() pulumi.IntPtrOutput

Placement Group ID the server added to on creation.

func (ServerOutput) PrimaryDiskSize added in v1.17.0

func (o ServerOutput) PrimaryDiskSize() pulumi.IntOutput

(int) The size of the primary disk in GB.

func (ServerOutput) PublicNets added in v1.9.0

In this block you can either enable / disable ipv4 and ipv6 or link existing primary IPs (checkout the examples). If this block is not defined, two primary (ipv4 & ipv6) ips getting auto generated.

func (ServerOutput) RebuildProtection added in v1.9.0

func (o ServerOutput) RebuildProtection() pulumi.BoolPtrOutput

Enable or disable rebuild protection (Needs to be the same as `deleteProtection`).

func (ServerOutput) Rescue added in v1.9.0

func (o ServerOutput) Rescue() pulumi.StringPtrOutput

Enable and boot in to the specified rescue system. This enables simple installation of custom operating systems. `linux64` or `linux32`

func (ServerOutput) ServerType added in v1.9.0

func (o ServerOutput) ServerType() pulumi.StringOutput

Name of the server type this server should be created with.

func (ServerOutput) ShutdownBeforeDeletion added in v1.15.0

func (o ServerOutput) ShutdownBeforeDeletion() pulumi.BoolPtrOutput

Whether to try shutting the server down gracefully before deleting it.

func (ServerOutput) SshKeys added in v1.9.0

SSH key IDs or names which should be injected into the server at creation time. Once the server is created, you can not update the list of SSH Keys. If you do change this, you will be prompted to destroy and recreate the server. You can avoid this by setting lifecycle.ignore_changes to `[ sshKeys ]`.

func (ServerOutput) Status added in v1.9.0

func (o ServerOutput) Status() pulumi.StringOutput

(string) The status of the server.

func (ServerOutput) ToServerOutput added in v0.4.1

func (o ServerOutput) ToServerOutput() ServerOutput

func (ServerOutput) ToServerOutputWithContext added in v0.4.1

func (o ServerOutput) ToServerOutputWithContext(ctx context.Context) ServerOutput

func (ServerOutput) UserData added in v1.9.0

func (o ServerOutput) UserData() pulumi.StringPtrOutput

Cloud-Init user data to use during server creation

type ServerPublicNet added in v1.9.0

type ServerPublicNet struct {
	Ipv4        *int  `pulumi:"ipv4"`
	Ipv4Enabled *bool `pulumi:"ipv4Enabled"`
	Ipv6        *int  `pulumi:"ipv6"`
	Ipv6Enabled *bool `pulumi:"ipv6Enabled"`
}

type ServerPublicNetArgs added in v1.9.0

type ServerPublicNetArgs struct {
	Ipv4        pulumi.IntPtrInput  `pulumi:"ipv4"`
	Ipv4Enabled pulumi.BoolPtrInput `pulumi:"ipv4Enabled"`
	Ipv6        pulumi.IntPtrInput  `pulumi:"ipv6"`
	Ipv6Enabled pulumi.BoolPtrInput `pulumi:"ipv6Enabled"`
}

func (ServerPublicNetArgs) ElementType added in v1.9.0

func (ServerPublicNetArgs) ElementType() reflect.Type

func (ServerPublicNetArgs) ToServerPublicNetOutput added in v1.9.0

func (i ServerPublicNetArgs) ToServerPublicNetOutput() ServerPublicNetOutput

func (ServerPublicNetArgs) ToServerPublicNetOutputWithContext added in v1.9.0

func (i ServerPublicNetArgs) ToServerPublicNetOutputWithContext(ctx context.Context) ServerPublicNetOutput

type ServerPublicNetArray added in v1.9.0

type ServerPublicNetArray []ServerPublicNetInput

func (ServerPublicNetArray) ElementType added in v1.9.0

func (ServerPublicNetArray) ElementType() reflect.Type

func (ServerPublicNetArray) ToServerPublicNetArrayOutput added in v1.9.0

func (i ServerPublicNetArray) ToServerPublicNetArrayOutput() ServerPublicNetArrayOutput

func (ServerPublicNetArray) ToServerPublicNetArrayOutputWithContext added in v1.9.0

func (i ServerPublicNetArray) ToServerPublicNetArrayOutputWithContext(ctx context.Context) ServerPublicNetArrayOutput

type ServerPublicNetArrayInput added in v1.9.0

type ServerPublicNetArrayInput interface {
	pulumi.Input

	ToServerPublicNetArrayOutput() ServerPublicNetArrayOutput
	ToServerPublicNetArrayOutputWithContext(context.Context) ServerPublicNetArrayOutput
}

ServerPublicNetArrayInput is an input type that accepts ServerPublicNetArray and ServerPublicNetArrayOutput values. You can construct a concrete instance of `ServerPublicNetArrayInput` via:

ServerPublicNetArray{ ServerPublicNetArgs{...} }

type ServerPublicNetArrayOutput added in v1.9.0

type ServerPublicNetArrayOutput struct{ *pulumi.OutputState }

func (ServerPublicNetArrayOutput) ElementType added in v1.9.0

func (ServerPublicNetArrayOutput) ElementType() reflect.Type

func (ServerPublicNetArrayOutput) Index added in v1.9.0

func (ServerPublicNetArrayOutput) ToServerPublicNetArrayOutput added in v1.9.0

func (o ServerPublicNetArrayOutput) ToServerPublicNetArrayOutput() ServerPublicNetArrayOutput

func (ServerPublicNetArrayOutput) ToServerPublicNetArrayOutputWithContext added in v1.9.0

func (o ServerPublicNetArrayOutput) ToServerPublicNetArrayOutputWithContext(ctx context.Context) ServerPublicNetArrayOutput

type ServerPublicNetInput added in v1.9.0

type ServerPublicNetInput interface {
	pulumi.Input

	ToServerPublicNetOutput() ServerPublicNetOutput
	ToServerPublicNetOutputWithContext(context.Context) ServerPublicNetOutput
}

ServerPublicNetInput is an input type that accepts ServerPublicNetArgs and ServerPublicNetOutput values. You can construct a concrete instance of `ServerPublicNetInput` via:

ServerPublicNetArgs{...}

type ServerPublicNetOutput added in v1.9.0

type ServerPublicNetOutput struct{ *pulumi.OutputState }

func (ServerPublicNetOutput) ElementType added in v1.9.0

func (ServerPublicNetOutput) ElementType() reflect.Type

func (ServerPublicNetOutput) Ipv4 added in v1.9.0

func (ServerPublicNetOutput) Ipv4Enabled added in v1.9.0

func (o ServerPublicNetOutput) Ipv4Enabled() pulumi.BoolPtrOutput

func (ServerPublicNetOutput) Ipv6 added in v1.9.0

func (ServerPublicNetOutput) Ipv6Enabled added in v1.9.0

func (o ServerPublicNetOutput) Ipv6Enabled() pulumi.BoolPtrOutput

func (ServerPublicNetOutput) ToServerPublicNetOutput added in v1.9.0

func (o ServerPublicNetOutput) ToServerPublicNetOutput() ServerPublicNetOutput

func (ServerPublicNetOutput) ToServerPublicNetOutputWithContext added in v1.9.0

func (o ServerPublicNetOutput) ToServerPublicNetOutputWithContext(ctx context.Context) ServerPublicNetOutput

type ServerState

type ServerState struct {
	// Enable the use of deprecated images (default: false). **Note** Deprecated images will be removed after three months. Using them is then no longer possible.
	AllowDeprecatedImages pulumi.BoolPtrInput
	// (string) The backup window of the server, if enabled.
	//
	// Deprecated: You should remove this property from your terraform configuration.
	BackupWindow pulumi.StringPtrInput
	// Enable or disable backups.
	Backups pulumi.BoolPtrInput
	// The datacenter name to create the server in. `nbg1-dc3`, `fsn1-dc14`, `hel1-dc2`, `ash-dc1` or `hil-dc1`
	Datacenter pulumi.StringPtrInput
	// Enable or disable delete protection (Needs to be the same as `rebuildProtection`). See "Delete Protection" in the Provider Docs for details.
	DeleteProtection pulumi.BoolPtrInput
	// Firewall IDs the server should be attached to on creation.
	FirewallIds pulumi.IntArrayInput
	// Ignores any updates
	// to the `firewallIds` argument which were received from the server.
	// This should not be used in normal cases. See the documentation of the
	// `FirewallAttachment` resource for a reason to use this
	// argument.
	IgnoreRemoteFirewallIds pulumi.BoolPtrInput
	Image                   pulumi.StringPtrInput
	// (string) The IPv4 address.
	Ipv4Address pulumi.StringPtrInput
	// (string) The first IPv6 address of the assigned network.
	Ipv6Address pulumi.StringPtrInput
	// (string) The IPv6 network.
	Ipv6Network pulumi.StringPtrInput
	// ID or Name of an ISO image to mount.
	Iso pulumi.StringPtrInput
	// If true, do not upgrade the disk. This allows downgrading the server type later.
	KeepDisk pulumi.BoolPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// The location name to create the server in. `nbg1`, `fsn1`, `hel1`, `ash` or `hil`
	Location pulumi.StringPtrInput
	// Name of the server to create (must be unique per project and a valid hostname as per RFC 1123).
	Name pulumi.StringPtrInput
	// Network the server should be attached to on creation. (Can be specified multiple times)
	Networks ServerNetworkTypeArrayInput
	// Placement Group ID the server added to on creation.
	PlacementGroupId pulumi.IntPtrInput
	// (int) The size of the primary disk in GB.
	PrimaryDiskSize pulumi.IntPtrInput
	// In this block you can either enable / disable ipv4 and ipv6 or link existing primary IPs (checkout the examples).
	// If this block is not defined, two primary (ipv4 & ipv6) ips getting auto generated.
	PublicNets ServerPublicNetArrayInput
	// Enable or disable rebuild protection (Needs to be the same as `deleteProtection`).
	RebuildProtection pulumi.BoolPtrInput
	// Enable and boot in to the specified rescue system. This enables simple installation of custom operating systems. `linux64` or `linux32`
	Rescue pulumi.StringPtrInput
	// Name of the server type this server should be created with.
	ServerType pulumi.StringPtrInput
	// Whether to try shutting the server down gracefully before deleting it.
	ShutdownBeforeDeletion pulumi.BoolPtrInput
	// SSH key IDs or names which should be injected into the server at creation time. Once the server is created, you can not update the list of SSH Keys. If you do change this, you will be prompted to destroy and recreate the server. You can avoid this by setting lifecycle.ignore_changes to `[ sshKeys ]`.
	SshKeys pulumi.StringArrayInput
	// (string) The status of the server.
	Status pulumi.StringPtrInput
	// Cloud-Init user data to use during server creation
	UserData pulumi.StringPtrInput
}

func (ServerState) ElementType

func (ServerState) ElementType() reflect.Type

type Snapshot added in v0.7.0

type Snapshot struct {
	pulumi.CustomResourceState

	// Description of the snapshot.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// Server to the snapshot should be created from.
	ServerId pulumi.IntOutput `pulumi:"serverId"`
}

Provides a Hetzner Cloud snapshot to represent an image with type snapshot in the Hetzner Cloud. This resource makes it easy to create a snapshot of your server.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		node1, err := hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image:      pulumi.String("debian-11"),
			ServerType: pulumi.String("cx11"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewSnapshot(ctx, "my-snapshot", &hcloud.SnapshotArgs{
			ServerId: node1.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Snapshots can be imported using its image `id`:

```sh $ pulumi import hcloud:index/snapshot:Snapshot myimage id ```

func GetSnapshot added in v0.7.0

func GetSnapshot(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SnapshotState, opts ...pulumi.ResourceOption) (*Snapshot, error)

GetSnapshot gets an existing Snapshot resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSnapshot added in v0.7.0

func NewSnapshot(ctx *pulumi.Context,
	name string, args *SnapshotArgs, opts ...pulumi.ResourceOption) (*Snapshot, error)

NewSnapshot registers a new resource with the given unique name, arguments, and options.

func (*Snapshot) ElementType added in v0.7.0

func (*Snapshot) ElementType() reflect.Type

func (*Snapshot) ToSnapshotOutput added in v0.7.0

func (i *Snapshot) ToSnapshotOutput() SnapshotOutput

func (*Snapshot) ToSnapshotOutputWithContext added in v0.7.0

func (i *Snapshot) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput

type SnapshotArgs added in v0.7.0

type SnapshotArgs struct {
	// Description of the snapshot.
	Description pulumi.StringPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Server to the snapshot should be created from.
	ServerId pulumi.IntInput
}

The set of arguments for constructing a Snapshot resource.

func (SnapshotArgs) ElementType added in v0.7.0

func (SnapshotArgs) ElementType() reflect.Type

type SnapshotArray added in v0.7.0

type SnapshotArray []SnapshotInput

func (SnapshotArray) ElementType added in v0.7.0

func (SnapshotArray) ElementType() reflect.Type

func (SnapshotArray) ToSnapshotArrayOutput added in v0.7.0

func (i SnapshotArray) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArray) ToSnapshotArrayOutputWithContext added in v0.7.0

func (i SnapshotArray) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput

type SnapshotArrayInput added in v0.7.0

type SnapshotArrayInput interface {
	pulumi.Input

	ToSnapshotArrayOutput() SnapshotArrayOutput
	ToSnapshotArrayOutputWithContext(context.Context) SnapshotArrayOutput
}

SnapshotArrayInput is an input type that accepts SnapshotArray and SnapshotArrayOutput values. You can construct a concrete instance of `SnapshotArrayInput` via:

SnapshotArray{ SnapshotArgs{...} }

type SnapshotArrayOutput added in v0.7.0

type SnapshotArrayOutput struct{ *pulumi.OutputState }

func (SnapshotArrayOutput) ElementType added in v0.7.0

func (SnapshotArrayOutput) ElementType() reflect.Type

func (SnapshotArrayOutput) Index added in v0.7.0

func (SnapshotArrayOutput) ToSnapshotArrayOutput added in v0.7.0

func (o SnapshotArrayOutput) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArrayOutput) ToSnapshotArrayOutputWithContext added in v0.7.0

func (o SnapshotArrayOutput) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput

type SnapshotInput added in v0.7.0

type SnapshotInput interface {
	pulumi.Input

	ToSnapshotOutput() SnapshotOutput
	ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput
}

type SnapshotMap added in v0.7.0

type SnapshotMap map[string]SnapshotInput

func (SnapshotMap) ElementType added in v0.7.0

func (SnapshotMap) ElementType() reflect.Type

func (SnapshotMap) ToSnapshotMapOutput added in v0.7.0

func (i SnapshotMap) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMap) ToSnapshotMapOutputWithContext added in v0.7.0

func (i SnapshotMap) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput

type SnapshotMapInput added in v0.7.0

type SnapshotMapInput interface {
	pulumi.Input

	ToSnapshotMapOutput() SnapshotMapOutput
	ToSnapshotMapOutputWithContext(context.Context) SnapshotMapOutput
}

SnapshotMapInput is an input type that accepts SnapshotMap and SnapshotMapOutput values. You can construct a concrete instance of `SnapshotMapInput` via:

SnapshotMap{ "key": SnapshotArgs{...} }

type SnapshotMapOutput added in v0.7.0

type SnapshotMapOutput struct{ *pulumi.OutputState }

func (SnapshotMapOutput) ElementType added in v0.7.0

func (SnapshotMapOutput) ElementType() reflect.Type

func (SnapshotMapOutput) MapIndex added in v0.7.0

func (SnapshotMapOutput) ToSnapshotMapOutput added in v0.7.0

func (o SnapshotMapOutput) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMapOutput) ToSnapshotMapOutputWithContext added in v0.7.0

func (o SnapshotMapOutput) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput

type SnapshotOutput added in v0.7.0

type SnapshotOutput struct{ *pulumi.OutputState }

func (SnapshotOutput) Description added in v1.9.0

func (o SnapshotOutput) Description() pulumi.StringPtrOutput

Description of the snapshot.

func (SnapshotOutput) ElementType added in v0.7.0

func (SnapshotOutput) ElementType() reflect.Type

func (SnapshotOutput) Labels added in v1.9.0

func (o SnapshotOutput) Labels() pulumi.MapOutput

User-defined labels (key-value pairs) should be created with.

func (SnapshotOutput) ServerId added in v1.9.0

func (o SnapshotOutput) ServerId() pulumi.IntOutput

Server to the snapshot should be created from.

func (SnapshotOutput) ToSnapshotOutput added in v0.7.0

func (o SnapshotOutput) ToSnapshotOutput() SnapshotOutput

func (SnapshotOutput) ToSnapshotOutputWithContext added in v0.7.0

func (o SnapshotOutput) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput

type SnapshotState added in v0.7.0

type SnapshotState struct {
	// Description of the snapshot.
	Description pulumi.StringPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.MapInput
	// Server to the snapshot should be created from.
	ServerId pulumi.IntPtrInput
}

func (SnapshotState) ElementType added in v0.7.0

func (SnapshotState) ElementType() reflect.Type

type SshKey

type SshKey struct {
	pulumi.CustomResourceState

	// (string) The fingerprint of the SSH key
	Fingerprint pulumi.StringOutput `pulumi:"fingerprint"`
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.StringMapOutput `pulumi:"labels"`
	// Name of the SSH key.
	Name pulumi.StringOutput `pulumi:"name"`
	// The public key. If this is a file, it can be read using the file interpolation function
	PublicKey pulumi.StringOutput `pulumi:"publicKey"`
}

Provides a Hetzner Cloud SSH key resource to manage SSH keys for server access.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"os"

"github.com/pulumi/pulumi-hcloud/sdk/go/hcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Create a new SSH key
		_, err := hcloud.NewSshKey(ctx, "default", &hcloud.SshKeyArgs{
			PublicKey: readFileOrPanic("~/.ssh/id_rsa.pub"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

SSH keys can be imported using the SSH key `id`:

```sh $ pulumi import hcloud:index/sshKey:SshKey mykey id ```

func GetSshKey

func GetSshKey(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SshKeyState, opts ...pulumi.ResourceOption) (*SshKey, error)

GetSshKey gets an existing SshKey resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSshKey

func NewSshKey(ctx *pulumi.Context,
	name string, args *SshKeyArgs, opts ...pulumi.ResourceOption) (*SshKey, error)

NewSshKey registers a new resource with the given unique name, arguments, and options.

func (*SshKey) ElementType added in v0.4.1

func (*SshKey) ElementType() reflect.Type

func (*SshKey) ToSshKeyOutput added in v0.4.1

func (i *SshKey) ToSshKeyOutput() SshKeyOutput

func (*SshKey) ToSshKeyOutputWithContext added in v0.4.1

func (i *SshKey) ToSshKeyOutputWithContext(ctx context.Context) SshKeyOutput

type SshKeyArgs

type SshKeyArgs struct {
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.StringMapInput
	// Name of the SSH key.
	Name pulumi.StringPtrInput
	// The public key. If this is a file, it can be read using the file interpolation function
	PublicKey pulumi.StringInput
}

The set of arguments for constructing a SshKey resource.

func (SshKeyArgs) ElementType

func (SshKeyArgs) ElementType() reflect.Type

type SshKeyArray added in v0.6.2

type SshKeyArray []SshKeyInput

func (SshKeyArray) ElementType added in v0.6.2

func (SshKeyArray) ElementType() reflect.Type

func (SshKeyArray) ToSshKeyArrayOutput added in v0.6.2

func (i SshKeyArray) ToSshKeyArrayOutput() SshKeyArrayOutput

func (SshKeyArray) ToSshKeyArrayOutputWithContext added in v0.6.2

func (i SshKeyArray) ToSshKeyArrayOutputWithContext(ctx context.Context) SshKeyArrayOutput

type SshKeyArrayInput added in v0.6.2

type SshKeyArrayInput interface {
	pulumi.Input

	ToSshKeyArrayOutput() SshKeyArrayOutput
	ToSshKeyArrayOutputWithContext(context.Context) SshKeyArrayOutput
}

SshKeyArrayInput is an input type that accepts SshKeyArray and SshKeyArrayOutput values. You can construct a concrete instance of `SshKeyArrayInput` via:

SshKeyArray{ SshKeyArgs{...} }

type SshKeyArrayOutput added in v0.6.2

type SshKeyArrayOutput struct{ *pulumi.OutputState }

func (SshKeyArrayOutput) ElementType added in v0.6.2

func (SshKeyArrayOutput) ElementType() reflect.Type

func (SshKeyArrayOutput) Index added in v0.6.2

func (SshKeyArrayOutput) ToSshKeyArrayOutput added in v0.6.2

func (o SshKeyArrayOutput) ToSshKeyArrayOutput() SshKeyArrayOutput

func (SshKeyArrayOutput) ToSshKeyArrayOutputWithContext added in v0.6.2

func (o SshKeyArrayOutput) ToSshKeyArrayOutputWithContext(ctx context.Context) SshKeyArrayOutput

type SshKeyInput added in v0.4.1

type SshKeyInput interface {
	pulumi.Input

	ToSshKeyOutput() SshKeyOutput
	ToSshKeyOutputWithContext(ctx context.Context) SshKeyOutput
}

type SshKeyMap added in v0.6.2

type SshKeyMap map[string]SshKeyInput

func (SshKeyMap) ElementType added in v0.6.2

func (SshKeyMap) ElementType() reflect.Type

func (SshKeyMap) ToSshKeyMapOutput added in v0.6.2

func (i SshKeyMap) ToSshKeyMapOutput() SshKeyMapOutput

func (SshKeyMap) ToSshKeyMapOutputWithContext added in v0.6.2

func (i SshKeyMap) ToSshKeyMapOutputWithContext(ctx context.Context) SshKeyMapOutput

type SshKeyMapInput added in v0.6.2

type SshKeyMapInput interface {
	pulumi.Input

	ToSshKeyMapOutput() SshKeyMapOutput
	ToSshKeyMapOutputWithContext(context.Context) SshKeyMapOutput
}

SshKeyMapInput is an input type that accepts SshKeyMap and SshKeyMapOutput values. You can construct a concrete instance of `SshKeyMapInput` via:

SshKeyMap{ "key": SshKeyArgs{...} }

type SshKeyMapOutput added in v0.6.2

type SshKeyMapOutput struct{ *pulumi.OutputState }

func (SshKeyMapOutput) ElementType added in v0.6.2

func (SshKeyMapOutput) ElementType() reflect.Type

func (SshKeyMapOutput) MapIndex added in v0.6.2

func (SshKeyMapOutput) ToSshKeyMapOutput added in v0.6.2

func (o SshKeyMapOutput) ToSshKeyMapOutput() SshKeyMapOutput

func (SshKeyMapOutput) ToSshKeyMapOutputWithContext added in v0.6.2

func (o SshKeyMapOutput) ToSshKeyMapOutputWithContext(ctx context.Context) SshKeyMapOutput

type SshKeyOutput added in v0.4.1

type SshKeyOutput struct{ *pulumi.OutputState }

func (SshKeyOutput) ElementType added in v0.4.1

func (SshKeyOutput) ElementType() reflect.Type

func (SshKeyOutput) Fingerprint added in v1.9.0

func (o SshKeyOutput) Fingerprint() pulumi.StringOutput

(string) The fingerprint of the SSH key

func (SshKeyOutput) Labels added in v1.9.0

func (o SshKeyOutput) Labels() pulumi.StringMapOutput

User-defined labels (key-value pairs) should be created with.

func (SshKeyOutput) Name added in v1.9.0

func (o SshKeyOutput) Name() pulumi.StringOutput

Name of the SSH key.

func (SshKeyOutput) PublicKey added in v1.9.0

func (o SshKeyOutput) PublicKey() pulumi.StringOutput

The public key. If this is a file, it can be read using the file interpolation function

func (SshKeyOutput) ToSshKeyOutput added in v0.4.1

func (o SshKeyOutput) ToSshKeyOutput() SshKeyOutput

func (SshKeyOutput) ToSshKeyOutputWithContext added in v0.4.1

func (o SshKeyOutput) ToSshKeyOutputWithContext(ctx context.Context) SshKeyOutput

type SshKeyState

type SshKeyState struct {
	// (string) The fingerprint of the SSH key
	Fingerprint pulumi.StringPtrInput
	// User-defined labels (key-value pairs) should be created with.
	Labels pulumi.StringMapInput
	// Name of the SSH key.
	Name pulumi.StringPtrInput
	// The public key. If this is a file, it can be read using the file interpolation function
	PublicKey pulumi.StringPtrInput
}

func (SshKeyState) ElementType

func (SshKeyState) ElementType() reflect.Type

type UploadedCertificate added in v0.8.0

type UploadedCertificate struct {
	pulumi.CustomResourceState

	// PEM encoded TLS certificate.
	Certificate pulumi.StringOutput `pulumi:"certificate"`
	// (string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
	Created pulumi.StringOutput `pulumi:"created"`
	// (list) Domains and subdomains covered by the certificate.
	DomainNames pulumi.StringArrayOutput `pulumi:"domainNames"`
	// (string) Fingerprint of the certificate.
	Fingerprint pulumi.StringOutput `pulumi:"fingerprint"`
	// User-defined labels (key-value pairs) the
	// certificate should be created with.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// Name of the Certificate.
	Name pulumi.StringOutput `pulumi:"name"`
	// (string) Point in time when the Certificate stops being valid (in ISO-8601 format).
	NotValidAfter pulumi.StringOutput `pulumi:"notValidAfter"`
	// (string) Point in time when the Certificate becomes valid (in ISO-8601 format).
	NotValidBefore pulumi.StringOutput `pulumi:"notValidBefore"`
	// PEM encoded private key belonging to the certificate.
	PrivateKey pulumi.StringOutput `pulumi:"privateKey"`
	Type       pulumi.StringOutput `pulumi:"type"`
}

Upload a TLS certificate to Hetzner Cloud.

## Import

Uploaded certificates can be imported using their `id`:

hcl

```sh $ pulumi import hcloud:index/uploadedCertificate:UploadedCertificate sample_certificate id ```

func GetUploadedCertificate added in v0.8.0

func GetUploadedCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UploadedCertificateState, opts ...pulumi.ResourceOption) (*UploadedCertificate, error)

GetUploadedCertificate gets an existing UploadedCertificate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewUploadedCertificate added in v0.8.0

func NewUploadedCertificate(ctx *pulumi.Context,
	name string, args *UploadedCertificateArgs, opts ...pulumi.ResourceOption) (*UploadedCertificate, error)

NewUploadedCertificate registers a new resource with the given unique name, arguments, and options.

func (*UploadedCertificate) ElementType added in v0.8.0

func (*UploadedCertificate) ElementType() reflect.Type

func (*UploadedCertificate) ToUploadedCertificateOutput added in v0.8.0

func (i *UploadedCertificate) ToUploadedCertificateOutput() UploadedCertificateOutput

func (*UploadedCertificate) ToUploadedCertificateOutputWithContext added in v0.8.0

func (i *UploadedCertificate) ToUploadedCertificateOutputWithContext(ctx context.Context) UploadedCertificateOutput

type UploadedCertificateArgs added in v0.8.0

type UploadedCertificateArgs struct {
	// PEM encoded TLS certificate.
	Certificate pulumi.StringInput
	// User-defined labels (key-value pairs) the
	// certificate should be created with.
	Labels pulumi.MapInput
	// Name of the Certificate.
	Name pulumi.StringPtrInput
	// PEM encoded private key belonging to the certificate.
	PrivateKey pulumi.StringInput
}

The set of arguments for constructing a UploadedCertificate resource.

func (UploadedCertificateArgs) ElementType added in v0.8.0

func (UploadedCertificateArgs) ElementType() reflect.Type

type UploadedCertificateArray added in v0.8.0

type UploadedCertificateArray []UploadedCertificateInput

func (UploadedCertificateArray) ElementType added in v0.8.0

func (UploadedCertificateArray) ElementType() reflect.Type

func (UploadedCertificateArray) ToUploadedCertificateArrayOutput added in v0.8.0

func (i UploadedCertificateArray) ToUploadedCertificateArrayOutput() UploadedCertificateArrayOutput

func (UploadedCertificateArray) ToUploadedCertificateArrayOutputWithContext added in v0.8.0

func (i UploadedCertificateArray) ToUploadedCertificateArrayOutputWithContext(ctx context.Context) UploadedCertificateArrayOutput

type UploadedCertificateArrayInput added in v0.8.0

type UploadedCertificateArrayInput interface {
	pulumi.Input

	ToUploadedCertificateArrayOutput() UploadedCertificateArrayOutput
	ToUploadedCertificateArrayOutputWithContext(context.Context) UploadedCertificateArrayOutput
}

UploadedCertificateArrayInput is an input type that accepts UploadedCertificateArray and UploadedCertificateArrayOutput values. You can construct a concrete instance of `UploadedCertificateArrayInput` via:

UploadedCertificateArray{ UploadedCertificateArgs{...} }

type UploadedCertificateArrayOutput added in v0.8.0

type UploadedCertificateArrayOutput struct{ *pulumi.OutputState }

func (UploadedCertificateArrayOutput) ElementType added in v0.8.0

func (UploadedCertificateArrayOutput) Index added in v0.8.0

func (UploadedCertificateArrayOutput) ToUploadedCertificateArrayOutput added in v0.8.0

func (o UploadedCertificateArrayOutput) ToUploadedCertificateArrayOutput() UploadedCertificateArrayOutput

func (UploadedCertificateArrayOutput) ToUploadedCertificateArrayOutputWithContext added in v0.8.0

func (o UploadedCertificateArrayOutput) ToUploadedCertificateArrayOutputWithContext(ctx context.Context) UploadedCertificateArrayOutput

type UploadedCertificateInput added in v0.8.0

type UploadedCertificateInput interface {
	pulumi.Input

	ToUploadedCertificateOutput() UploadedCertificateOutput
	ToUploadedCertificateOutputWithContext(ctx context.Context) UploadedCertificateOutput
}

type UploadedCertificateMap added in v0.8.0

type UploadedCertificateMap map[string]UploadedCertificateInput

func (UploadedCertificateMap) ElementType added in v0.8.0

func (UploadedCertificateMap) ElementType() reflect.Type

func (UploadedCertificateMap) ToUploadedCertificateMapOutput added in v0.8.0

func (i UploadedCertificateMap) ToUploadedCertificateMapOutput() UploadedCertificateMapOutput

func (UploadedCertificateMap) ToUploadedCertificateMapOutputWithContext added in v0.8.0

func (i UploadedCertificateMap) ToUploadedCertificateMapOutputWithContext(ctx context.Context) UploadedCertificateMapOutput

type UploadedCertificateMapInput added in v0.8.0

type UploadedCertificateMapInput interface {
	pulumi.Input

	ToUploadedCertificateMapOutput() UploadedCertificateMapOutput
	ToUploadedCertificateMapOutputWithContext(context.Context) UploadedCertificateMapOutput
}

UploadedCertificateMapInput is an input type that accepts UploadedCertificateMap and UploadedCertificateMapOutput values. You can construct a concrete instance of `UploadedCertificateMapInput` via:

UploadedCertificateMap{ "key": UploadedCertificateArgs{...} }

type UploadedCertificateMapOutput added in v0.8.0

type UploadedCertificateMapOutput struct{ *pulumi.OutputState }

func (UploadedCertificateMapOutput) ElementType added in v0.8.0

func (UploadedCertificateMapOutput) MapIndex added in v0.8.0

func (UploadedCertificateMapOutput) ToUploadedCertificateMapOutput added in v0.8.0

func (o UploadedCertificateMapOutput) ToUploadedCertificateMapOutput() UploadedCertificateMapOutput

func (UploadedCertificateMapOutput) ToUploadedCertificateMapOutputWithContext added in v0.8.0

func (o UploadedCertificateMapOutput) ToUploadedCertificateMapOutputWithContext(ctx context.Context) UploadedCertificateMapOutput

type UploadedCertificateOutput added in v0.8.0

type UploadedCertificateOutput struct{ *pulumi.OutputState }

func (UploadedCertificateOutput) Certificate added in v1.9.0

PEM encoded TLS certificate.

func (UploadedCertificateOutput) Created added in v1.9.0

(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).

func (UploadedCertificateOutput) DomainNames added in v1.9.0

(list) Domains and subdomains covered by the certificate.

func (UploadedCertificateOutput) ElementType added in v0.8.0

func (UploadedCertificateOutput) ElementType() reflect.Type

func (UploadedCertificateOutput) Fingerprint added in v1.9.0

(string) Fingerprint of the certificate.

func (UploadedCertificateOutput) Labels added in v1.9.0

User-defined labels (key-value pairs) the certificate should be created with.

func (UploadedCertificateOutput) Name added in v1.9.0

Name of the Certificate.

func (UploadedCertificateOutput) NotValidAfter added in v1.9.0

func (o UploadedCertificateOutput) NotValidAfter() pulumi.StringOutput

(string) Point in time when the Certificate stops being valid (in ISO-8601 format).

func (UploadedCertificateOutput) NotValidBefore added in v1.9.0

func (o UploadedCertificateOutput) NotValidBefore() pulumi.StringOutput

(string) Point in time when the Certificate becomes valid (in ISO-8601 format).

func (UploadedCertificateOutput) PrivateKey added in v1.9.0

PEM encoded private key belonging to the certificate.

func (UploadedCertificateOutput) ToUploadedCertificateOutput added in v0.8.0

func (o UploadedCertificateOutput) ToUploadedCertificateOutput() UploadedCertificateOutput

func (UploadedCertificateOutput) ToUploadedCertificateOutputWithContext added in v0.8.0

func (o UploadedCertificateOutput) ToUploadedCertificateOutputWithContext(ctx context.Context) UploadedCertificateOutput

func (UploadedCertificateOutput) Type added in v1.9.0

type UploadedCertificateState added in v0.8.0

type UploadedCertificateState struct {
	// PEM encoded TLS certificate.
	Certificate pulumi.StringPtrInput
	// (string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
	Created pulumi.StringPtrInput
	// (list) Domains and subdomains covered by the certificate.
	DomainNames pulumi.StringArrayInput
	// (string) Fingerprint of the certificate.
	Fingerprint pulumi.StringPtrInput
	// User-defined labels (key-value pairs) the
	// certificate should be created with.
	Labels pulumi.MapInput
	// Name of the Certificate.
	Name pulumi.StringPtrInput
	// (string) Point in time when the Certificate stops being valid (in ISO-8601 format).
	NotValidAfter pulumi.StringPtrInput
	// (string) Point in time when the Certificate becomes valid (in ISO-8601 format).
	NotValidBefore pulumi.StringPtrInput
	// PEM encoded private key belonging to the certificate.
	PrivateKey pulumi.StringPtrInput
	Type       pulumi.StringPtrInput
}

func (UploadedCertificateState) ElementType added in v0.8.0

func (UploadedCertificateState) ElementType() reflect.Type

type Volume

type Volume struct {
	pulumi.CustomResourceState

	// Automount the volume upon attaching it (server_id must be provided).
	Automount pulumi.BoolPtrOutput `pulumi:"automount"`
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	//
	// **Note:** When you want to attach multiple volumes to a server, please use the `VolumeAttachment` resource and the `location` argument instead of the `serverId` argument.
	DeleteProtection pulumi.BoolPtrOutput `pulumi:"deleteProtection"`
	// Format volume after creation. `xfs` or `ext4`
	Format pulumi.StringPtrOutput `pulumi:"format"`
	// (map) User-defined labels (key-value pairs).
	Labels pulumi.MapOutput `pulumi:"labels"`
	// (string) Device path on the file system for the Volume.
	LinuxDevice pulumi.StringOutput `pulumi:"linuxDevice"`
	// The location name of the volume to create, not allowed if serverId argument is passed.
	Location pulumi.StringOutput `pulumi:"location"`
	// Name of the volume to create (must be unique per project).
	Name pulumi.StringOutput `pulumi:"name"`
	// Server to attach the Volume to, not allowed if location argument is passed.
	ServerId pulumi.IntOutput `pulumi:"serverId"`
	// Size of the volume (in GB).
	Size pulumi.IntOutput `pulumi:"size"`
}

Provides a Hetzner Cloud volume resource to manage volumes.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		node1, err := hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image:      pulumi.String("debian-11"),
			ServerType: pulumi.String("cx11"),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewVolume(ctx, "master", &hcloud.VolumeArgs{
			Size:      pulumi.Int(50),
			ServerId:  node1.ID(),
			Automount: pulumi.Bool(true),
			Format:    pulumi.String("ext4"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Volumes can be imported using their `id`:

```sh $ pulumi import hcloud:index/volume:Volume myvolume id ```

func GetVolume

func GetVolume(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VolumeState, opts ...pulumi.ResourceOption) (*Volume, error)

GetVolume gets an existing Volume resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewVolume

func NewVolume(ctx *pulumi.Context,
	name string, args *VolumeArgs, opts ...pulumi.ResourceOption) (*Volume, error)

NewVolume registers a new resource with the given unique name, arguments, and options.

func (*Volume) ElementType added in v0.4.1

func (*Volume) ElementType() reflect.Type

func (*Volume) ToVolumeOutput added in v0.4.1

func (i *Volume) ToVolumeOutput() VolumeOutput

func (*Volume) ToVolumeOutputWithContext added in v0.4.1

func (i *Volume) ToVolumeOutputWithContext(ctx context.Context) VolumeOutput

type VolumeArgs

type VolumeArgs struct {
	// Automount the volume upon attaching it (server_id must be provided).
	Automount pulumi.BoolPtrInput
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	//
	// **Note:** When you want to attach multiple volumes to a server, please use the `VolumeAttachment` resource and the `location` argument instead of the `serverId` argument.
	DeleteProtection pulumi.BoolPtrInput
	// Format volume after creation. `xfs` or `ext4`
	Format pulumi.StringPtrInput
	// (map) User-defined labels (key-value pairs).
	Labels pulumi.MapInput
	// The location name of the volume to create, not allowed if serverId argument is passed.
	Location pulumi.StringPtrInput
	// Name of the volume to create (must be unique per project).
	Name pulumi.StringPtrInput
	// Server to attach the Volume to, not allowed if location argument is passed.
	ServerId pulumi.IntPtrInput
	// Size of the volume (in GB).
	Size pulumi.IntInput
}

The set of arguments for constructing a Volume resource.

func (VolumeArgs) ElementType

func (VolumeArgs) ElementType() reflect.Type

type VolumeArray added in v0.6.2

type VolumeArray []VolumeInput

func (VolumeArray) ElementType added in v0.6.2

func (VolumeArray) ElementType() reflect.Type

func (VolumeArray) ToVolumeArrayOutput added in v0.6.2

func (i VolumeArray) ToVolumeArrayOutput() VolumeArrayOutput

func (VolumeArray) ToVolumeArrayOutputWithContext added in v0.6.2

func (i VolumeArray) ToVolumeArrayOutputWithContext(ctx context.Context) VolumeArrayOutput

type VolumeArrayInput added in v0.6.2

type VolumeArrayInput interface {
	pulumi.Input

	ToVolumeArrayOutput() VolumeArrayOutput
	ToVolumeArrayOutputWithContext(context.Context) VolumeArrayOutput
}

VolumeArrayInput is an input type that accepts VolumeArray and VolumeArrayOutput values. You can construct a concrete instance of `VolumeArrayInput` via:

VolumeArray{ VolumeArgs{...} }

type VolumeArrayOutput added in v0.6.2

type VolumeArrayOutput struct{ *pulumi.OutputState }

func (VolumeArrayOutput) ElementType added in v0.6.2

func (VolumeArrayOutput) ElementType() reflect.Type

func (VolumeArrayOutput) Index added in v0.6.2

func (VolumeArrayOutput) ToVolumeArrayOutput added in v0.6.2

func (o VolumeArrayOutput) ToVolumeArrayOutput() VolumeArrayOutput

func (VolumeArrayOutput) ToVolumeArrayOutputWithContext added in v0.6.2

func (o VolumeArrayOutput) ToVolumeArrayOutputWithContext(ctx context.Context) VolumeArrayOutput

type VolumeAttachment

type VolumeAttachment struct {
	pulumi.CustomResourceState

	// Automount the volume upon attaching it.
	Automount pulumi.BoolOutput `pulumi:"automount"`
	// Server to attach the Volume to.
	ServerId pulumi.IntOutput `pulumi:"serverId"`
	// ID of the Volume.
	VolumeId pulumi.IntOutput `pulumi:"volumeId"`
}

Provides a Hetzner Cloud Volume attachment to attach a Volume to a Hetzner Cloud Server. Deleting a Volume Attachment will detach the Volume from the Server.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 {
		node1, err := hcloud.NewServer(ctx, "node1", &hcloud.ServerArgs{
			Image:      pulumi.String("debian-11"),
			ServerType: pulumi.String("cx11"),
			Datacenter: pulumi.String("nbg1-dc3"),
		})
		if err != nil {
			return err
		}
		master, err := hcloud.NewVolume(ctx, "master", &hcloud.VolumeArgs{
			Location: pulumi.String("nbg1"),
			Size:     pulumi.Int(10),
		})
		if err != nil {
			return err
		}
		_, err = hcloud.NewVolumeAttachment(ctx, "main", &hcloud.VolumeAttachmentArgs{
			VolumeId:  master.ID(),
			ServerId:  node1.ID(),
			Automount: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Volume Attachments can be imported using the `volume_id`:

```sh $ pulumi import hcloud:index/volumeAttachment:VolumeAttachment myvolumeattachment <volume_id> ```

func GetVolumeAttachment

func GetVolumeAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VolumeAttachmentState, opts ...pulumi.ResourceOption) (*VolumeAttachment, error)

GetVolumeAttachment gets an existing VolumeAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewVolumeAttachment

func NewVolumeAttachment(ctx *pulumi.Context,
	name string, args *VolumeAttachmentArgs, opts ...pulumi.ResourceOption) (*VolumeAttachment, error)

NewVolumeAttachment registers a new resource with the given unique name, arguments, and options.

func (*VolumeAttachment) ElementType added in v0.4.1

func (*VolumeAttachment) ElementType() reflect.Type

func (*VolumeAttachment) ToVolumeAttachmentOutput added in v0.4.1

func (i *VolumeAttachment) ToVolumeAttachmentOutput() VolumeAttachmentOutput

func (*VolumeAttachment) ToVolumeAttachmentOutputWithContext added in v0.4.1

func (i *VolumeAttachment) ToVolumeAttachmentOutputWithContext(ctx context.Context) VolumeAttachmentOutput

type VolumeAttachmentArgs

type VolumeAttachmentArgs struct {
	// Automount the volume upon attaching it.
	Automount pulumi.BoolPtrInput
	// Server to attach the Volume to.
	ServerId pulumi.IntInput
	// ID of the Volume.
	VolumeId pulumi.IntInput
}

The set of arguments for constructing a VolumeAttachment resource.

func (VolumeAttachmentArgs) ElementType

func (VolumeAttachmentArgs) ElementType() reflect.Type

type VolumeAttachmentArray added in v0.6.2

type VolumeAttachmentArray []VolumeAttachmentInput

func (VolumeAttachmentArray) ElementType added in v0.6.2

func (VolumeAttachmentArray) ElementType() reflect.Type

func (VolumeAttachmentArray) ToVolumeAttachmentArrayOutput added in v0.6.2

func (i VolumeAttachmentArray) ToVolumeAttachmentArrayOutput() VolumeAttachmentArrayOutput

func (VolumeAttachmentArray) ToVolumeAttachmentArrayOutputWithContext added in v0.6.2

func (i VolumeAttachmentArray) ToVolumeAttachmentArrayOutputWithContext(ctx context.Context) VolumeAttachmentArrayOutput

type VolumeAttachmentArrayInput added in v0.6.2

type VolumeAttachmentArrayInput interface {
	pulumi.Input

	ToVolumeAttachmentArrayOutput() VolumeAttachmentArrayOutput
	ToVolumeAttachmentArrayOutputWithContext(context.Context) VolumeAttachmentArrayOutput
}

VolumeAttachmentArrayInput is an input type that accepts VolumeAttachmentArray and VolumeAttachmentArrayOutput values. You can construct a concrete instance of `VolumeAttachmentArrayInput` via:

VolumeAttachmentArray{ VolumeAttachmentArgs{...} }

type VolumeAttachmentArrayOutput added in v0.6.2

type VolumeAttachmentArrayOutput struct{ *pulumi.OutputState }

func (VolumeAttachmentArrayOutput) ElementType added in v0.6.2

func (VolumeAttachmentArrayOutput) Index added in v0.6.2

func (VolumeAttachmentArrayOutput) ToVolumeAttachmentArrayOutput added in v0.6.2

func (o VolumeAttachmentArrayOutput) ToVolumeAttachmentArrayOutput() VolumeAttachmentArrayOutput

func (VolumeAttachmentArrayOutput) ToVolumeAttachmentArrayOutputWithContext added in v0.6.2

func (o VolumeAttachmentArrayOutput) ToVolumeAttachmentArrayOutputWithContext(ctx context.Context) VolumeAttachmentArrayOutput

type VolumeAttachmentInput added in v0.4.1

type VolumeAttachmentInput interface {
	pulumi.Input

	ToVolumeAttachmentOutput() VolumeAttachmentOutput
	ToVolumeAttachmentOutputWithContext(ctx context.Context) VolumeAttachmentOutput
}

type VolumeAttachmentMap added in v0.6.2

type VolumeAttachmentMap map[string]VolumeAttachmentInput

func (VolumeAttachmentMap) ElementType added in v0.6.2

func (VolumeAttachmentMap) ElementType() reflect.Type

func (VolumeAttachmentMap) ToVolumeAttachmentMapOutput added in v0.6.2

func (i VolumeAttachmentMap) ToVolumeAttachmentMapOutput() VolumeAttachmentMapOutput

func (VolumeAttachmentMap) ToVolumeAttachmentMapOutputWithContext added in v0.6.2

func (i VolumeAttachmentMap) ToVolumeAttachmentMapOutputWithContext(ctx context.Context) VolumeAttachmentMapOutput

type VolumeAttachmentMapInput added in v0.6.2

type VolumeAttachmentMapInput interface {
	pulumi.Input

	ToVolumeAttachmentMapOutput() VolumeAttachmentMapOutput
	ToVolumeAttachmentMapOutputWithContext(context.Context) VolumeAttachmentMapOutput
}

VolumeAttachmentMapInput is an input type that accepts VolumeAttachmentMap and VolumeAttachmentMapOutput values. You can construct a concrete instance of `VolumeAttachmentMapInput` via:

VolumeAttachmentMap{ "key": VolumeAttachmentArgs{...} }

type VolumeAttachmentMapOutput added in v0.6.2

type VolumeAttachmentMapOutput struct{ *pulumi.OutputState }

func (VolumeAttachmentMapOutput) ElementType added in v0.6.2

func (VolumeAttachmentMapOutput) ElementType() reflect.Type

func (VolumeAttachmentMapOutput) MapIndex added in v0.6.2

func (VolumeAttachmentMapOutput) ToVolumeAttachmentMapOutput added in v0.6.2

func (o VolumeAttachmentMapOutput) ToVolumeAttachmentMapOutput() VolumeAttachmentMapOutput

func (VolumeAttachmentMapOutput) ToVolumeAttachmentMapOutputWithContext added in v0.6.2

func (o VolumeAttachmentMapOutput) ToVolumeAttachmentMapOutputWithContext(ctx context.Context) VolumeAttachmentMapOutput

type VolumeAttachmentOutput added in v0.4.1

type VolumeAttachmentOutput struct{ *pulumi.OutputState }

func (VolumeAttachmentOutput) Automount added in v1.9.0

Automount the volume upon attaching it.

func (VolumeAttachmentOutput) ElementType added in v0.4.1

func (VolumeAttachmentOutput) ElementType() reflect.Type

func (VolumeAttachmentOutput) ServerId added in v1.9.0

Server to attach the Volume to.

func (VolumeAttachmentOutput) ToVolumeAttachmentOutput added in v0.4.1

func (o VolumeAttachmentOutput) ToVolumeAttachmentOutput() VolumeAttachmentOutput

func (VolumeAttachmentOutput) ToVolumeAttachmentOutputWithContext added in v0.4.1

func (o VolumeAttachmentOutput) ToVolumeAttachmentOutputWithContext(ctx context.Context) VolumeAttachmentOutput

func (VolumeAttachmentOutput) VolumeId added in v1.9.0

ID of the Volume.

type VolumeAttachmentState

type VolumeAttachmentState struct {
	// Automount the volume upon attaching it.
	Automount pulumi.BoolPtrInput
	// Server to attach the Volume to.
	ServerId pulumi.IntPtrInput
	// ID of the Volume.
	VolumeId pulumi.IntPtrInput
}

func (VolumeAttachmentState) ElementType

func (VolumeAttachmentState) ElementType() reflect.Type

type VolumeInput added in v0.4.1

type VolumeInput interface {
	pulumi.Input

	ToVolumeOutput() VolumeOutput
	ToVolumeOutputWithContext(ctx context.Context) VolumeOutput
}

type VolumeMap added in v0.6.2

type VolumeMap map[string]VolumeInput

func (VolumeMap) ElementType added in v0.6.2

func (VolumeMap) ElementType() reflect.Type

func (VolumeMap) ToVolumeMapOutput added in v0.6.2

func (i VolumeMap) ToVolumeMapOutput() VolumeMapOutput

func (VolumeMap) ToVolumeMapOutputWithContext added in v0.6.2

func (i VolumeMap) ToVolumeMapOutputWithContext(ctx context.Context) VolumeMapOutput

type VolumeMapInput added in v0.6.2

type VolumeMapInput interface {
	pulumi.Input

	ToVolumeMapOutput() VolumeMapOutput
	ToVolumeMapOutputWithContext(context.Context) VolumeMapOutput
}

VolumeMapInput is an input type that accepts VolumeMap and VolumeMapOutput values. You can construct a concrete instance of `VolumeMapInput` via:

VolumeMap{ "key": VolumeArgs{...} }

type VolumeMapOutput added in v0.6.2

type VolumeMapOutput struct{ *pulumi.OutputState }

func (VolumeMapOutput) ElementType added in v0.6.2

func (VolumeMapOutput) ElementType() reflect.Type

func (VolumeMapOutput) MapIndex added in v0.6.2

func (VolumeMapOutput) ToVolumeMapOutput added in v0.6.2

func (o VolumeMapOutput) ToVolumeMapOutput() VolumeMapOutput

func (VolumeMapOutput) ToVolumeMapOutputWithContext added in v0.6.2

func (o VolumeMapOutput) ToVolumeMapOutputWithContext(ctx context.Context) VolumeMapOutput

type VolumeOutput added in v0.4.1

type VolumeOutput struct{ *pulumi.OutputState }

func (VolumeOutput) Automount added in v1.9.0

func (o VolumeOutput) Automount() pulumi.BoolPtrOutput

Automount the volume upon attaching it (server_id must be provided).

func (VolumeOutput) DeleteProtection added in v1.9.0

func (o VolumeOutput) DeleteProtection() pulumi.BoolPtrOutput

Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.

**Note:** When you want to attach multiple volumes to a server, please use the `VolumeAttachment` resource and the `location` argument instead of the `serverId` argument.

func (VolumeOutput) ElementType added in v0.4.1

func (VolumeOutput) ElementType() reflect.Type

func (VolumeOutput) Format added in v1.9.0

func (o VolumeOutput) Format() pulumi.StringPtrOutput

Format volume after creation. `xfs` or `ext4`

func (VolumeOutput) Labels added in v1.9.0

func (o VolumeOutput) Labels() pulumi.MapOutput

(map) User-defined labels (key-value pairs).

func (VolumeOutput) LinuxDevice added in v1.9.0

func (o VolumeOutput) LinuxDevice() pulumi.StringOutput

(string) Device path on the file system for the Volume.

func (VolumeOutput) Location added in v1.9.0

func (o VolumeOutput) Location() pulumi.StringOutput

The location name of the volume to create, not allowed if serverId argument is passed.

func (VolumeOutput) Name added in v1.9.0

func (o VolumeOutput) Name() pulumi.StringOutput

Name of the volume to create (must be unique per project).

func (VolumeOutput) ServerId added in v1.9.0

func (o VolumeOutput) ServerId() pulumi.IntOutput

Server to attach the Volume to, not allowed if location argument is passed.

func (VolumeOutput) Size added in v1.9.0

func (o VolumeOutput) Size() pulumi.IntOutput

Size of the volume (in GB).

func (VolumeOutput) ToVolumeOutput added in v0.4.1

func (o VolumeOutput) ToVolumeOutput() VolumeOutput

func (VolumeOutput) ToVolumeOutputWithContext added in v0.4.1

func (o VolumeOutput) ToVolumeOutputWithContext(ctx context.Context) VolumeOutput

type VolumeState

type VolumeState struct {
	// Automount the volume upon attaching it (server_id must be provided).
	Automount pulumi.BoolPtrInput
	// Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
	//
	// **Note:** When you want to attach multiple volumes to a server, please use the `VolumeAttachment` resource and the `location` argument instead of the `serverId` argument.
	DeleteProtection pulumi.BoolPtrInput
	// Format volume after creation. `xfs` or `ext4`
	Format pulumi.StringPtrInput
	// (map) User-defined labels (key-value pairs).
	Labels pulumi.MapInput
	// (string) Device path on the file system for the Volume.
	LinuxDevice pulumi.StringPtrInput
	// The location name of the volume to create, not allowed if serverId argument is passed.
	Location pulumi.StringPtrInput
	// Name of the volume to create (must be unique per project).
	Name pulumi.StringPtrInput
	// Server to attach the Volume to, not allowed if location argument is passed.
	ServerId pulumi.IntPtrInput
	// Size of the volume (in GB).
	Size pulumi.IntPtrInput
}

func (VolumeState) ElementType

func (VolumeState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL