alloydb-list-instances

The “alloydb-list-instances” tool lists the AlloyDB instances for a given project, cluster and location.

About

The alloydb-list-instances tool retrieves AlloyDB instance information for all or specified clusters and locations in a given project. It is compatible with alloydb-admin source.

alloydb-list-instances tool lists the detailed information of AlloyDB instances (instance name, type, IP address, state, configuration, etc) for a given project, cluster and location. The tool takes the following input parameters:

ParameterTypeDescriptionRequired
projectIdstringThe GCP project ID to list instances for.Yes
clusterIdstringThe ID of the cluster to list instances from. Use ‘-’ to get results for all clusters. Default: -.No
locationIdstringThe location of the cluster (e.g., ‘us-central1’). Use ‘-’ to get results for all locations. Default: -.No

Note This tool authenticates using the credentials configured in its alloydb-admin source which can be either Application Default Credentials or client-side OAuth.

Example

tools:
  list_instances:
    kind: alloydb-list-instances
    source: alloydb-admin-source
    description: Use this tool to list all AlloyDB instances for a given project, cluster and location.

Reference

fieldtyperequireddescription
kindstringtrueMust be alloydb-list-instances.
sourcestringtrueThe name of an alloydb-admin source.
descriptionstringtrueDescription of the tool that is passed to the agent.