published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
Deprecated: Use
proxmoxve.Hagroupinstead. This resource will be removed in v1.0.
Manages a High Availability group in a Proxmox VE cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const example = new proxmoxve.HagroupLegacy("example", {
group: "example",
comment: "This is a comment.",
nodes: {
node1: null,
node2: 2,
node3: 1,
},
restricted: true,
noFailback: false,
});
import pulumi
import pulumi_proxmoxve as proxmoxve
example = proxmoxve.HagroupLegacy("example",
group="example",
comment="This is a comment.",
nodes={
"node1": None,
"node2": 2,
"node3": 1,
},
restricted=True,
no_failback=False)
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := proxmoxve.NewHagroupLegacy(ctx, "example", &proxmoxve.HagroupLegacyArgs{
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var example = new ProxmoxVE.Index.HagroupLegacy("example", new()
{
Group = "example",
Comment = "This is a comment.",
Nodes =
{
{ "node1", null },
{ "node2", %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(2) (example.pp:5,13-14)) },
{ "node3", %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(1) (example.pp:6,13-14)) },
},
Restricted = true,
NoFailback = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.HagroupLegacy;
import io.muehlbachler.pulumi.proxmoxve.HagroupLegacyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new HagroupLegacy("example", HagroupLegacyArgs.builder()
.group("example")
.comment("This is a comment.")
.nodes(Map.ofEntries(
Map.entry("node1", null),
Map.entry("node2", %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(2) (example.pp:5,13-14))),
Map.entry("node3", %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(1) (example.pp:6,13-14)))
))
.restricted(true)
.noFailback(false)
.build());
}
}
resources:
example:
type: proxmoxve:HagroupLegacy
properties:
group: example
comment: This is a comment.
nodes:
node1: null
node2: 2
node3: 1
restricted: true
noFailback: false
Create HagroupLegacy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HagroupLegacy(name: string, args: HagroupLegacyArgs, opts?: CustomResourceOptions);@overload
def HagroupLegacy(resource_name: str,
args: HagroupLegacyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HagroupLegacy(resource_name: str,
opts: Optional[ResourceOptions] = None,
group: Optional[str] = None,
nodes: Optional[Mapping[str, int]] = None,
comment: Optional[str] = None,
no_failback: Optional[bool] = None,
restricted: Optional[bool] = None)func NewHagroupLegacy(ctx *Context, name string, args HagroupLegacyArgs, opts ...ResourceOption) (*HagroupLegacy, error)public HagroupLegacy(string name, HagroupLegacyArgs args, CustomResourceOptions? opts = null)
public HagroupLegacy(String name, HagroupLegacyArgs args)
public HagroupLegacy(String name, HagroupLegacyArgs args, CustomResourceOptions options)
type: proxmoxve:HagroupLegacy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HagroupLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HagroupLegacyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HagroupLegacyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HagroupLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HagroupLegacyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
HagroupLegacy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HagroupLegacy resource accepts the following input properties:
- Group string
- The identifier of the High Availability group to manage.
- Nodes Dictionary<string, int>
- 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
nullfor unset priorities. - Comment string
- The comment associated with this group
- No
Failback bool - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - Restricted bool
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- Group string
- The identifier of the High Availability group to manage.
- Nodes map[string]int
- 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
nullfor unset priorities. - Comment string
- The comment associated with this group
- No
Failback bool - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - Restricted bool
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- group String
- The identifier of the High Availability group to manage.
- nodes Map<String,Integer>
- 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
nullfor unset priorities. - comment String
- The comment associated with this group
- no
Failback Boolean - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - restricted Boolean
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- group string
- The identifier of the High Availability group to manage.
- nodes {[key: string]: number}
- 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
nullfor unset priorities. - comment string
- The comment associated with this group
- no
Failback boolean - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - restricted boolean
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- group str
- The identifier of the High Availability group to manage.
- nodes Mapping[str, int]
- 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
nullfor unset priorities. - comment str
- The comment associated with this group
- no_
failback bool - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - restricted bool
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- group String
- The identifier of the High Availability group to manage.
- nodes Map<Number>
- 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
nullfor unset priorities. - comment String
- The comment associated with this group
- no
Failback Boolean - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - restricted Boolean
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
Outputs
All input properties are implicitly available as output properties. Additionally, the HagroupLegacy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing HagroupLegacy Resource
Get an existing HagroupLegacy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HagroupLegacyState, opts?: CustomResourceOptions): HagroupLegacy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
group: Optional[str] = None,
no_failback: Optional[bool] = None,
nodes: Optional[Mapping[str, int]] = None,
restricted: Optional[bool] = None) -> HagroupLegacyfunc GetHagroupLegacy(ctx *Context, name string, id IDInput, state *HagroupLegacyState, opts ...ResourceOption) (*HagroupLegacy, error)public static HagroupLegacy Get(string name, Input<string> id, HagroupLegacyState? state, CustomResourceOptions? opts = null)public static HagroupLegacy get(String name, Output<String> id, HagroupLegacyState state, CustomResourceOptions options)resources: _: type: proxmoxve:HagroupLegacy get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Comment string
- The comment associated with this group
- Group string
- The identifier of the High Availability group to manage.
- No
Failback bool - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - Nodes Dictionary<string, int>
- 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
nullfor unset priorities. - Restricted bool
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- Comment string
- The comment associated with this group
- Group string
- The identifier of the High Availability group to manage.
- No
Failback bool - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - Nodes map[string]int
- 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
nullfor unset priorities. - Restricted bool
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- comment String
- The comment associated with this group
- group String
- The identifier of the High Availability group to manage.
- no
Failback Boolean - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - nodes Map<String,Integer>
- 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
nullfor unset priorities. - restricted Boolean
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- comment string
- The comment associated with this group
- group string
- The identifier of the High Availability group to manage.
- no
Failback boolean - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - nodes {[key: string]: number}
- 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
nullfor unset priorities. - restricted boolean
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- comment str
- The comment associated with this group
- group str
- The identifier of the High Availability group to manage.
- no_
failback bool - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - nodes Mapping[str, int]
- 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
nullfor unset priorities. - restricted bool
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
- comment String
- The comment associated with this group
- group String
- The identifier of the High Availability group to manage.
- no
Failback Boolean - A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to
false. - nodes Map<Number>
- 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
nullfor unset priorities. - restricted Boolean
- A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to
false.
Import
!/usr/bin/env sh HA groups can be imported using their name, e.g.:
$ pulumi import proxmoxve:index/hagroupLegacy:HagroupLegacy example example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
