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_hagroup.md

1.5 KiB

layout title parent subcategory description
page proxmox_virtual_environment_hagroup Data Sources Virtual Environment Retrieves information about a specific High Availability group.

Data Source: proxmox_virtual_environment_hagroup

Retrieves information about a specific High Availability group.

Example Usage

// This will fetch the set of HA group identifiers...
data "proxmox_virtual_environment_hagroups" "all" {}

// ...which we will go through in order to fetch the whole data on each group.
data "proxmox_virtual_environment_hagroup" "example" {
  for_each = data.proxmox_virtual_environment_hagroups.all.group_ids
  group    = each.value
}

output "proxmox_virtual_environment_hagroups_full" {
  value = data.proxmox_virtual_environment_hagroup.example
}

Schema

Required

  • group (String) The identifier of the High Availability group to read.

Read-Only

  • comment (String) The comment associated with this group
  • id (String) The unique identifier of this resource.
  • no_failback (Boolean) A flag that indicates that failing back to a higher priority node is disabled for this HA group.
  • nodes (Map of Number) The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or null for unset priorities.
  • restricted (Boolean) A flag that indicates that other nodes may not be used to run resources associated to this HA group.