Databases: list

Requires authorization

Lists databases in the specified Cloud SQL instance.

Request

HTTP request

GET https://www.googleapis.com/sql/v1beta4/projects/project/instances/instance/databases

Parameters

Parameter name Value Description
Path parameters
instance string Cloud SQL instance ID. This does not include the project ID.
project string Project ID of the project for which to list Cloud SQL instances.

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/sqlservice.admin
https://www.googleapis.com/auth/cloud-platform

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "sql#databasesList",
  "items": [
    databases Resource
  ]
}
Property name Value Description Notes
kind string This is always sql#databasesList.
items[] list List of database resources in the instance.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud SQL for MySQL