published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
Deprecated: Use
proxmoxve.hardware/mapping.Dirinstead. This resource will be removed in v1.0.
Manages a directory mapping in a Proxmox VE cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const example = new proxmoxve.hardware.mapping.DirLegacy("example", {
comment: "This is a comment",
name: "example",
maps: [{
node: "pve",
path: "/mnt/data",
}],
});
import pulumi
import pulumi_proxmoxve as proxmoxve
example = proxmoxve.hardware.mapping.DirLegacy("example",
comment="This is a comment",
name="example",
maps=[{
"node": "pve",
"path": "/mnt/data",
}])
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 {
_, err := hardware.NewDirLegacy(ctx, "example", &hardware.DirLegacyArgs{
Comment: pulumi.String("This is a comment"),
Name: pulumi.String("example"),
Maps: mapping.DirLegacyMapTypeArray{
&mapping.DirLegacyMapTypeArgs{
Node: pulumi.String("pve"),
Path: pulumi.String("/mnt/data"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var example = new ProxmoxVE.Hardware.Mapping.DirLegacy("example", new()
{
Comment = "This is a comment",
Name = "example",
Maps = new[]
{
new ProxmoxVE.Hardware.Mapping.Inputs.DirLegacyMapArgs
{
Node = "pve",
Path = "/mnt/data",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.hardware.DirLegacy;
import io.muehlbachler.pulumi.proxmoxve.hardware.DirLegacyArgs;
import com.pulumi.proxmoxve.hardware.inputs.DirLegacyMapArgs;
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) {
var example = new DirLegacy("example", DirLegacyArgs.builder()
.comment("This is a comment")
.name("example")
.maps(DirLegacyMapArgs.builder()
.node("pve")
.path("/mnt/data")
.build())
.build());
}
}
resources:
example:
type: proxmoxve:hardware/mapping:DirLegacy
properties:
comment: This is a comment
name: example
maps:
- node: pve
path: /mnt/data
Create DirLegacy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DirLegacy(name: string, args: DirLegacyArgs, opts?: CustomResourceOptions);@overload
def DirLegacy(resource_name: str,
args: DirLegacyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DirLegacy(resource_name: str,
opts: Optional[ResourceOptions] = None,
maps: Optional[Sequence[DirLegacyMapArgs]] = None,
comment: Optional[str] = None,
name: Optional[str] = None)func NewDirLegacy(ctx *Context, name string, args DirLegacyArgs, opts ...ResourceOption) (*DirLegacy, error)public DirLegacy(string name, DirLegacyArgs args, CustomResourceOptions? opts = null)
public DirLegacy(String name, DirLegacyArgs args)
public DirLegacy(String name, DirLegacyArgs args, CustomResourceOptions options)
type: proxmoxve:hardware/mapping/dirLegacy:DirLegacy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DirLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DirLegacyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DirLegacyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DirLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DirLegacyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DirLegacy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DirLegacy resource accepts the following input properties:
- Maps
List<Pulumi.
Proxmox VE. Hardware. Mapping. Inputs. Dir Legacy Map> - The actual map of devices for the hardware mapping.
- Comment string
- The comment of this directory mapping.
- Name string
- The name of this directory mapping.
- Maps
[]Dir
Legacy Map Type Args - The actual map of devices for the hardware mapping.
- Comment string
- The comment of this directory mapping.
- Name string
- The name of this directory mapping.
- maps
List<Dir
Legacy Map> - The actual map of devices for the hardware mapping.
- comment String
- The comment of this directory mapping.
- name String
- The name of this directory mapping.
- maps
Dir
Legacy Map[] - The actual map of devices for the hardware mapping.
- comment string
- The comment of this directory mapping.
- name string
- The name of this directory mapping.
- maps
Sequence[Dir
Legacy Map Args] - The actual map of devices for the hardware mapping.
- comment str
- The comment of this directory mapping.
- name str
- The name of this directory mapping.
- maps List<Property Map>
- The actual map of devices for the hardware mapping.
- comment String
- The comment of this directory mapping.
- name String
- The name of this directory mapping.
Outputs
All input properties are implicitly available as output properties. Additionally, the DirLegacy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DirLegacy Resource
Get an existing DirLegacy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DirLegacyState, opts?: CustomResourceOptions): DirLegacy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
maps: Optional[Sequence[DirLegacyMapArgs]] = None,
name: Optional[str] = None) -> DirLegacyfunc GetDirLegacy(ctx *Context, name string, id IDInput, state *DirLegacyState, opts ...ResourceOption) (*DirLegacy, error)public static DirLegacy Get(string name, Input<string> id, DirLegacyState? state, CustomResourceOptions? opts = null)public static DirLegacy get(String name, Output<String> id, DirLegacyState state, CustomResourceOptions options)resources: _: type: proxmoxve:hardware/mapping/dirLegacy:DirLegacy get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Comment string
- The comment of this directory mapping.
- Maps
List<Pulumi.
Proxmox VE. Hardware. Mapping. Inputs. Dir Legacy Map> - The actual map of devices for the hardware mapping.
- Name string
- The name of this directory mapping.
- Comment string
- The comment of this directory mapping.
- Maps
[]Dir
Legacy Map Type Args - The actual map of devices for the hardware mapping.
- Name string
- The name of this directory mapping.
- comment String
- The comment of this directory mapping.
- maps
List<Dir
Legacy Map> - The actual map of devices for the hardware mapping.
- name String
- The name of this directory mapping.
- comment string
- The comment of this directory mapping.
- maps
Dir
Legacy Map[] - The actual map of devices for the hardware mapping.
- name string
- The name of this directory mapping.
- comment str
- The comment of this directory mapping.
- maps
Sequence[Dir
Legacy Map Args] - The actual map of devices for the hardware mapping.
- name str
- The name of this directory mapping.
- comment String
- The comment of this directory mapping.
- maps List<Property Map>
- The actual map of devices for the hardware mapping.
- name String
- The name of this directory mapping.
Supporting Types
DirLegacyMap, DirLegacyMapArgs
Import
!/usr/bin/env sh A directory mapping can be imported using their name, e.g.:
$ pulumi import proxmoxve:hardware/mapping/dirLegacy:DirLegacy example example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
