REST Resource: databases Stay organized with collections Save and categorize content based on your preferences.
Resource: Database
Represents a SQL database on the Cloud SQL instance.
JSON representation |
---|
{"kind":string,"charset":string,"collation":string,"etag":string,"name":string,"instance":string,"selfLink":string,"project":string,"sqlserverDatabaseDetails":{object ( |
Fields | |
---|---|
kind |
This is always |
charset |
The Cloud SQL charset value. |
collation |
The Cloud SQL collation value. |
etag |
This field is deprecated and will be removed from a future version of the API. |
name |
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name. |
instance |
The name of the Cloud SQL instance. This does not include the project ID. |
selfLink |
The URI of this resource. |
project |
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. |
sqlserverDatabaseDetails |
|
SqlServerDatabaseDetails
Represents a Sql Server database on the Cloud SQL instance.
JSON representation |
---|
{"compatibilityLevel":integer,"recoveryModel":string} |
Fields | |
---|---|
compatibilityLevel |
The version of SQL Server with which the database is to be made compatible |
recoveryModel |
The recovery model of a SQL Server database |
Methods | |
---|---|
| Deletes a database from a Cloud SQL instance. |
| Retrieves a resource containing information about a database inside a Cloud SQL instance. |
| Inserts a resource containing information about a database inside a Cloud SQL instance. |
| Lists databases in the specified Cloud SQL instance. |
| Partially updates a resource containing information about a database inside a Cloud SQL instance. |
| Updates a resource containing information about a database inside a Cloud SQL instance. |
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-05-30 UTC.