Spanner Admin

A “spanner-admin” source provides a client for the Cloud Spanner Admin API.

About

The spanner-admin source provides a client to interact with the Google Cloud Spanner Admin API. This allows tools to perform administrative tasks on Spanner instances, such as creating instances.

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.

Example

sources:
    my-spanner-admin:
        kind: spanner-admin

    my-oauth-spanner-admin:
        kind: spanner-admin
        useClientOAuth: true

Reference

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