mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 02:31:10 +00:00
1.2 KiB
1.2 KiB
layout | title | parent | subcategory | description |
---|---|---|---|---|
page | proxmox_virtual_environment_haresources | Data Sources | Virtual Environment | Retrieves the list of High Availability resources. |
Data Source: proxmox_virtual_environment_haresources
Retrieves the list of High Availability resources.
Example Usage
// This will fetch the set of all HA resource identifiers.
data "proxmox_virtual_environment_haresources" "example_all" {}
// This will fetch the set of HA resource identifiers that correspond to virtual machines.
data "proxmox_virtual_environment_haresources" "example_vm" {
type = "vm"
}
output "data_proxmox_virtual_environment_haresources" {
value = {
all = data.proxmox_virtual_environment_haresources.example_all.resource_ids
vms = data.proxmox_virtual_environment_haresources.example_vm.resource_ids
}
}
Schema
Optional
type
(String) The type of High Availability resources to fetch (vm
orct
). All resources will be fetched if this option is unset.
Read-Only
id
(String) The unique identifier of this resource.resource_ids
(Set of String) The identifiers of the High Availability resources.