| page_title | astra_pcu_groups Data Source - terraform-provider-astra |
|---|---|
| subcategory | |
| description | Retrieves a list of PCU (Provisioned Capacity Units) groups. If no IDs are specified, returns all PCU groups in the organization. |
Retrieves a list of PCU (Provisioned Capacity Units) groups. If no IDs are specified, returns all PCU groups in the organization.
# Get all PCU groups in the organization
data "astra_pcu_groups" "all" {
}
output "all_pcu_groups" {
value = data.astra_pcu_groups.all.results[*].title
}
# Get specific PCU groups by ID
data "astra_pcu_groups" "specific" {
pcu_group_ids = [
"6c57916e-7bd8-4bb6-b264-bae906c8859f",
"7d68027f-8ce9-5cc7-c375-cbf017d9960g"
]
}
output "specific_pcu_groups" {
value = {
for group in data.astra_pcu_groups.specific.results : group.id => {
title = group.title
cloud_provider = group.cloud_provider
region = group.region
status = group.status
}
}
}pcu_group_ids(List of String) Optional list of PCU group IDs to retrieve. If not provided, all PCU groups in the organization will be returned.
results(Attributes List) The list of PCU groups matching the specified criteria or all PCU groups if no IDs were provided. (see below for nested schema)
Read-Only:
cache_type(String) The instance type/cache type for the PCU group.cloud_provider(String) The cloud provider where the PCU group is provisioned (e.g., AWS, GCP, AZURE).created_at(String) Timestamp when the PCU group was created.created_by(String) The user who created the PCU group.description(String) The user-defined description of the PCU group.id(String) The unique identifier of the PCU group.max_capacity(Number) The maximum capacity units the PCU group may scale to.min_capacity(Number) The minimum capacity units the PCU must be scaled to.org_id(String) The organization ID that owns this PCU group.provision_type(String) The provisioning type for the PCU group (i.e., SHARED, DEDICATED).region(String) The cloud region where the PCU group is provisioned.reserved_capacity(Number) The reserved (committed) capacity units for the PCU group.status(String) The current status of the PCU group (e.g., ACTIVE, CREATED, INITIALIZING).title(String) The user-defined title/name of the PCU group.updated_at(String) Timestamp when the PCU group was last updated.updated_by(String) The user who last updated the PCU group.