1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. hardware
  5. hardware/mapping
  6. getUsbLegacy
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.0.0
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
proxmoxve logo
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.0.0
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski

    Deprecated: Use proxmoxve.hardware/mapping.Usb instead. This data source will be removed in v1.0.

    Retrieves a USB hardware 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.getUsbLegacy({
        name: "example",
    });
    export const dataProxmoxVirtualEnvironmentHardwareMappingUsb = example;
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    example = proxmoxve.hardware.mapping.get_usb_legacy(name="example")
    pulumi.export("dataProxmoxVirtualEnvironmentHardwareMappingUsb", 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.GetUsbLegacy(ctx, &mapping.GetUsbLegacyArgs{
    			Name: "example",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("dataProxmoxVirtualEnvironmentHardwareMappingUsb", 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.GetUsbLegacy.Invoke(new()
        {
            Name = "example",
        });
    
        return new Dictionary<string, object?>
        {
            ["dataProxmoxVirtualEnvironmentHardwareMappingUsb"] = 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.GetUsbLegacyArgs;
    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.getUsbLegacy(GetUsbLegacyArgs.builder()
                .name("example")
                .build());
    
            ctx.export("dataProxmoxVirtualEnvironmentHardwareMappingUsb", example);
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: proxmoxve:hardware/mapping:getUsbLegacy
          arguments:
            name: example
    outputs:
      dataProxmoxVirtualEnvironmentHardwareMappingUsb: ${example}
    

    Using getUsbLegacy

    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 getUsbLegacy(args: GetUsbLegacyArgs, opts?: InvokeOptions): Promise<GetUsbLegacyResult>
    function getUsbLegacyOutput(args: GetUsbLegacyOutputArgs, opts?: InvokeOptions): Output<GetUsbLegacyResult>
    def get_usb_legacy(name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetUsbLegacyResult
    def get_usb_legacy_output(name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetUsbLegacyResult]
    func LookupUsbLegacy(ctx *Context, args *LookupUsbLegacyArgs, opts ...InvokeOption) (*LookupUsbLegacyResult, error)
    func LookupUsbLegacyOutput(ctx *Context, args *LookupUsbLegacyOutputArgs, opts ...InvokeOption) LookupUsbLegacyResultOutput

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

    public static class GetUsbLegacy 
    {
        public static Task<GetUsbLegacyResult> InvokeAsync(GetUsbLegacyArgs args, InvokeOptions? opts = null)
        public static Output<GetUsbLegacyResult> Invoke(GetUsbLegacyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUsbLegacyResult> getUsbLegacy(GetUsbLegacyArgs args, InvokeOptions options)
    public static Output<GetUsbLegacyResult> getUsbLegacy(GetUsbLegacyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:hardware/mapping/getUsbLegacy:getUsbLegacy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of this USB hardware mapping.
    Name string
    The name of this USB hardware mapping.
    name String
    The name of this USB hardware mapping.
    name string
    The name of this USB hardware mapping.
    name str
    The name of this USB hardware mapping.
    name String
    The name of this USB hardware mapping.

    getUsbLegacy Result

    The following output properties are available:

    Comment string
    The comment of this USB hardware mapping.
    Id string
    The unique identifier of this USB hardware mapping data source.
    Maps List<Pulumi.ProxmoxVE.Hardware.Mapping.Outputs.GetUsbLegacyMap>
    The actual map of devices for the hardware mapping.
    Name string
    The name of this USB hardware mapping.
    Comment string
    The comment of this USB hardware mapping.
    Id string
    The unique identifier of this USB hardware mapping data source.
    Maps []GetUsbLegacyMap
    The actual map of devices for the hardware mapping.
    Name string
    The name of this USB hardware mapping.
    comment String
    The comment of this USB hardware mapping.
    id String
    The unique identifier of this USB hardware mapping data source.
    maps List<GetUsbLegacyMap>
    The actual map of devices for the hardware mapping.
    name String
    The name of this USB hardware mapping.
    comment string
    The comment of this USB hardware mapping.
    id string
    The unique identifier of this USB hardware mapping data source.
    maps GetUsbLegacyMap[]
    The actual map of devices for the hardware mapping.
    name string
    The name of this USB hardware mapping.
    comment str
    The comment of this USB hardware mapping.
    id str
    The unique identifier of this USB hardware mapping data source.
    maps Sequence[GetUsbLegacyMap]
    The actual map of devices for the hardware mapping.
    name str
    The name of this USB hardware mapping.
    comment String
    The comment of this USB hardware mapping.
    id String
    The unique identifier of this USB hardware mapping data source.
    maps List<Property Map>
    The actual map of devices for the hardware mapping.
    name String
    The name of this USB hardware mapping.

    Supporting Types

    GetUsbLegacyMap

    Comment string
    The comment of the mapped USB device.
    Id string
    The ID attribute of the map.
    Node string
    The node name attribute of the map.
    Path string
    The path attribute of the map.
    Comment string
    The comment of the mapped USB device.
    Id string
    The ID attribute of the map.
    Node string
    The node name attribute of the map.
    Path string
    The path attribute of the map.
    comment String
    The comment of the mapped USB device.
    id String
    The ID attribute of the map.
    node String
    The node name attribute of the map.
    path String
    The path attribute of the map.
    comment string
    The comment of the mapped USB device.
    id string
    The ID attribute of the map.
    node string
    The node name attribute of the map.
    path string
    The path attribute of the map.
    comment str
    The comment of the mapped USB device.
    id str
    The ID attribute of the map.
    node str
    The node name attribute of the map.
    path str
    The path attribute of the map.
    comment String
    The comment of the mapped USB device.
    id String
    The ID 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
    Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.0.0
    published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
      Try Pulumi Cloud free. Your team will thank you.