0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 02:31:10 +00:00
terraform-provider-proxmox/docs/data-sources/virtual_environment_vm.md
Konstantin Kornienko 65f8ba5bfe
feat(vm): implement filtering in vms data source. (#1423)
* feat(vm): implement filtering in vms data source.

* Additional attributes for vm data source (status, template)

* fix qodana CI job condition

---------

Signed-off-by: Konstantin Kornienko <konstantin.kornienko@gmail.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-07-05 15:52:39 -04:00

625 B

layout title parent subcategory
page proxmox_virtual_environment_vm Data Sources Virtual Environment

Data Source: proxmox_virtual_environment_vm

Retrieves information about a specific VM.

Example Usage

data "proxmox_virtual_environment_vm" "test_vm" {
    node_name = "test"
    vm_id = 100
}

Argument Reference

  • node_name - (Required) The node name.
  • vm_id - (Required) The VM identifier.

Attribute Reference

  • name - The virtual machine name.
  • tags - A list of tags of the VM.
  • status - Status of the VM
  • template - Is VM a template (true) or a regular VM (false)