List PCU groups (Python)

Lists all Provisioned Capacity Units (PCU) groups in an organization.

You need an application token with the Organization Administrator or Billing Administrator role.

For more information, see Get endpoint and token.

Result

Returns an unordered list of PCUGroupDescriptor objects. Each object describes a PCU group in the organization.

Parameters

Use the list_pcu_groups method, which belongs to the AstraDBAdmin class.

Method signature
list_pcu_groups(
  *,
  cloud_provider: str,
  region: str,
  database_admin_timeout_ms: int,
  request_timeout_ms: int,
  timeout_ms: int
) -> list[PCUGroupDescriptor]
Name Type Summary

cloud_provider

str

Required if you specify region.

Only returns PCU groups for this cloud provider.

Can be one of: aws, gcp, azure.

region

str

Required if you specify cloud_provider.

Only returns PCU groups in this cloud provider region.

The available regions depend on your plan and the database type. To find available regions, see Find available regions (Python).

database_admin_timeout_ms

int

Optional. A timeout, in milliseconds, to impose on the underlying API request. If not provided, the AstraDBAdmin defaults apply.

This parameter is aliased as request_timeout_ms and timeout_ms for convenience.

Examples

The following examples demonstrate how to list PCU groups.

List all PCU groups

from astrapy import DataAPIClient

client = DataAPIClient("APPLICATION_TOKEN")

admin = client.get_admin()

groups = admin.list_pcu_groups()

print(groups)

List PCU groups for a cloud provider region

from astrapy import DataAPIClient

client = DataAPIClient("APPLICATION_TOKEN")

admin = client.get_admin()

groups = admin.list_pcu_groups(cloud_provider="aws", region="us-west-2")

print(groups)

Client reference

For more information, see the client reference.

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | Privacy policy | Terms of use Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM