1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Hardware
  5. Hardware/mapping
  6. getDir
Proxmox Virtual Environment (Proxmox VE) v7.1.0 published on Saturday, May 24, 2025 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Hardware/mapping.getDir

Explore with Pulumi AI

proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v7.1.0 published on Saturday, May 24, 2025 by Daniel Muehlbachler-Pietrzykowski

    Retrieves a directory mapping from a Proxmox VE cluster.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@pulumi/proxmoxve";
    
    const example = proxmoxve.Hardware.mapping.getDir({
        name: "example",
    });
    export const dataProxmoxVirtualEnvironmentHardwareMappingDir = example;
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    example = proxmoxve.Hardware.mapping.get_dir(name="example")
    pulumi.export("dataProxmoxVirtualEnvironmentHardwareMappingDir", example)
    
    package main
    
    import (
    	"github.com/muhlba91/pulumi-proxmoxve/sdk/v7/go/proxmoxve/hardware"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := hardware.GetDir(ctx, &mapping.GetDirArgs{
    			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.GetDir.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.GetDirArgs;
    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.getDir(GetDirArgs.builder()
                .name("example")
                .build());
    
            ctx.export("dataProxmoxVirtualEnvironmentHardwareMappingDir", example);
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: proxmoxve:Hardware/mapping:getDir
          arguments:
            name: example
    outputs:
      dataProxmoxVirtualEnvironmentHardwareMappingDir: ${example}
    

    Using getDir

    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 getDir(args: GetDirArgs, opts?: InvokeOptions): Promise<GetDirResult>
    function getDirOutput(args: GetDirOutputArgs, opts?: InvokeOptions): Output<GetDirResult>
    def get_dir(name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetDirResult
    def get_dir_output(name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetDirResult]
    func LookupDir(ctx *Context, args *LookupDirArgs, opts ...InvokeOption) (*LookupDirResult, error)
    func LookupDirOutput(ctx *Context, args *LookupDirOutputArgs, opts ...InvokeOption) LookupDirResultOutput

    > Note: This function is named LookupDir in the Go SDK.

    public static class GetDir 
    {
        public static Task<GetDirResult> InvokeAsync(GetDirArgs args, InvokeOptions? opts = null)
        public static Output<GetDirResult> Invoke(GetDirInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDirResult> getDir(GetDirArgs args, InvokeOptions options)
    public static Output<GetDirResult> getDir(GetDirArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:Hardware/mapping/getDir:getDir
      arguments:
        # arguments dictionary

    The 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.

    getDir 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.ProxmoxVE.Hardware.Mapping.Outputs.GetDirMap>
    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 []GetDirMap
    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<GetDirMap>
    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 GetDirMap[]
    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[GetDirMap]
    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

    GetDirMap

    Node string
    The node name attribute of the map.
    Path string
    The path attribute of the map.
    Node string
    The node name attribute of the map.
    Path string
    The path attribute of the map.
    node String
    The node name attribute of the map.
    path String
    The path attribute of the map.
    node string
    The node name attribute of the map.
    path string
    The path attribute of the map.
    node str
    The node name attribute of the map.
    path str
    The path attribute of the map.
    node String
    The node name attribute of the map.
    path String
    The path attribute of the map.

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Proxmox Virtual Environment (Proxmox VE) v7.1.0 published on Saturday, May 24, 2025 by Daniel Muehlbachler-Pietrzykowski