Proxmox API working

This commit is contained in:
2026-08-20 13:09:25 -04:00
parent 7e9f8a93a8
commit aedb670c35
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
data "proxmox_vm" "ch01" {
id = 100
node_name = "hv01"
}
+6
View File
@@ -0,0 +1,6 @@
output "ch01" {
description = "Container Host 01 VM details"
value = {
status = data.proxmox_vm.ch01.status
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
provider "proxmox" { provider "proxmox" {
endpoint = "https://hv01.balsillie.house:8006/" endpoint = "https://hvc01.balsillie.house:443/"
insecure = false insecure = false
# api_token = # Takes value from PROXMOX_VE_API_TOKEN env var # api_token = # Takes value from PROXMOX_VE_API_TOKEN env var
random_vm_ids = true random_vm_ids = true