AlloyDB Admin Source

The “alloydb-admin” source provides a client for the AlloyDB API.

About

The alloydb-admin source provides a client to interact with the Google AlloyDB API. This allows tools to perform administrative tasks on AlloyDB resources, such as managing clusters, instances, and users.

Authentication can be handled in two ways:

  1. Application Default Credentials (ADC): By default, the source uses ADC to authenticate with the API.
  2. Client-side OAuth: If useClientOAuth is set to true, the source will expect an OAuth 2.0 access token to be provided by the client (e.g., a web browser) for each request.

Available Tools

AlloyDB Admin Source Tools

Tool NameDescription
alloydb-create-clusterThe "alloydb-create-cluster" tool creates a new AlloyDB for PostgreSQL cluster in a specified project and location.
alloydb-create-instanceThe "alloydb-create-instance" tool creates a new AlloyDB instance within a specified cluster.
alloydb-get-clusterThe "alloydb-get-cluster" tool retrieves details for a specific AlloyDB cluster.
alloydb-get-instanceThe "alloydb-get-instance" tool retrieves details for a specific AlloyDB instance.
alloydb-get-userThe "alloydb-get-user" tool retrieves details for a specific AlloyDB user.
alloydb-list-clustersThe "alloydb-list-clusters" tool lists the AlloyDB clusters in a given project and location.
alloydb-list-instancesThe "alloydb-list-instances" tool lists the AlloyDB instances for a given project, cluster and location.
alloydb-list-usersThe "alloydb-list-users" tool lists all database users within an AlloyDB cluster.
alloydb-create-userThe "alloydb-create-user" tool creates a new database user within a specified AlloyDB cluster.
alloydb-wait-for-operationWait for a long-running AlloyDB operation to complete.

Example

kind: source
name: my-alloydb-admin
type: alloydb-admin
---
kind: source
name: my-oauth-alloydb-admin
type: alloydb-admin
useClientOAuth: true

Reference

fieldtyperequireddescription
typestringtrueMust be “alloydb-admin”.
defaultProjectstringfalseThe Google Cloud project ID to use for AlloyDB infrastructure tools.
useClientOAuthbooleanfalseIf true, the source will use client-side OAuth for authorization. Otherwise, it will use Application Default Credentials. Defaults to false.



Last modified March 26, 2026: chore(main): release 0.31.0 (#2814) (c6b811c)