List PCU groups (TypeScript)

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 a promise that resolves to an unordered list of AstraPCUGroupDescriptor objects. Each object describes a PCU group in the organization.

Parameters

Use the listPCUGroups method, which belongs to the AstraAdmin class.

Method signature
async listPCUGroups(
  options?: {
    cloudProvider?: AstraDatabaseCloudProvider,
    region?: string,
    timeout?: number | TimeoutDescriptor,
}): AstraPCUGroupDescriptor[]
Name Type Summary

options

ListAstraPCUGroupsOptions

Optional. The options for this operation. See Properties of options for more details.

Properties of options
Name Type Summary

cloudProvider

AstraDatabaseCloudProvider

Required if you specify region.

Only returns PCU groups for this cloud provider.

region

string

Required if you specify cloudProvider.

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 (TypeScript).

timeout

number | TimeoutDescriptor

Optional. A timeout to impose on the underlying API request.

Examples

The following examples demonstrate how to list PCU groups.

List all PCU groups

import { DataAPIClient } from "@datastax/astra-db-ts";

const client = new DataAPIClient("APPLICATION_TOKEN");

const admin = client.admin();

(async function () {
  const groups = await admin.listPCUGroups();

  console.log(groups);
})();

List PCU groups for a cloud provider region

import { DataAPIClient } from "@datastax/astra-db-ts";

const client = new DataAPIClient("APPLICATION_TOKEN");

const admin = client.admin();

(async function () {
  const groups = await admin.listPCUGroups({
    cloudProvider: "AWS",
    region: "us-west-2",
  });

  console.log(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