libvirt 0.9.0 published on Saturday, Nov 8, 2025 by dmacvicar
libvirt 0.9.0 published on Saturday, Nov 8, 2025 by dmacvicar
Fetches detailed information about a specific libvirt host node device.
This data source provides comprehensive details about hardware devices, including PCI devices for passthrough, USB devices, network interfaces, and storage devices.
Using getNodeDeviceInfo
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 getNodeDeviceInfo(args: GetNodeDeviceInfoArgs, opts?: InvokeOptions): Promise<GetNodeDeviceInfoResult>
function getNodeDeviceInfoOutput(args: GetNodeDeviceInfoOutputArgs, opts?: InvokeOptions): Output<GetNodeDeviceInfoResult>def get_node_device_info(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNodeDeviceInfoResult
def get_node_device_info_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNodeDeviceInfoResult]func GetNodeDeviceInfo(ctx *Context, args *GetNodeDeviceInfoArgs, opts ...InvokeOption) (*GetNodeDeviceInfoResult, error)
func GetNodeDeviceInfoOutput(ctx *Context, args *GetNodeDeviceInfoOutputArgs, opts ...InvokeOption) GetNodeDeviceInfoResultOutput> Note: This function is named GetNodeDeviceInfo in the Go SDK.
public static class GetNodeDeviceInfo
{
public static Task<GetNodeDeviceInfoResult> InvokeAsync(GetNodeDeviceInfoArgs args, InvokeOptions? opts = null)
public static Output<GetNodeDeviceInfoResult> Invoke(GetNodeDeviceInfoInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNodeDeviceInfoResult> getNodeDeviceInfo(GetNodeDeviceInfoArgs args, InvokeOptions options)
public static Output<GetNodeDeviceInfoResult> getNodeDeviceInfo(GetNodeDeviceInfoArgs args, InvokeOptions options)
fn::invoke:
function: libvirt:index/getNodeDeviceInfo:getNodeDeviceInfo
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2).
- Name string
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2).
- name String
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2).
- name string
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2).
- name str
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2).
- name String
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2).
getNodeDeviceInfo Result
The following output properties are available:
- Capability
Get
Node Device Info Capability - Device capability details. Fields populated depend on the device type.
- Id string
- Internal identifier for this data source.
- Name string
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2). - Parent string
- Parent device name in the device hierarchy.
- Path string
- Sysfs path to the device.
- Capability
Get
Node Device Info Capability - Device capability details. Fields populated depend on the device type.
- Id string
- Internal identifier for this data source.
- Name string
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2). - Parent string
- Parent device name in the device hierarchy.
- Path string
- Sysfs path to the device.
- capability
Get
Node Device Info Capability - Device capability details. Fields populated depend on the device type.
- id String
- Internal identifier for this data source.
- name String
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2). - parent String
- Parent device name in the device hierarchy.
- path String
- Sysfs path to the device.
- capability
Get
Node Device Info Capability - Device capability details. Fields populated depend on the device type.
- id string
- Internal identifier for this data source.
- name string
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2). - parent string
- Parent device name in the device hierarchy.
- path string
- Sysfs path to the device.
- capability
Get
Node Device Info Capability - Device capability details. Fields populated depend on the device type.
- id str
- Internal identifier for this data source.
- name str
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2). - parent str
- Parent device name in the device hierarchy.
- path str
- Sysfs path to the device.
- capability Property Map
- Device capability details. Fields populated depend on the device type.
- id String
- Internal identifier for this data source.
- name String
- Device name from
libvirt.getNodeDevicesdata source (e.g.,pci_0000_00_1f_2). - parent String
- Parent device name in the device hierarchy.
- path String
- Sysfs path to the device.
Supporting Types
GetNodeDeviceInfoCapability
- Address string
- MAC address or device address.
- Block string
- Block device path (e.g.,
/dev/sda). - Bus double
- PCI/USB bus number.
- Class string
- PCI class code (e.g.,
0x030000for VGA). - Device
Number double - USB device number.
- Domain double
- PCI domain number.
- Drive
Type string - Drive type (e.g.,
disk,cdrom). - Function double
- PCI function number.
- Host double
- SCSI host number.
- Interface string
- Network interface name (e.g.,
eth0). - Iommu
Group double - IOMMU group number (for PCI passthrough).
- Link
Speed string - Network link speed.
- Link
State string - Network link state (e.g.,
up,down). - Logical
Block doubleSize - Logical block size in bytes.
- Lun double
- SCSI LUN (Logical Unit Number).
- Model string
- Device model name.
- Num
Blocks double - Number of blocks.
- Product
Id string - Product ID (vendor-specific identifier).
- Product
Name string - Product name or description.
- Scsi
Type string - SCSI device type.
- Serial string
- Device serial number.
- Size double
- Storage capacity in bytes.
- Slot double
- PCI slot number.
- Target double
- SCSI target number.
- Type string
- Capability type (e.g.,
pci,usb_device,net,storage). - Vendor
Id string - Vendor ID.
- Vendor
Name string - Vendor name.
- Address string
- MAC address or device address.
- Block string
- Block device path (e.g.,
/dev/sda). - Bus float64
- PCI/USB bus number.
- Class string
- PCI class code (e.g.,
0x030000for VGA). - Device
Number float64 - USB device number.
- Domain float64
- PCI domain number.
- Drive
Type string - Drive type (e.g.,
disk,cdrom). - Function float64
- PCI function number.
- Host float64
- SCSI host number.
- Interface string
- Network interface name (e.g.,
eth0). - Iommu
Group float64 - IOMMU group number (for PCI passthrough).
- Link
Speed string - Network link speed.
- Link
State string - Network link state (e.g.,
up,down). - Logical
Block float64Size - Logical block size in bytes.
- Lun float64
- SCSI LUN (Logical Unit Number).
- Model string
- Device model name.
- Num
Blocks float64 - Number of blocks.
- Product
Id string - Product ID (vendor-specific identifier).
- Product
Name string - Product name or description.
- Scsi
Type string - SCSI device type.
- Serial string
- Device serial number.
- Size float64
- Storage capacity in bytes.
- Slot float64
- PCI slot number.
- Target float64
- SCSI target number.
- Type string
- Capability type (e.g.,
pci,usb_device,net,storage). - Vendor
Id string - Vendor ID.
- Vendor
Name string - Vendor name.
- address String
- MAC address or device address.
- block String
- Block device path (e.g.,
/dev/sda). - bus Double
- PCI/USB bus number.
- class_ String
- PCI class code (e.g.,
0x030000for VGA). - device
Number Double - USB device number.
- domain Double
- PCI domain number.
- drive
Type String - Drive type (e.g.,
disk,cdrom). - function Double
- PCI function number.
- host Double
- SCSI host number.
- interface_ String
- Network interface name (e.g.,
eth0). - iommu
Group Double - IOMMU group number (for PCI passthrough).
- link
Speed String - Network link speed.
- link
State String - Network link state (e.g.,
up,down). - logical
Block DoubleSize - Logical block size in bytes.
- lun Double
- SCSI LUN (Logical Unit Number).
- model String
- Device model name.
- num
Blocks Double - Number of blocks.
- product
Id String - Product ID (vendor-specific identifier).
- product
Name String - Product name or description.
- scsi
Type String - SCSI device type.
- serial String
- Device serial number.
- size Double
- Storage capacity in bytes.
- slot Double
- PCI slot number.
- target Double
- SCSI target number.
- type String
- Capability type (e.g.,
pci,usb_device,net,storage). - vendor
Id String - Vendor ID.
- vendor
Name String - Vendor name.
- address string
- MAC address or device address.
- block string
- Block device path (e.g.,
/dev/sda). - bus number
- PCI/USB bus number.
- class string
- PCI class code (e.g.,
0x030000for VGA). - device
Number number - USB device number.
- domain number
- PCI domain number.
- drive
Type string - Drive type (e.g.,
disk,cdrom). - function number
- PCI function number.
- host number
- SCSI host number.
- interface string
- Network interface name (e.g.,
eth0). - iommu
Group number - IOMMU group number (for PCI passthrough).
- link
Speed string - Network link speed.
- link
State string - Network link state (e.g.,
up,down). - logical
Block numberSize - Logical block size in bytes.
- lun number
- SCSI LUN (Logical Unit Number).
- model string
- Device model name.
- num
Blocks number - Number of blocks.
- product
Id string - Product ID (vendor-specific identifier).
- product
Name string - Product name or description.
- scsi
Type string - SCSI device type.
- serial string
- Device serial number.
- size number
- Storage capacity in bytes.
- slot number
- PCI slot number.
- target number
- SCSI target number.
- type string
- Capability type (e.g.,
pci,usb_device,net,storage). - vendor
Id string - Vendor ID.
- vendor
Name string - Vendor name.
- address str
- MAC address or device address.
- block str
- Block device path (e.g.,
/dev/sda). - bus float
- PCI/USB bus number.
- class_ str
- PCI class code (e.g.,
0x030000for VGA). - device_
number float - USB device number.
- domain float
- PCI domain number.
- drive_
type str - Drive type (e.g.,
disk,cdrom). - function float
- PCI function number.
- host float
- SCSI host number.
- interface str
- Network interface name (e.g.,
eth0). - iommu_
group float - IOMMU group number (for PCI passthrough).
- link_
speed str - Network link speed.
- link_
state str - Network link state (e.g.,
up,down). - logical_
block_ floatsize - Logical block size in bytes.
- lun float
- SCSI LUN (Logical Unit Number).
- model str
- Device model name.
- num_
blocks float - Number of blocks.
- product_
id str - Product ID (vendor-specific identifier).
- product_
name str - Product name or description.
- scsi_
type str - SCSI device type.
- serial str
- Device serial number.
- size float
- Storage capacity in bytes.
- slot float
- PCI slot number.
- target float
- SCSI target number.
- type str
- Capability type (e.g.,
pci,usb_device,net,storage). - vendor_
id str - Vendor ID.
- vendor_
name str - Vendor name.
- address String
- MAC address or device address.
- block String
- Block device path (e.g.,
/dev/sda). - bus Number
- PCI/USB bus number.
- class String
- PCI class code (e.g.,
0x030000for VGA). - device
Number Number - USB device number.
- domain Number
- PCI domain number.
- drive
Type String - Drive type (e.g.,
disk,cdrom). - function Number
- PCI function number.
- host Number
- SCSI host number.
- interface String
- Network interface name (e.g.,
eth0). - iommu
Group Number - IOMMU group number (for PCI passthrough).
- link
Speed String - Network link speed.
- link
State String - Network link state (e.g.,
up,down). - logical
Block NumberSize - Logical block size in bytes.
- lun Number
- SCSI LUN (Logical Unit Number).
- model String
- Device model name.
- num
Blocks Number - Number of blocks.
- product
Id String - Product ID (vendor-specific identifier).
- product
Name String - Product name or description.
- scsi
Type String - SCSI device type.
- serial String
- Device serial number.
- size Number
- Storage capacity in bytes.
- slot Number
- PCI slot number.
- target Number
- SCSI target number.
- type String
- Capability type (e.g.,
pci,usb_device,net,storage). - vendor
Id String - Vendor ID.
- vendor
Name String - Vendor name.
Package Details
- Repository
- libvirt dmacvicar/terraform-provider-libvirt
- License
- Notes
- This Pulumi package is based on the
libvirtTerraform Provider.
libvirt 0.9.0 published on Saturday, Nov 8, 2025 by dmacvicar
