mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 02:31:10 +00:00
* 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>
32 lines
625 B
Markdown
32 lines
625 B
Markdown
---
|
|
layout: page
|
|
title: proxmox_virtual_environment_vm
|
|
parent: Data Sources
|
|
subcategory: Virtual Environment
|
|
---
|
|
|
|
# Data Source: proxmox_virtual_environment_vm
|
|
|
|
Retrieves information about a specific VM.
|
|
|
|
## Example Usage
|
|
|
|
```hcl
|
|
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)
|