Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.0.0
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.0.0
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
Deprecated: Use
proxmoxve.getHaresourcesinstead. This data source will be removed in v1.0.
Retrieves the list of High Availability resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
// This will fetch the set of all HA resource identifiers.
const exampleAll = proxmoxve.getHaresourcesLegacy({});
// This will fetch the set of HA resource identifiers that correspond to virtual machines.
const exampleVm = proxmoxve.getHaresourcesLegacy({
type: "vm",
});
export const dataProxmoxVirtualEnvironmentHaresources = {
all: exampleAll.then(exampleAll => exampleAll.resourceIds),
vms: exampleVm.then(exampleVm => exampleVm.resourceIds),
};
import pulumi
import pulumi_proxmoxve as proxmoxve
# This will fetch the set of all HA resource identifiers.
example_all = proxmoxve.get_haresources_legacy()
# This will fetch the set of HA resource identifiers that correspond to virtual machines.
example_vm = proxmoxve.get_haresources_legacy(type="vm")
pulumi.export("dataProxmoxVirtualEnvironmentHaresources", {
"all": example_all.resource_ids,
"vms": example_vm.resource_ids,
})
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 {
// This will fetch the set of all HA resource identifiers.
exampleAll, err := proxmoxve.GetHaresourcesLegacy(ctx, &proxmoxve.GetHaresourcesLegacyArgs{
}, nil);
if err != nil {
return err
}
// This will fetch the set of HA resource identifiers that correspond to virtual machines.
exampleVm, err := proxmoxve.GetHaresourcesLegacy(ctx, &proxmoxve.GetHaresourcesLegacyArgs{
Type: pulumi.StringRef("vm"),
}, nil);
if err != nil {
return err
}
ctx.Export("dataProxmoxVirtualEnvironmentHaresources", interface{}Map{
"all": exampleAll.ResourceIds,
"vms": exampleVm.ResourceIds,
})
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
// This will fetch the set of all HA resource identifiers.
var exampleAll = ProxmoxVE.Index.GetHaresourcesLegacy.Invoke();
// This will fetch the set of HA resource identifiers that correspond to virtual machines.
var exampleVm = ProxmoxVE.Index.GetHaresourcesLegacy.Invoke(new()
{
Type = "vm",
});
return new Dictionary<string, object?>
{
["dataProxmoxVirtualEnvironmentHaresources"] =
{
{ "all", exampleAll.Apply(getHaresourcesLegacyResult => getHaresourcesLegacyResult.ResourceIds) },
{ "vms", exampleVm.Apply(getHaresourcesLegacyResult => getHaresourcesLegacyResult.ResourceIds) },
},
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.ProxmoxveFunctions;
import com.pulumi.proxmoxve.inputs.GetHaresourcesLegacyArgs;
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) {
// This will fetch the set of all HA resource identifiers.
final var exampleAll = ProxmoxveFunctions.getHaresourcesLegacy(GetHaresourcesLegacyArgs.builder()
.build());
// This will fetch the set of HA resource identifiers that correspond to virtual machines.
final var exampleVm = ProxmoxveFunctions.getHaresourcesLegacy(GetHaresourcesLegacyArgs.builder()
.type("vm")
.build());
ctx.export("dataProxmoxVirtualEnvironmentHaresources", Map.ofEntries(
Map.entry("all", exampleAll.resourceIds()),
Map.entry("vms", exampleVm.resourceIds())
));
}
}
variables:
# This will fetch the set of all HA resource identifiers.
exampleAll:
fn::invoke:
function: proxmoxve:getHaresourcesLegacy
arguments: {}
# This will fetch the set of HA resource identifiers that correspond to virtual machines.
exampleVm:
fn::invoke:
function: proxmoxve:getHaresourcesLegacy
arguments:
type: vm
outputs:
dataProxmoxVirtualEnvironmentHaresources:
all: ${exampleAll.resourceIds}
vms: ${exampleVm.resourceIds}
Using getHaresourcesLegacy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getHaresourcesLegacy(args: GetHaresourcesLegacyArgs, opts?: InvokeOptions): Promise<GetHaresourcesLegacyResult>
function getHaresourcesLegacyOutput(args: GetHaresourcesLegacyOutputArgs, opts?: InvokeOptions): Output<GetHaresourcesLegacyResult>def get_haresources_legacy(type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHaresourcesLegacyResult
def get_haresources_legacy_output(type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHaresourcesLegacyResult]func GetHaresourcesLegacy(ctx *Context, args *GetHaresourcesLegacyArgs, opts ...InvokeOption) (*GetHaresourcesLegacyResult, error)
func GetHaresourcesLegacyOutput(ctx *Context, args *GetHaresourcesLegacyOutputArgs, opts ...InvokeOption) GetHaresourcesLegacyResultOutput> Note: This function is named GetHaresourcesLegacy in the Go SDK.
public static class GetHaresourcesLegacy
{
public static Task<GetHaresourcesLegacyResult> InvokeAsync(GetHaresourcesLegacyArgs args, InvokeOptions? opts = null)
public static Output<GetHaresourcesLegacyResult> Invoke(GetHaresourcesLegacyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHaresourcesLegacyResult> getHaresourcesLegacy(GetHaresourcesLegacyArgs args, InvokeOptions options)
public static Output<GetHaresourcesLegacyResult> getHaresourcesLegacy(GetHaresourcesLegacyArgs args, InvokeOptions options)
fn::invoke:
function: proxmoxve:index/getHaresourcesLegacy:getHaresourcesLegacy
arguments:
# arguments dictionaryThe following arguments are supported:
- Type string
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- Type string
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- type String
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- type string
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- type str
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- type String
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
getHaresourcesLegacy Result
The following output properties are available:
- Id string
- The unique identifier of this resource.
- Resource
Ids List<string> - The identifiers of the High Availability resources.
- Type string
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- Id string
- The unique identifier of this resource.
- Resource
Ids []string - The identifiers of the High Availability resources.
- Type string
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- id String
- The unique identifier of this resource.
- resource
Ids List<String> - The identifiers of the High Availability resources.
- type String
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- id string
- The unique identifier of this resource.
- resource
Ids string[] - The identifiers of the High Availability resources.
- type string
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- id str
- The unique identifier of this resource.
- resource_
ids Sequence[str] - The identifiers of the High Availability resources.
- type str
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
- id String
- The unique identifier of this resource.
- resource
Ids List<String> - The identifiers of the High Availability resources.
- type String
- The type of High Availability resources to fetch (
vmorct). All resources will be fetched if this option is unset.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.0.0
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
