Method: instances.list Stay organized with collections Save and categorize content based on your preferences.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Examples
- Try it!
Lists instances under a given project.
HTTP request
GET https://sqladmin.googleapis.com/v1/projects/{project}/instances
The URL usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
project |
Project ID of the project for which to list Cloud SQL instances. |
Query parameters
| Parameters | |
|---|---|
filter |
A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'. Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. |
maxResults |
The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000. |
pageToken |
A previously-returned page token representing part of the larger set of results to view. |
Request body
The request body must be empty.
Response body
Database instances list response.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{"kind":string,"warnings":[{object ( |
| Fields | |
|---|---|
kind |
This is always |
warnings[] |
instances.list of warnings that occurred while handling the request. |
items[] |
instances.list of database instance resources. |
nextPageToken |
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/sqlservice.admin
For more information, see theAuthentication Overview.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-27 UTC.