0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-29 18:21:10 +00:00
terraform-provider-proxmox/docs/data-sources/virtual_environment_hardware_mappings.md
Fina 6dbff43bd1
feat(hardwaremapping): Introduce support for directory mappings (#1902)
Signed-off-by: Fina Wilke <code@felinira.net>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2025-04-16 18:54:22 -04:00

1.8 KiB

layout title parent subcategory description
page proxmox_virtual_environment_hardware_mappings Data Sources Virtual Environment Retrieves a list of hardware mapping resources.

Data Source: proxmox_virtual_environment_hardware_mappings

Retrieves a list of hardware mapping resources.

Example Usage

data "proxmox_virtual_environment_hardware_mappings" "example-dir" {
  check_node = "pve"
  type       = "dir"
}

data "proxmox_virtual_environment_hardware_mappings" "example-pci" {
  check_node = "pve"
  type       = "pci"
}

data "proxmox_virtual_environment_hardware_mappings" "example-usb" {
  check_node = "pve"
  type       = "usb"
}

output "data_proxmox_virtual_environment_hardware_mappings_pci" {
  value = data.proxmox_virtual_environment_hardware_mappings.example-pci
}

output "data_proxmox_virtual_environment_hardware_mappings_usb" {
  value = data.proxmox_virtual_environment_hardware_mappings.example-usb
}

Schema

Required

  • type (String) The type of the hardware mappings.

Optional

  • check_node (String) The name of the node whose configurations should be checked for correctness.

Read-Only

  • checks (Attributes List) Might contain relevant diagnostics about incorrect configurations. (see below for nested schema)
  • id (String) The unique identifier of this hardware mappings data source.
  • ids (Set of String) The identifiers of the hardware mappings.

Nested Schema for checks

Read-Only:

  • mapping_id (String) The corresponding hardware mapping ID of the node check diagnostic entry.
  • message (String) The message of the node check diagnostic entry.
  • severity (String) The severity of the node check diagnostic entry.