0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 19:12:59 +00:00
terraform-provider-proxmox/docs/data-sources/virtual_environment_node.md
Serge 9fee8c1e2e
feat(vm): add proxmox_virtual_environment_node datasource (#1151)
* feat(vm): add proxmox_virtual_environment_node datasource

It helps to get CPU model, number of cores and sockets.

Signed-off-by: Serge Logvinov <serge.logvinov@sinextra.dev>

* fix node_name ref
* add acceptance test

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: Serge Logvinov <serge.logvinov@sinextra.dev>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-03-23 20:17:09 -04:00

31 lines
714 B
Markdown

---
layout: page
title: proxmox_virtual_environment_node
parent: Data Sources
subcategory: Virtual Environment
---
# Data Source: proxmox_virtual_environment_node
Retrieves information about node.
## Example Usage
```terraform
data "proxmox_virtual_environment_node" "node" {}
```
## Argument Reference
- `node_name` - (Required) The node name.
## Attribute Reference
- `cpu_count` - The CPU count on the node.
- `cpu_sockets` - The CPU utilization on the node.
- `cpu_model` - The CPU model on the node.
- `memory_available` - The memory available on the node.
- `memory_used` - The memory used on the node.
- `memory_total` - The total memory on the node.
- `uptime` - The uptime in seconds on the node.