Proxmox API working
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
data "proxmox_vm" "ch01" {
|
||||
id = 100
|
||||
node_name = "hv01"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
output "ch01" {
|
||||
description = "Container Host 01 VM details"
|
||||
value = {
|
||||
status = data.proxmox_vm.ch01.status
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
provider "proxmox" {
|
||||
endpoint = "https://hv01.balsillie.house:8006/"
|
||||
endpoint = "https://hvc01.balsillie.house:443/"
|
||||
insecure = false
|
||||
# api_token = # Takes value from PROXMOX_VE_API_TOKEN env var
|
||||
random_vm_ids = true
|
||||
|
||||
Reference in New Issue
Block a user