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.Usbinstead. This resource will be removed in v1.0.
Manages a USB hardware 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.UsbLegacy("example", {
comment: "This is a comment",
name: "example",
maps: [{
comment: "This is a device specific comment",
id: "8087:0a2b",
node: "pve",
path: "1-8.2",
}],
});
import pulumi
import pulumi_proxmoxve as proxmoxve
example = proxmoxve.hardware.mapping.UsbLegacy("example",
comment="This is a comment",
name="example",
maps=[{
"comment": "This is a device specific comment",
"id": "8087:0a2b",
"node": "pve",
"path": "1-8.2",
}])
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.NewUsbLegacy(ctx, "example", &hardware.UsbLegacyArgs{
Comment: pulumi.String("This is a comment"),
Name: pulumi.String("example"),
Maps: mapping.UsbLegacyMapTypeArray{
&mapping.UsbLegacyMapTypeArgs{
Comment: pulumi.String("This is a device specific comment"),
Id: pulumi.String("8087:0a2b"),
Node: pulumi.String("pve"),
Path: pulumi.String("1-8.2"),
},
},
})
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.UsbLegacy("example", new()
{
Comment = "This is a comment",
Name = "example",
Maps = new[]
{
new ProxmoxVE.Hardware.Mapping.Inputs.UsbLegacyMapArgs
{
Comment = "This is a device specific comment",
Id = "8087:0a2b",
Node = "pve",
Path = "1-8.2",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.hardware.UsbLegacy;
import io.muehlbachler.pulumi.proxmoxve.hardware.UsbLegacyArgs;
import com.pulumi.proxmoxve.hardware.inputs.UsbLegacyMapArgs;
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 UsbLegacy("example", UsbLegacyArgs.builder()
.comment("This is a comment")
.name("example")
.maps(UsbLegacyMapArgs.builder()
.comment("This is a device specific comment")
.id("8087:0a2b")
.node("pve")
.path("1-8.2")
.build())
.build());
}
}
resources:
example:
type: proxmoxve:hardware/mapping:UsbLegacy
properties:
comment: This is a comment
name: example
maps:
- comment: This is a device specific comment
id: 8087:0a2b
node: pve
path: 1-8.2
Create UsbLegacy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UsbLegacy(name: string, args: UsbLegacyArgs, opts?: CustomResourceOptions);@overload
def UsbLegacy(resource_name: str,
args: UsbLegacyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UsbLegacy(resource_name: str,
opts: Optional[ResourceOptions] = None,
maps: Optional[Sequence[UsbLegacyMapArgs]] = None,
comment: Optional[str] = None,
name: Optional[str] = None)func NewUsbLegacy(ctx *Context, name string, args UsbLegacyArgs, opts ...ResourceOption) (*UsbLegacy, error)public UsbLegacy(string name, UsbLegacyArgs args, CustomResourceOptions? opts = null)
public UsbLegacy(String name, UsbLegacyArgs args)
public UsbLegacy(String name, UsbLegacyArgs args, CustomResourceOptions options)
type: proxmoxve:hardware/mapping/usbLegacy:UsbLegacy
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 UsbLegacyArgs
- 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 UsbLegacyArgs
- 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 UsbLegacyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UsbLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UsbLegacyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
UsbLegacy 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 UsbLegacy resource accepts the following input properties:
- Maps
List<Pulumi.
Proxmox VE. Hardware. Mapping. Inputs. Usb Legacy Map> - The actual map of devices for the hardware mapping.
- Comment string
- The comment of this USB hardware mapping.
- Name string
- The name of this hardware mapping.
- Maps
[]Usb
Legacy Map Type Args - The actual map of devices for the hardware mapping.
- Comment string
- The comment of this USB hardware mapping.
- Name string
- The name of this hardware mapping.
- maps
List<Usb
Legacy Map> - The actual map of devices for the hardware mapping.
- comment String
- The comment of this USB hardware mapping.
- name String
- The name of this hardware mapping.
- maps
Usb
Legacy Map[] - The actual map of devices for the hardware mapping.
- comment string
- The comment of this USB hardware mapping.
- name string
- The name of this hardware mapping.
- maps
Sequence[Usb
Legacy Map Args] - The actual map of devices for the hardware mapping.
- comment str
- The comment of this USB hardware mapping.
- name str
- The name of this hardware mapping.
- maps List<Property Map>
- The actual map of devices for the hardware mapping.
- comment String
- The comment of this USB hardware mapping.
- name String
- The name of this hardware mapping.
Outputs
All input properties are implicitly available as output properties. Additionally, the UsbLegacy 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 UsbLegacy Resource
Get an existing UsbLegacy 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?: UsbLegacyState, opts?: CustomResourceOptions): UsbLegacy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
maps: Optional[Sequence[UsbLegacyMapArgs]] = None,
name: Optional[str] = None) -> UsbLegacyfunc GetUsbLegacy(ctx *Context, name string, id IDInput, state *UsbLegacyState, opts ...ResourceOption) (*UsbLegacy, error)public static UsbLegacy Get(string name, Input<string> id, UsbLegacyState? state, CustomResourceOptions? opts = null)public static UsbLegacy get(String name, Output<String> id, UsbLegacyState state, CustomResourceOptions options)resources: _: type: proxmoxve:hardware/mapping/usbLegacy:UsbLegacy 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 USB hardware mapping.
- Maps
List<Pulumi.
Proxmox VE. Hardware. Mapping. Inputs. Usb Legacy Map> - The actual map of devices for the hardware mapping.
- Name string
- The name of this hardware mapping.
- Comment string
- The comment of this USB hardware mapping.
- Maps
[]Usb
Legacy Map Type Args - The actual map of devices for the hardware mapping.
- Name string
- The name of this hardware mapping.
- comment String
- The comment of this USB hardware mapping.
- maps
List<Usb
Legacy Map> - The actual map of devices for the hardware mapping.
- name String
- The name of this hardware mapping.
- comment string
- The comment of this USB hardware mapping.
- maps
Usb
Legacy Map[] - The actual map of devices for the hardware mapping.
- name string
- The name of this hardware mapping.
- comment str
- The comment of this USB hardware mapping.
- maps
Sequence[Usb
Legacy Map Args] - The actual map of devices for the hardware mapping.
- name str
- The name of this hardware mapping.
- comment String
- The comment of this USB hardware mapping.
- maps List<Property Map>
- The actual map of devices for the hardware mapping.
- name String
- The name of this hardware mapping.
Supporting Types
UsbLegacyMap, UsbLegacyMapArgs
Import
!/usr/bin/env sh A USB hardware mapping can be imported using their name, e.g.:
$ pulumi import proxmoxve:hardware/mapping/usbLegacy:UsbLegacy 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 26, 2026 by Daniel Muehlbachler-Pietrzykowski
