1. Packages
  2. Packages
  3. Proxmox Virtual Environment (Proxmox VE)
  4. API Docs
  5. getHaresourceLegacy
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
proxmoxve logo
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski

    Deprecated: Use proxmoxve.Haresource instead. 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 dictionary

    The following arguments are supported:

    ResourceId string
    The identifier of the Proxmox HA resource to read.
    ResourceId string
    The identifier of the Proxmox HA resource to read.
    resourceId String
    The identifier of the Proxmox HA resource to read.
    resourceId string
    The identifier of the Proxmox HA resource to read.
    resource_id str
    The identifier of the Proxmox HA resource to read.
    resourceId 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.
    MaxRelocate int
    The maximal number of relocation attempts.
    MaxRestart int
    The maximal number of restart attempts.
    ResourceId 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 (vm or ct).
    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.
    MaxRelocate int
    The maximal number of relocation attempts.
    MaxRestart int
    The maximal number of restart attempts.
    ResourceId 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 (vm or ct).
    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.
    maxRelocate Integer
    The maximal number of relocation attempts.
    maxRestart Integer
    The maximal number of restart attempts.
    resourceId 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 (vm or ct).
    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.
    maxRelocate number
    The maximal number of relocation attempts.
    maxRestart number
    The maximal number of restart attempts.
    resourceId 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 (vm or ct).
    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 (vm or ct).
    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.
    maxRelocate Number
    The maximal number of relocation attempts.
    maxRestart Number
    The maximal number of restart attempts.
    resourceId 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 (vm or ct).

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
    published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
      Try Pulumi Cloud free. Your team will thank you.