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

    Deprecated: Use proxmoxve.hardware/mapping.Pci instead. This resource will be removed in v1.0.

    Manages a PCI 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.PciLegacy("example", {
        comment: "This is a comment",
        name: "example",
        maps: [{
            comment: "This is a device specific comment",
            id: "8086:5916",
            iommuGroup: 0,
            node: "pve",
            path: "0000:00:02.0",
            subsystemId: "8086:2068",
        }],
        mediatedDevices: true,
    });
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    example = proxmoxve.hardware.mapping.PciLegacy("example",
        comment="This is a comment",
        name="example",
        maps=[{
            "comment": "This is a device specific comment",
            "id": "8086:5916",
            "iommu_group": 0,
            "node": "pve",
            "path": "0000:00:02.0",
            "subsystem_id": "8086:2068",
        }],
        mediated_devices=True)
    
    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.NewPciLegacy(ctx, "example", &hardware.PciLegacyArgs{
    			Comment: pulumi.String("This is a comment"),
    			Name:    pulumi.String("example"),
    			Maps: mapping.PciLegacyMapTypeArray{
    				&mapping.PciLegacyMapTypeArgs{
    					Comment:     pulumi.String("This is a device specific comment"),
    					Id:          pulumi.String("8086:5916"),
    					IommuGroup:  pulumi.Int(0),
    					Node:        pulumi.String("pve"),
    					Path:        pulumi.String("0000:00:02.0"),
    					SubsystemId: pulumi.String("8086:2068"),
    				},
    			},
    			MediatedDevices: pulumi.Bool(true),
    		})
    		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.PciLegacy("example", new()
        {
            Comment = "This is a comment",
            Name = "example",
            Maps = new[]
            {
                new ProxmoxVE.Hardware.Mapping.Inputs.PciLegacyMapArgs
                {
                    Comment = "This is a device specific comment",
                    Id = "8086:5916",
                    IommuGroup = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(0) (example.pp:6,19-20)),
                    Node = "pve",
                    Path = "0000:00:02.0",
                    SubsystemId = "8086:2068",
                },
            },
            MediatedDevices = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import io.muehlbachler.pulumi.proxmoxve.hardware.PciLegacy;
    import io.muehlbachler.pulumi.proxmoxve.hardware.PciLegacyArgs;
    import com.pulumi.proxmoxve.hardware.inputs.PciLegacyMapArgs;
    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 PciLegacy("example", PciLegacyArgs.builder()
                .comment("This is a comment")
                .name("example")
                .maps(PciLegacyMapArgs.builder()
                    .comment("This is a device specific comment")
                    .id("8086:5916")
                    .iommuGroup(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(0) (example.pp:6,19-20)))
                    .node("pve")
                    .path("0000:00:02.0")
                    .subsystemId("8086:2068")
                    .build())
                .mediatedDevices(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: proxmoxve:hardware/mapping:PciLegacy
        properties:
          comment: This is a comment
          name: example
          maps:
            - comment: This is a device specific comment
              id: 8086:5916
              iommuGroup: 0
              node: pve
              path: 0000:00:02.0
              subsystemId: 8086:2068
          mediatedDevices: true
    

    Create PciLegacy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PciLegacy(name: string, args: PciLegacyArgs, opts?: CustomResourceOptions);
    @overload
    def PciLegacy(resource_name: str,
                  args: PciLegacyArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def PciLegacy(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  maps: Optional[Sequence[PciLegacyMapArgs]] = None,
                  comment: Optional[str] = None,
                  mediated_devices: Optional[bool] = None,
                  name: Optional[str] = None)
    func NewPciLegacy(ctx *Context, name string, args PciLegacyArgs, opts ...ResourceOption) (*PciLegacy, error)
    public PciLegacy(string name, PciLegacyArgs args, CustomResourceOptions? opts = null)
    public PciLegacy(String name, PciLegacyArgs args)
    public PciLegacy(String name, PciLegacyArgs args, CustomResourceOptions options)
    
    type: proxmoxve:hardware/mapping/pciLegacy:PciLegacy
    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 PciLegacyArgs
    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 PciLegacyArgs
    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 PciLegacyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PciLegacyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PciLegacyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PciLegacy 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 PciLegacy resource accepts the following input properties:

    Maps List<Pulumi.ProxmoxVE.Hardware.Mapping.Inputs.PciLegacyMap>
    The actual map of devices for the PCI hardware mapping.
    Comment string
    The comment of this PCI hardware mapping.
    MediatedDevices bool
    Indicates whether to enable mediated devices.
    Name string
    The name of this PCI hardware mapping.
    Maps []PciLegacyMapTypeArgs
    The actual map of devices for the PCI hardware mapping.
    Comment string
    The comment of this PCI hardware mapping.
    MediatedDevices bool
    Indicates whether to enable mediated devices.
    Name string
    The name of this PCI hardware mapping.
    maps List<PciLegacyMap>
    The actual map of devices for the PCI hardware mapping.
    comment String
    The comment of this PCI hardware mapping.
    mediatedDevices Boolean
    Indicates whether to enable mediated devices.
    name String
    The name of this PCI hardware mapping.
    maps PciLegacyMap[]
    The actual map of devices for the PCI hardware mapping.
    comment string
    The comment of this PCI hardware mapping.
    mediatedDevices boolean
    Indicates whether to enable mediated devices.
    name string
    The name of this PCI hardware mapping.
    maps Sequence[PciLegacyMapArgs]
    The actual map of devices for the PCI hardware mapping.
    comment str
    The comment of this PCI hardware mapping.
    mediated_devices bool
    Indicates whether to enable mediated devices.
    name str
    The name of this PCI hardware mapping.
    maps List<Property Map>
    The actual map of devices for the PCI hardware mapping.
    comment String
    The comment of this PCI hardware mapping.
    mediatedDevices Boolean
    Indicates whether to enable mediated devices.
    name String
    The name of this PCI hardware mapping.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PciLegacy 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 PciLegacy Resource

    Get an existing PciLegacy 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?: PciLegacyState, opts?: CustomResourceOptions): PciLegacy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            maps: Optional[Sequence[PciLegacyMapArgs]] = None,
            mediated_devices: Optional[bool] = None,
            name: Optional[str] = None) -> PciLegacy
    func GetPciLegacy(ctx *Context, name string, id IDInput, state *PciLegacyState, opts ...ResourceOption) (*PciLegacy, error)
    public static PciLegacy Get(string name, Input<string> id, PciLegacyState? state, CustomResourceOptions? opts = null)
    public static PciLegacy get(String name, Output<String> id, PciLegacyState state, CustomResourceOptions options)
    resources:  _:    type: proxmoxve:hardware/mapping/pciLegacy:PciLegacy    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.
    The following state arguments are supported:
    Comment string
    The comment of this PCI hardware mapping.
    Maps List<Pulumi.ProxmoxVE.Hardware.Mapping.Inputs.PciLegacyMap>
    The actual map of devices for the PCI hardware mapping.
    MediatedDevices bool
    Indicates whether to enable mediated devices.
    Name string
    The name of this PCI hardware mapping.
    Comment string
    The comment of this PCI hardware mapping.
    Maps []PciLegacyMapTypeArgs
    The actual map of devices for the PCI hardware mapping.
    MediatedDevices bool
    Indicates whether to enable mediated devices.
    Name string
    The name of this PCI hardware mapping.
    comment String
    The comment of this PCI hardware mapping.
    maps List<PciLegacyMap>
    The actual map of devices for the PCI hardware mapping.
    mediatedDevices Boolean
    Indicates whether to enable mediated devices.
    name String
    The name of this PCI hardware mapping.
    comment string
    The comment of this PCI hardware mapping.
    maps PciLegacyMap[]
    The actual map of devices for the PCI hardware mapping.
    mediatedDevices boolean
    Indicates whether to enable mediated devices.
    name string
    The name of this PCI hardware mapping.
    comment str
    The comment of this PCI hardware mapping.
    maps Sequence[PciLegacyMapArgs]
    The actual map of devices for the PCI hardware mapping.
    mediated_devices bool
    Indicates whether to enable mediated devices.
    name str
    The name of this PCI hardware mapping.
    comment String
    The comment of this PCI hardware mapping.
    maps List<Property Map>
    The actual map of devices for the PCI hardware mapping.
    mediatedDevices Boolean
    Indicates whether to enable mediated devices.
    name String
    The name of this PCI hardware mapping.

    Supporting Types

    PciLegacyMap, PciLegacyMapArgs

    Id string
    The ID of the map.
    Node string
    The node name of the map.
    Path string
    The path of the map.
    Comment string
    The comment of the mapped PCI device.
    IommuGroup int
    The IOMMU group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    SubsystemId string
    The subsystem ID group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    Id string
    The ID of the map.
    Node string
    The node name of the map.
    Path string
    The path of the map.
    Comment string
    The comment of the mapped PCI device.
    IommuGroup int
    The IOMMU group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    SubsystemId string
    The subsystem ID group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    id String
    The ID of the map.
    node String
    The node name of the map.
    path String
    The path of the map.
    comment String
    The comment of the mapped PCI device.
    iommuGroup Integer
    The IOMMU group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    subsystemId String
    The subsystem ID group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    id string
    The ID of the map.
    node string
    The node name of the map.
    path string
    The path of the map.
    comment string
    The comment of the mapped PCI device.
    iommuGroup number
    The IOMMU group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    subsystemId string
    The subsystem ID group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    id str
    The ID of the map.
    node str
    The node name of the map.
    path str
    The path of the map.
    comment str
    The comment of the mapped PCI device.
    iommu_group int
    The IOMMU group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    subsystem_id str
    The subsystem ID group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    id String
    The ID of the map.
    node String
    The node name of the map.
    path String
    The path of the map.
    comment String
    The comment of the mapped PCI device.
    iommuGroup Number
    The IOMMU group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.
    subsystemId String
    The subsystem ID group of the map. While not mandatory for the Proxmox VE API call, omitting this attribute will result in an incomplete PCI hardware mapping.

    Import

    !/usr/bin/env sh A PCI hardware mapping can be imported using their name, e.g.:

    $ pulumi import proxmoxve:hardware/mapping/pciLegacy:PciLegacy 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 proxmox Terraform Provider.
    proxmoxve logo
    Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
    published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
      Try Pulumi Cloud free. Your team will thank you.