Skip to content

Expose /nodes/{node}/hardware/pci as a data source #2668

@jpsalvesen

Description

@jpsalvesen

Is your feature request related to a problem? Please describe.

Maintaining PCI mappings is less than optimal, imho.

Ideally, it should be possible to add a hypervisor to a list of hypervisors and code from there.

The proposed data source would probe similarly to the pvesh get /nodes/<node>/hardware/pci command.

This data allows users of this terraform provider to for example set up PCI mappings based on the hardware the hypervisor has access to.

Describe the solution you'd like

A new data source named something like proxmox_virtual_environment_hardware_pci

The data source would accept a node name as its parameter.

Optional parameters for filtering based on class, vendor id, bus etc would be nice, but are not essential.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions