Google Cloud SQL

API Reference

Google Cloud SQL provides a REST API for administering your instances programmatically.

Resource types

  1. BackupRuns
  2. Instances
  3. Operations
  4. Tiers

BackupRuns

For BackupRuns Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/sql/v1beta1, unless otherwise noted
get GET  /projects/project/instances/instance/backupRuns/backupConfiguration Retrieves a resource containing information about a backup run.
list GET  /projects/project/instances/instance/backupRuns Lists all backup runs associated with a given instance and configuration in the reverse chronological order of the enqueued time.

Instances

For Instances Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/sql/v1beta1, unless otherwise noted
delete DELETE  /projects/project/instances/instance Deletes a Cloud SQL instance.
export POST  /projects/project/instances/instance/export Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a MySQL dump file.
get GET  /projects/project/instances/instance Retrieves a resource containing information about a Cloud SQL instance.
import POST  /projects/project/instances/instance/import Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud Storage.
insert POST  /projects/project/instances Creates a new Cloud SQL instance.
list GET  /projects/project/instances Lists instances under a given project in the alphabetical order of the instance name.
patch PATCH  /projects/project/instances/instance Updates settings of a Cloud SQL instance. This method supports patch semantics.
restart POST  /projects/project/instances/instance/restart Restarts a Cloud SQL instance.
restoreBackup POST  /projects/project/instances/instance/restoreBackup Restores a backup of a Cloud SQL instance.
update PUT  /projects/project/instances/instance Updates settings of a Cloud SQL instance.

Operations

For Operations Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/sql/v1beta1, unless otherwise noted
get GET  /projects/project/instances/instance/operations/operation Retrieves an instance operation that has been performed on an instance.
list GET  /projects/project/instances/instance/operations Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.

Tiers

For Tiers Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/sql/v1beta1, unless otherwise noted
list GET  /tiers Lists all available service tiers for Google Cloud SQL, for example D1, D2. For related information, see Pricing.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.