mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-01 19:12:59 +00:00
* feat(vm): Add a bare minimum VM datasource * fix linter errors * fix doc * add lookup across all nodes in the cluster, add filter by tags * stable vm list * fix linter errors * pr feedback: switch to dynamic id for vms * add datasource examples * add unit tests * Update virtual_environment_vms.md
10 lines
344 B
HCL
10 lines
344 B
HCL
data "proxmox_virtual_environment_vm" "example" {
|
|
depends_on = [proxmox_virtual_environment_vm.example]
|
|
vm_id = proxmox_virtual_environment_vm.example.vm_id
|
|
node_name = data.proxmox_virtual_environment_nodes.example.names[0]
|
|
}
|
|
|
|
output "proxmox_virtual_environment_vm_example" {
|
|
value = data.proxmox_virtual_environment_vm.example
|
|
}
|