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
Deprecated: Use
proxmoxve.hardware/mapping.Dirinstead. This data source will be removed in v1.0.
Retrieves a directory mapping from a Proxmox VE cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const example = proxmoxve.hardware.mapping.getDirLegacy({
name: "example",
});
export const dataProxmoxVirtualEnvironmentHardwareMappingDir = example;
import pulumi
import pulumi_proxmoxve as proxmoxve
example = proxmoxve.hardware.mapping.get_dir_legacy(name="example")
pulumi.export("dataProxmoxVirtualEnvironmentHardwareMappingDir", example)
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve/hardware"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := hardware.GetDirLegacy(ctx, &mapping.GetDirLegacyArgs{
Name: "example",
}, nil)
if err != nil {
return err
}
ctx.Export("dataProxmoxVirtualEnvironmentHardwareMappingDir", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var example = ProxmoxVE.Hardware.Mapping.GetDirLegacy.Invoke(new()
{
Name = "example",
});
return new Dictionary<string, object?>
{
["dataProxmoxVirtualEnvironmentHardwareMappingDir"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.hardware_mapping.Hardware_mappingFunctions;
import com.pulumi.proxmoxve.hardware.inputs.GetDirLegacyArgs;
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) {
final var example = Hardware_mappingFunctions.getDirLegacy(GetDirLegacyArgs.builder()
.name("example")
.build());
ctx.export("dataProxmoxVirtualEnvironmentHardwareMappingDir", example);
}
}
variables:
example:
fn::invoke:
function: proxmoxve:hardware/mapping:getDirLegacy
arguments:
name: example
outputs:
dataProxmoxVirtualEnvironmentHardwareMappingDir: ${example}
Using getDirLegacy
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 getDirLegacy(args: GetDirLegacyArgs, opts?: InvokeOptions): Promise<GetDirLegacyResult>
function getDirLegacyOutput(args: GetDirLegacyOutputArgs, opts?: InvokeOptions): Output<GetDirLegacyResult>def get_dir_legacy(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDirLegacyResult
def get_dir_legacy_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDirLegacyResult]func LookupDirLegacy(ctx *Context, args *LookupDirLegacyArgs, opts ...InvokeOption) (*LookupDirLegacyResult, error)
func LookupDirLegacyOutput(ctx *Context, args *LookupDirLegacyOutputArgs, opts ...InvokeOption) LookupDirLegacyResultOutput> Note: This function is named LookupDirLegacy in the Go SDK.
public static class GetDirLegacy
{
public static Task<GetDirLegacyResult> InvokeAsync(GetDirLegacyArgs args, InvokeOptions? opts = null)
public static Output<GetDirLegacyResult> Invoke(GetDirLegacyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDirLegacyResult> getDirLegacy(GetDirLegacyArgs args, InvokeOptions options)
public static Output<GetDirLegacyResult> getDirLegacy(GetDirLegacyArgs args, InvokeOptions options)
fn::invoke:
function: proxmoxve:hardware/mapping/getDirLegacy:getDirLegacy
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of this directory mapping.
- Name string
- The name of this directory mapping.
- name String
- The name of this directory mapping.
- name string
- The name of this directory mapping.
- name str
- The name of this directory mapping.
- name String
- The name of this directory mapping.
getDirLegacy Result
The following output properties are available:
- Comment string
- The comment of this directory mapping.
- Id string
- The unique identifier of this directory mapping data source.
- Maps
List<Pulumi.
Proxmox VE. Hardware. Mapping. Outputs. Get Dir Legacy Map> - The actual map of devices for the directory mapping.
- Name string
- The name of this directory mapping.
- Comment string
- The comment of this directory mapping.
- Id string
- The unique identifier of this directory mapping data source.
- Maps
[]Get
Dir Legacy Map - The actual map of devices for the directory mapping.
- Name string
- The name of this directory mapping.
- comment String
- The comment of this directory mapping.
- id String
- The unique identifier of this directory mapping data source.
- maps
List<Get
Dir Legacy Map> - The actual map of devices for the directory mapping.
- name String
- The name of this directory mapping.
- comment string
- The comment of this directory mapping.
- id string
- The unique identifier of this directory mapping data source.
- maps
Get
Dir Legacy Map[] - The actual map of devices for the directory mapping.
- name string
- The name of this directory mapping.
- comment str
- The comment of this directory mapping.
- id str
- The unique identifier of this directory mapping data source.
- maps
Sequence[Get
Dir Legacy Map] - The actual map of devices for the directory mapping.
- name str
- The name of this directory mapping.
- comment String
- The comment of this directory mapping.
- id String
- The unique identifier of this directory mapping data source.
- maps List<Property Map>
- The actual map of devices for the directory mapping.
- name String
- The name of this directory mapping.
Supporting Types
GetDirLegacyMap
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
