Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
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.getHaresources({});
// ...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.getHaresource({
resourceId: __value,
}) }), {}));
export const proxmoxHaresourcesFull = example;
import pulumi
import pulumi_proxmoxve as proxmoxve
# This will fetch the set of all HA resource identifiers...
all = proxmoxve.get_haresources()
# ...which we will go through in order to fetch the whole record for each resource.
example = {__key: proxmoxve.get_haresource(resource_id=__value) for __key, __value in enumerate(all.resource_ids)}
pulumi.export("proxmoxHaresourcesFull", 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.GetHaresources.Invoke();
// ...which we will go through in order to fetch the whole record for each resource.
var example = ;
return new Dictionary<string, object?>
{
["proxmoxHaresourcesFull"] = example,
};
});
Example coming soon!
Example coming soon!
Example coming soon!
Using getHaresource
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 getHaresource(args: GetHaresourceArgs, opts?: InvokeOptions): Promise<GetHaresourceResult>
function getHaresourceOutput(args: GetHaresourceOutputArgs, opts?: InvokeOptions): Output<GetHaresourceResult>def get_haresource(resource_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHaresourceResult
def get_haresource_output(resource_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHaresourceResult]func LookupHaresource(ctx *Context, args *LookupHaresourceArgs, opts ...InvokeOption) (*LookupHaresourceResult, error)
func LookupHaresourceOutput(ctx *Context, args *LookupHaresourceOutputArgs, opts ...InvokeOption) LookupHaresourceResultOutput> Note: This function is named LookupHaresource in the Go SDK.
public static class GetHaresource
{
public static Task<GetHaresourceResult> InvokeAsync(GetHaresourceArgs args, InvokeOptions? opts = null)
public static Output<GetHaresourceResult> Invoke(GetHaresourceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHaresourceResult> getHaresource(GetHaresourceArgs args, InvokeOptions options)
public static Output<GetHaresourceResult> getHaresource(GetHaresourceArgs args, InvokeOptions options)
fn::invoke:
function: proxmoxve:index/getHaresource:getHaresource
arguments:
# arguments dictionarydata "proxmoxve_getharesource" "name" {
# arguments
}The 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 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.
getHaresource 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 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 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.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
