ha

package
v6.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetHAGroupsResult

type GetHAGroupsResult struct {
	// The identifiers of the High Availability groups.
	GroupIds []string `pulumi:"groupIds"`
	// The unique identifier of this resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getHAGroups.

func GetHAGroups

func GetHAGroups(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetHAGroupsResult, error)

Retrieves the list of High Availability groups.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := HA.GetHAGroups(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("dataProxmoxVirtualEnvironmentHagroups", example.GroupIds)
		return nil
	})
}

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

type GetHAGroupsResultOutput

type GetHAGroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHAGroups.

func GetHAGroupsOutput

func GetHAGroupsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetHAGroupsResultOutput

func (GetHAGroupsResultOutput) ElementType

func (GetHAGroupsResultOutput) ElementType() reflect.Type

func (GetHAGroupsResultOutput) GroupIds

The identifiers of the High Availability groups.

func (GetHAGroupsResultOutput) Id

The unique identifier of this resource.

func (GetHAGroupsResultOutput) ToGetHAGroupsResultOutput

func (o GetHAGroupsResultOutput) ToGetHAGroupsResultOutput() GetHAGroupsResultOutput

func (GetHAGroupsResultOutput) ToGetHAGroupsResultOutputWithContext

func (o GetHAGroupsResultOutput) ToGetHAGroupsResultOutputWithContext(ctx context.Context) GetHAGroupsResultOutput

type GetHAResourcesArgs

type GetHAResourcesArgs struct {
	// The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset.
	Type *string `pulumi:"type"`
}

A collection of arguments for invoking getHAResources.

type GetHAResourcesOutputArgs

type GetHAResourcesOutputArgs struct {
	// The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset.
	Type pulumi.StringPtrInput `pulumi:"type"`
}

A collection of arguments for invoking getHAResources.

func (GetHAResourcesOutputArgs) ElementType

func (GetHAResourcesOutputArgs) ElementType() reflect.Type

type GetHAResourcesResult

type GetHAResourcesResult struct {
	// The unique identifier of this resource.
	Id string `pulumi:"id"`
	// The identifiers of the High Availability resources.
	ResourceIds []string `pulumi:"resourceIds"`
	// The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset.
	Type *string `pulumi:"type"`
}

A collection of values returned by getHAResources.

func GetHAResources

func GetHAResources(ctx *pulumi.Context, args *GetHAResourcesArgs, opts ...pulumi.InvokeOption) (*GetHAResourcesResult, error)

Retrieves the list of High Availability resources.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAll, err := HA.GetHAResources(ctx, nil, nil)
		if err != nil {
			return err
		}
		exampleVm, err := HA.GetHAResources(ctx, &ha.GetHAResourcesArgs{
			Type: pulumi.StringRef("vm"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dataProxmoxVirtualEnvironmentHaresources", map[string]interface{}{
			"all": exampleAll.ResourceIds,
			"vms": exampleVm.ResourceIds,
		})
		return nil
	})
}

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

type GetHAResourcesResultOutput

type GetHAResourcesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHAResources.

func (GetHAResourcesResultOutput) ElementType

func (GetHAResourcesResultOutput) ElementType() reflect.Type

func (GetHAResourcesResultOutput) Id

The unique identifier of this resource.

func (GetHAResourcesResultOutput) ResourceIds

The identifiers of the High Availability resources.

func (GetHAResourcesResultOutput) ToGetHAResourcesResultOutput

func (o GetHAResourcesResultOutput) ToGetHAResourcesResultOutput() GetHAResourcesResultOutput

func (GetHAResourcesResultOutput) ToGetHAResourcesResultOutputWithContext

func (o GetHAResourcesResultOutput) ToGetHAResourcesResultOutputWithContext(ctx context.Context) GetHAResourcesResultOutput

func (GetHAResourcesResultOutput) Type

The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset.

type HAGroup

type HAGroup struct {
	pulumi.CustomResourceState

	// The comment associated with this group
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The identifier of the High Availability group to manage.
	Group pulumi.StringOutput `pulumi:"group"`
	// A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to `false`.
	NoFailback pulumi.BoolOutput `pulumi:"noFailback"`
	// The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities.
	Nodes pulumi.IntMapOutput `pulumi:"nodes"`
	// A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to `false`.
	Restricted pulumi.BoolOutput `pulumi:"restricted"`
}

Manages a High Availability group in a Proxmox VE cluster.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := HA.NewHAGroup(ctx, "example", &HA.HAGroupArgs{
			Group:   pulumi.String("example"),
			Comment: pulumi.String("This is a comment."),
			Nodes: pulumi.IntMap{
				"node1": nil,
				"node2": pulumi.Int(2),
				"node3": pulumi.Int(1),
			},
			Restricted: pulumi.Bool(true),
			NoFailback: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

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

## Import

#!/usr/bin/env sh

HA groups can be imported using their name, e.g.:

```sh $ pulumi import proxmoxve:HA/hAGroup:HAGroup example example ```

func GetHAGroup

func GetHAGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HAGroupState, opts ...pulumi.ResourceOption) (*HAGroup, error)

GetHAGroup gets an existing HAGroup 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 NewHAGroup

func NewHAGroup(ctx *pulumi.Context,
	name string, args *HAGroupArgs, opts ...pulumi.ResourceOption) (*HAGroup, error)

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

func (*HAGroup) ElementType

func (*HAGroup) ElementType() reflect.Type

func (*HAGroup) ToHAGroupOutput

func (i *HAGroup) ToHAGroupOutput() HAGroupOutput

func (*HAGroup) ToHAGroupOutputWithContext

func (i *HAGroup) ToHAGroupOutputWithContext(ctx context.Context) HAGroupOutput

type HAGroupArgs

type HAGroupArgs struct {
	// The comment associated with this group
	Comment pulumi.StringPtrInput
	// The identifier of the High Availability group to manage.
	Group pulumi.StringInput
	// A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to `false`.
	NoFailback pulumi.BoolPtrInput
	// The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities.
	Nodes pulumi.IntMapInput
	// A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to `false`.
	Restricted pulumi.BoolPtrInput
}

The set of arguments for constructing a HAGroup resource.

func (HAGroupArgs) ElementType

func (HAGroupArgs) ElementType() reflect.Type

type HAGroupArray

type HAGroupArray []HAGroupInput

func (HAGroupArray) ElementType

func (HAGroupArray) ElementType() reflect.Type

func (HAGroupArray) ToHAGroupArrayOutput

func (i HAGroupArray) ToHAGroupArrayOutput() HAGroupArrayOutput

func (HAGroupArray) ToHAGroupArrayOutputWithContext

func (i HAGroupArray) ToHAGroupArrayOutputWithContext(ctx context.Context) HAGroupArrayOutput

type HAGroupArrayInput

type HAGroupArrayInput interface {
	pulumi.Input

	ToHAGroupArrayOutput() HAGroupArrayOutput
	ToHAGroupArrayOutputWithContext(context.Context) HAGroupArrayOutput
}

HAGroupArrayInput is an input type that accepts HAGroupArray and HAGroupArrayOutput values. You can construct a concrete instance of `HAGroupArrayInput` via:

HAGroupArray{ HAGroupArgs{...} }

type HAGroupArrayOutput

type HAGroupArrayOutput struct{ *pulumi.OutputState }

func (HAGroupArrayOutput) ElementType

func (HAGroupArrayOutput) ElementType() reflect.Type

func (HAGroupArrayOutput) Index

func (HAGroupArrayOutput) ToHAGroupArrayOutput

func (o HAGroupArrayOutput) ToHAGroupArrayOutput() HAGroupArrayOutput

func (HAGroupArrayOutput) ToHAGroupArrayOutputWithContext

func (o HAGroupArrayOutput) ToHAGroupArrayOutputWithContext(ctx context.Context) HAGroupArrayOutput

type HAGroupInput

type HAGroupInput interface {
	pulumi.Input

	ToHAGroupOutput() HAGroupOutput
	ToHAGroupOutputWithContext(ctx context.Context) HAGroupOutput
}

type HAGroupMap

type HAGroupMap map[string]HAGroupInput

func (HAGroupMap) ElementType

func (HAGroupMap) ElementType() reflect.Type

func (HAGroupMap) ToHAGroupMapOutput

func (i HAGroupMap) ToHAGroupMapOutput() HAGroupMapOutput

func (HAGroupMap) ToHAGroupMapOutputWithContext

func (i HAGroupMap) ToHAGroupMapOutputWithContext(ctx context.Context) HAGroupMapOutput

type HAGroupMapInput

type HAGroupMapInput interface {
	pulumi.Input

	ToHAGroupMapOutput() HAGroupMapOutput
	ToHAGroupMapOutputWithContext(context.Context) HAGroupMapOutput
}

HAGroupMapInput is an input type that accepts HAGroupMap and HAGroupMapOutput values. You can construct a concrete instance of `HAGroupMapInput` via:

HAGroupMap{ "key": HAGroupArgs{...} }

type HAGroupMapOutput

type HAGroupMapOutput struct{ *pulumi.OutputState }

func (HAGroupMapOutput) ElementType

func (HAGroupMapOutput) ElementType() reflect.Type

func (HAGroupMapOutput) MapIndex

func (HAGroupMapOutput) ToHAGroupMapOutput

func (o HAGroupMapOutput) ToHAGroupMapOutput() HAGroupMapOutput

func (HAGroupMapOutput) ToHAGroupMapOutputWithContext

func (o HAGroupMapOutput) ToHAGroupMapOutputWithContext(ctx context.Context) HAGroupMapOutput

type HAGroupOutput

type HAGroupOutput struct{ *pulumi.OutputState }

func (HAGroupOutput) Comment

func (o HAGroupOutput) Comment() pulumi.StringPtrOutput

The comment associated with this group

func (HAGroupOutput) ElementType

func (HAGroupOutput) ElementType() reflect.Type

func (HAGroupOutput) Group

func (o HAGroupOutput) Group() pulumi.StringOutput

The identifier of the High Availability group to manage.

func (HAGroupOutput) NoFailback

func (o HAGroupOutput) NoFailback() pulumi.BoolOutput

A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to `false`.

func (HAGroupOutput) Nodes

func (o HAGroupOutput) Nodes() pulumi.IntMapOutput

The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities.

func (HAGroupOutput) Restricted

func (o HAGroupOutput) Restricted() pulumi.BoolOutput

A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to `false`.

func (HAGroupOutput) ToHAGroupOutput

func (o HAGroupOutput) ToHAGroupOutput() HAGroupOutput

func (HAGroupOutput) ToHAGroupOutputWithContext

func (o HAGroupOutput) ToHAGroupOutputWithContext(ctx context.Context) HAGroupOutput

type HAGroupState

type HAGroupState struct {
	// The comment associated with this group
	Comment pulumi.StringPtrInput
	// The identifier of the High Availability group to manage.
	Group pulumi.StringPtrInput
	// A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to `false`.
	NoFailback pulumi.BoolPtrInput
	// The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities.
	Nodes pulumi.IntMapInput
	// A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to `false`.
	Restricted pulumi.BoolPtrInput
}

func (HAGroupState) ElementType

func (HAGroupState) ElementType() reflect.Type

type HAResource

type HAResource struct {
	pulumi.CustomResourceState

	// The comment associated with this resource.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The identifier of the High Availability group this resource is a member of.
	Group pulumi.StringPtrOutput `pulumi:"group"`
	// The maximal number of relocation attempts.
	MaxRelocate pulumi.IntPtrOutput `pulumi:"maxRelocate"`
	// The maximal number of restart attempts.
	MaxRestart pulumi.IntPtrOutput `pulumi:"maxRestart"`
	// The Proxmox HA resource identifier
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// The desired state of the resource.
	State pulumi.StringOutput `pulumi:"state"`
	// The type of HA resources to create. If unset, it will be deduced from the `resourceId`.
	Type pulumi.StringOutput `pulumi:"type"`
}

Manages Proxmox HA resources.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := HA.NewHAResource(ctx, "example", &HA.HAResourceArgs{
			ResourceId: pulumi.String("vm:123"),
			State:      pulumi.String("started"),
			Group:      pulumi.String("example"),
			Comment:    pulumi.String("Managed by Terraform"),
		}, pulumi.DependsOn([]pulumi.Resource{
			proxmox_virtual_environment_hagroup.Example,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

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

## Import

#!/usr/bin/env sh

HA resources can be imported using their identifiers, e.g.:

```sh $ pulumi import proxmoxve:HA/hAResource:HAResource example vm:123 ```

func GetHAResource

func GetHAResource(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HAResourceState, opts ...pulumi.ResourceOption) (*HAResource, error)

GetHAResource gets an existing HAResource 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 NewHAResource

func NewHAResource(ctx *pulumi.Context,
	name string, args *HAResourceArgs, opts ...pulumi.ResourceOption) (*HAResource, error)

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

func (*HAResource) ElementType

func (*HAResource) ElementType() reflect.Type

func (*HAResource) ToHAResourceOutput

func (i *HAResource) ToHAResourceOutput() HAResourceOutput

func (*HAResource) ToHAResourceOutputWithContext

func (i *HAResource) ToHAResourceOutputWithContext(ctx context.Context) HAResourceOutput

type HAResourceArgs

type HAResourceArgs struct {
	// The comment associated with this resource.
	Comment pulumi.StringPtrInput
	// The identifier of the High Availability group this resource is a member of.
	Group pulumi.StringPtrInput
	// The maximal number of relocation attempts.
	MaxRelocate pulumi.IntPtrInput
	// The maximal number of restart attempts.
	MaxRestart pulumi.IntPtrInput
	// The Proxmox HA resource identifier
	ResourceId pulumi.StringInput
	// The desired state of the resource.
	State pulumi.StringPtrInput
	// The type of HA resources to create. If unset, it will be deduced from the `resourceId`.
	Type pulumi.StringPtrInput
}

The set of arguments for constructing a HAResource resource.

func (HAResourceArgs) ElementType

func (HAResourceArgs) ElementType() reflect.Type

type HAResourceArray

type HAResourceArray []HAResourceInput

func (HAResourceArray) ElementType

func (HAResourceArray) ElementType() reflect.Type

func (HAResourceArray) ToHAResourceArrayOutput

func (i HAResourceArray) ToHAResourceArrayOutput() HAResourceArrayOutput

func (HAResourceArray) ToHAResourceArrayOutputWithContext

func (i HAResourceArray) ToHAResourceArrayOutputWithContext(ctx context.Context) HAResourceArrayOutput

type HAResourceArrayInput

type HAResourceArrayInput interface {
	pulumi.Input

	ToHAResourceArrayOutput() HAResourceArrayOutput
	ToHAResourceArrayOutputWithContext(context.Context) HAResourceArrayOutput
}

HAResourceArrayInput is an input type that accepts HAResourceArray and HAResourceArrayOutput values. You can construct a concrete instance of `HAResourceArrayInput` via:

HAResourceArray{ HAResourceArgs{...} }

type HAResourceArrayOutput

type HAResourceArrayOutput struct{ *pulumi.OutputState }

func (HAResourceArrayOutput) ElementType

func (HAResourceArrayOutput) ElementType() reflect.Type

func (HAResourceArrayOutput) Index

func (HAResourceArrayOutput) ToHAResourceArrayOutput

func (o HAResourceArrayOutput) ToHAResourceArrayOutput() HAResourceArrayOutput

func (HAResourceArrayOutput) ToHAResourceArrayOutputWithContext

func (o HAResourceArrayOutput) ToHAResourceArrayOutputWithContext(ctx context.Context) HAResourceArrayOutput

type HAResourceInput

type HAResourceInput interface {
	pulumi.Input

	ToHAResourceOutput() HAResourceOutput
	ToHAResourceOutputWithContext(ctx context.Context) HAResourceOutput
}

type HAResourceMap

type HAResourceMap map[string]HAResourceInput

func (HAResourceMap) ElementType

func (HAResourceMap) ElementType() reflect.Type

func (HAResourceMap) ToHAResourceMapOutput

func (i HAResourceMap) ToHAResourceMapOutput() HAResourceMapOutput

func (HAResourceMap) ToHAResourceMapOutputWithContext

func (i HAResourceMap) ToHAResourceMapOutputWithContext(ctx context.Context) HAResourceMapOutput

type HAResourceMapInput

type HAResourceMapInput interface {
	pulumi.Input

	ToHAResourceMapOutput() HAResourceMapOutput
	ToHAResourceMapOutputWithContext(context.Context) HAResourceMapOutput
}

HAResourceMapInput is an input type that accepts HAResourceMap and HAResourceMapOutput values. You can construct a concrete instance of `HAResourceMapInput` via:

HAResourceMap{ "key": HAResourceArgs{...} }

type HAResourceMapOutput

type HAResourceMapOutput struct{ *pulumi.OutputState }

func (HAResourceMapOutput) ElementType

func (HAResourceMapOutput) ElementType() reflect.Type

func (HAResourceMapOutput) MapIndex

func (HAResourceMapOutput) ToHAResourceMapOutput

func (o HAResourceMapOutput) ToHAResourceMapOutput() HAResourceMapOutput

func (HAResourceMapOutput) ToHAResourceMapOutputWithContext

func (o HAResourceMapOutput) ToHAResourceMapOutputWithContext(ctx context.Context) HAResourceMapOutput

type HAResourceOutput

type HAResourceOutput struct{ *pulumi.OutputState }

func (HAResourceOutput) Comment

The comment associated with this resource.

func (HAResourceOutput) ElementType

func (HAResourceOutput) ElementType() reflect.Type

func (HAResourceOutput) Group

The identifier of the High Availability group this resource is a member of.

func (HAResourceOutput) MaxRelocate

func (o HAResourceOutput) MaxRelocate() pulumi.IntPtrOutput

The maximal number of relocation attempts.

func (HAResourceOutput) MaxRestart

func (o HAResourceOutput) MaxRestart() pulumi.IntPtrOutput

The maximal number of restart attempts.

func (HAResourceOutput) ResourceId

func (o HAResourceOutput) ResourceId() pulumi.StringOutput

The Proxmox HA resource identifier

func (HAResourceOutput) State

The desired state of the resource.

func (HAResourceOutput) ToHAResourceOutput

func (o HAResourceOutput) ToHAResourceOutput() HAResourceOutput

func (HAResourceOutput) ToHAResourceOutputWithContext

func (o HAResourceOutput) ToHAResourceOutputWithContext(ctx context.Context) HAResourceOutput

func (HAResourceOutput) Type

The type of HA resources to create. If unset, it will be deduced from the `resourceId`.

type HAResourceState

type HAResourceState struct {
	// The comment associated with this resource.
	Comment pulumi.StringPtrInput
	// The identifier of the High Availability group this resource is a member of.
	Group pulumi.StringPtrInput
	// The maximal number of relocation attempts.
	MaxRelocate pulumi.IntPtrInput
	// The maximal number of restart attempts.
	MaxRestart pulumi.IntPtrInput
	// The Proxmox HA resource identifier
	ResourceId pulumi.StringPtrInput
	// The desired state of the resource.
	State pulumi.StringPtrInput
	// The type of HA resources to create. If unset, it will be deduced from the `resourceId`.
	Type pulumi.StringPtrInput
}

func (HAResourceState) ElementType

func (HAResourceState) ElementType() reflect.Type

type LookupHAGroupArgs

type LookupHAGroupArgs struct {
	// The identifier of the High Availability group to read.
	Group string `pulumi:"group"`
}

A collection of arguments for invoking getHAGroup.

type LookupHAGroupOutputArgs

type LookupHAGroupOutputArgs struct {
	// The identifier of the High Availability group to read.
	Group pulumi.StringInput `pulumi:"group"`
}

A collection of arguments for invoking getHAGroup.

func (LookupHAGroupOutputArgs) ElementType

func (LookupHAGroupOutputArgs) ElementType() reflect.Type

type LookupHAGroupResult

type LookupHAGroupResult struct {
	// The comment associated with this group
	Comment string `pulumi:"comment"`
	// The identifier of the High Availability group to read.
	Group string `pulumi:"group"`
	// The unique identifier of this resource.
	Id string `pulumi:"id"`
	// A flag that indicates that failing back to a higher priority node is disabled for this HA group.
	NoFailback bool `pulumi:"noFailback"`
	// The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities.
	Nodes map[string]int `pulumi:"nodes"`
	// A flag that indicates that other nodes may not be used to run resources associated to this HA group.
	Restricted bool `pulumi:"restricted"`
}

A collection of values returned by getHAGroup.

func LookupHAGroup

func LookupHAGroup(ctx *pulumi.Context, args *LookupHAGroupArgs, opts ...pulumi.InvokeOption) (*LookupHAGroupResult, error)

Retrieves information about a specific High Availability group.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		all, err := HA.GetHAGroups(ctx, nil, nil)
		if err != nil {
			return err
		}
		example := "TODO: For expression"
		ctx.Export("proxmoxVirtualEnvironmentHagroupsFull", example)
		return nil
	})
}

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

type LookupHAGroupResultOutput

type LookupHAGroupResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHAGroup.

func (LookupHAGroupResultOutput) Comment

The comment associated with this group

func (LookupHAGroupResultOutput) ElementType

func (LookupHAGroupResultOutput) ElementType() reflect.Type

func (LookupHAGroupResultOutput) Group

The identifier of the High Availability group to read.

func (LookupHAGroupResultOutput) Id

The unique identifier of this resource.

func (LookupHAGroupResultOutput) NoFailback

A flag that indicates that failing back to a higher priority node is disabled for this HA group.

func (LookupHAGroupResultOutput) Nodes

The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities.

func (LookupHAGroupResultOutput) Restricted

A flag that indicates that other nodes may not be used to run resources associated to this HA group.

func (LookupHAGroupResultOutput) ToLookupHAGroupResultOutput

func (o LookupHAGroupResultOutput) ToLookupHAGroupResultOutput() LookupHAGroupResultOutput

func (LookupHAGroupResultOutput) ToLookupHAGroupResultOutputWithContext

func (o LookupHAGroupResultOutput) ToLookupHAGroupResultOutputWithContext(ctx context.Context) LookupHAGroupResultOutput

type LookupHAResourceArgs

type LookupHAResourceArgs struct {
	// The identifier of the Proxmox HA resource to read.
	ResourceId string `pulumi:"resourceId"`
}

A collection of arguments for invoking getHAResource.

type LookupHAResourceOutputArgs

type LookupHAResourceOutputArgs struct {
	// The identifier of the Proxmox HA resource to read.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
}

A collection of arguments for invoking getHAResource.

func (LookupHAResourceOutputArgs) ElementType

func (LookupHAResourceOutputArgs) ElementType() reflect.Type

type LookupHAResourceResult

type LookupHAResourceResult struct {
	// The comment associated with this resource.
	Comment string `pulumi:"comment"`
	// The identifier of the High Availability group this resource is a member of.
	Group string `pulumi:"group"`
	// The unique identifier of this resource.
	Id string `pulumi:"id"`
	// The maximal number of relocation attempts.
	MaxRelocate int `pulumi:"maxRelocate"`
	// The maximal number of restart attempts.
	MaxRestart int `pulumi:"maxRestart"`
	// The identifier of the Proxmox HA resource to read.
	ResourceId string `pulumi:"resourceId"`
	// The desired state of the resource.
	State string `pulumi:"state"`
	// The type of High Availability resource (`vm` or `ct`).
	Type string `pulumi:"type"`
}

A collection of values returned by getHAResource.

func LookupHAResource

func LookupHAResource(ctx *pulumi.Context, args *LookupHAResourceArgs, opts ...pulumi.InvokeOption) (*LookupHAResourceResult, error)

Retrieves the list of High Availability resources.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		all, err := HA.GetHAResources(ctx, nil, nil)
		if err != nil {
			return err
		}
		example := "TODO: For expression"
		ctx.Export("proxmoxVirtualEnvironmentHaresourcesFull", example)
		return nil
	})
}

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

type LookupHAResourceResultOutput

type LookupHAResourceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHAResource.

func (LookupHAResourceResultOutput) Comment

The comment associated with this resource.

func (LookupHAResourceResultOutput) ElementType

func (LookupHAResourceResultOutput) Group

The identifier of the High Availability group this resource is a member of.

func (LookupHAResourceResultOutput) Id

The unique identifier of this resource.

func (LookupHAResourceResultOutput) MaxRelocate

The maximal number of relocation attempts.

func (LookupHAResourceResultOutput) MaxRestart

The maximal number of restart attempts.

func (LookupHAResourceResultOutput) ResourceId

The identifier of the Proxmox HA resource to read.

func (LookupHAResourceResultOutput) State

The desired state of the resource.

func (LookupHAResourceResultOutput) ToLookupHAResourceResultOutput

func (o LookupHAResourceResultOutput) ToLookupHAResourceResultOutput() LookupHAResourceResultOutput

func (LookupHAResourceResultOutput) ToLookupHAResourceResultOutputWithContext

func (o LookupHAResourceResultOutput) ToLookupHAResourceResultOutputWithContext(ctx context.Context) LookupHAResourceResultOutput

func (LookupHAResourceResultOutput) Type

The type of High Availability resource (`vm` or `ct`).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL