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.Haresourceinstead. This data source will be removed in v1.0.
Retrieves information about a specific High Availability resource.
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 all = proxmoxve.getHaresourcesLegacy({});
// ...which we will go through in order to fetch the whole record for each resource.
const example = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: proxmoxve.getHaresourceLegacy({
resourceId: __value,
}) }), {}));
export const proxmoxVirtualEnvironmentHaresourcesFull = example;
import pulumi
import pulumi_proxmoxve as proxmoxve
# This will fetch the set of all HA resource identifiers...
all = proxmoxve.get_haresources_legacy()
# ...which we will go through in order to fetch the whole record for each resource.
example = {__key: proxmoxve.get_haresource_legacy(resource_id=__value) for __key, __value in enumerate(all.resource_ids)}
pulumi.export("proxmoxVirtualEnvironmentHaresourcesFull", example)
Example coming soon!
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 all = ProxmoxVE.Index.GetHaresourcesLegacy.Invoke();
// ...which we will go through in order to fetch the whole record for each resource.
var example = ;
return new Dictionary<string, object?>
{
["proxmoxVirtualEnvironmentHaresourcesFull"] = example,
};
});
Example coming soon!
Example coming soon!
Using getHaresourceLegacy
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 getHaresourceLegacy(args: GetHaresourceLegacyArgs, opts?: InvokeOptions): Promise<GetHaresourceLegacyResult>
function getHaresourceLegacyOutput(args: GetHaresourceLegacyOutputArgs, opts?: InvokeOptions): Output<GetHaresourceLegacyResult>def get_haresource_legacy(resource_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHaresourceLegacyResult
def get_haresource_legacy_output(resource_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHaresourceLegacyResult]func LookupHaresourceLegacy(ctx *Context, args *LookupHaresourceLegacyArgs, opts ...InvokeOption) (*LookupHaresourceLegacyResult, error)
func LookupHaresourceLegacyOutput(ctx *Context, args *LookupHaresourceLegacyOutputArgs, opts ...InvokeOption) LookupHaresourceLegacyResultOutput> Note: This function is named LookupHaresourceLegacy in the Go SDK.
public static class GetHaresourceLegacy
{
public static Task<GetHaresourceLegacyResult> InvokeAsync(GetHaresourceLegacyArgs args, InvokeOptions? opts = null)
public static Output<GetHaresourceLegacyResult> Invoke(GetHaresourceLegacyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHaresourceLegacyResult> getHaresourceLegacy(GetHaresourceLegacyArgs args, InvokeOptions options)
public static Output<GetHaresourceLegacyResult> getHaresourceLegacy(GetHaresourceLegacyArgs args, InvokeOptions options)
fn::invoke:
function: proxmoxve:index/getHaresourceLegacy:getHaresourceLegacy
arguments:
# arguments dictionaryThe following arguments are supported:
- Resource
Id string - The identifier of the Proxmox HA resource to read.
- Resource
Id string - The identifier of the Proxmox HA resource to read.
- resource
Id String - The identifier of the Proxmox HA resource to read.
- resource
Id string - The identifier of the Proxmox HA resource to read.
- resource_
id str - The identifier of the Proxmox HA resource to read.
- resource
Id String - The identifier of the Proxmox HA resource to read.
getHaresourceLegacy Result
The following output properties are available:
- Comment string
- The comment associated with this resource.
- Group string
- The identifier of the High Availability group this resource is a member of.
- Id string
- The unique identifier of this resource.
- Max
Relocate int - The maximal number of relocation attempts.
- Max
Restart int - The maximal number of restart attempts.
- Resource
Id string - The identifier of the Proxmox HA resource to read.
- State string
- The desired state of the resource.
- Type string
- The type of High Availability resource (
vmorct).
- Comment string
- The comment associated with this resource.
- Group string
- The identifier of the High Availability group this resource is a member of.
- Id string
- The unique identifier of this resource.
- Max
Relocate int - The maximal number of relocation attempts.
- Max
Restart int - The maximal number of restart attempts.
- Resource
Id string - The identifier of the Proxmox HA resource to read.
- State string
- The desired state of the resource.
- Type string
- The type of High Availability resource (
vmorct).
- comment String
- The comment associated with this resource.
- group String
- The identifier of the High Availability group this resource is a member of.
- id String
- The unique identifier of this resource.
- max
Relocate Integer - The maximal number of relocation attempts.
- max
Restart Integer - The maximal number of restart attempts.
- resource
Id String - The identifier of the Proxmox HA resource to read.
- state String
- The desired state of the resource.
- type String
- The type of High Availability resource (
vmorct).
- comment string
- The comment associated with this resource.
- group string
- The identifier of the High Availability group this resource is a member of.
- id string
- The unique identifier of this resource.
- max
Relocate number - The maximal number of relocation attempts.
- max
Restart number - The maximal number of restart attempts.
- resource
Id string - The identifier of the Proxmox HA resource to read.
- state string
- The desired state of the resource.
- type string
- The type of High Availability resource (
vmorct).
- comment str
- The comment associated with this resource.
- group str
- The identifier of the High Availability group this resource is a member of.
- id str
- The unique identifier of this resource.
- max_
relocate int - The maximal number of relocation attempts.
- max_
restart int - The maximal number of restart attempts.
- resource_
id str - The identifier of the Proxmox HA resource to read.
- state str
- The desired state of the resource.
- type str
- The type of High Availability resource (
vmorct).
- comment String
- The comment associated with this resource.
- group String
- The identifier of the High Availability group this resource is a member of.
- id String
- The unique identifier of this resource.
- max
Relocate Number - The maximal number of relocation attempts.
- max
Restart Number - The maximal number of restart attempts.
- resource
Id String - The identifier of the Proxmox HA resource to read.
- state String
- The desired state of the resource.
- type String
- The type of High Availability resource (
vmorct).
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
