Database Service in Google Distributed Cloud (GDC) air-gapped lets you list the database clusters in your project to track active resources and verify their status. You can inspect details such as namespaces, database versions, and primary DNS endpoints by using the GDC console, the gdcloud CLI, or the Kubernetes API.
To list your database clusters, use one of the following options:
Console
From the main menu, choose Database Service. The console takes you to a filterable list of your database clusters.
gdcloud
Before using Distributed Cloud CLI, install and initialize it. Then, authenticate with your organization.
Run the following command to list database clusters:
gdcloud database clusters listThe output lists the namespace, name, database version, primary DNS endpoint, and status of each database cluster.
API
kubectl get DBCluster.postgresql.dbadmin.gdc.goog -n USER_PROJECT
Replace the following variables:
USER_PROJECT. the name of the user project where the database cluster was created.