This page provides links to convenient ways to access the Google Cloud SQL Admin API.
Google Cloud SQL Admin API samples
Select the language you're using for development. If a library's samples page does not yet include a sample for this API, you can still use that library; you may be able to adapt another API's samples as needed.
.NET
There are no .NET samples specifically for this version of the Google Cloud SQL Admin API.
However, you may be able to adapt one of the .NET samples for other APIs .
Go
There are no Go samples specifically for this version of the Google Cloud SQL Admin API.
However, you may be able to adapt one of the Go samples for other APIs .
Java
There are no java samples specifically for this version of the Google Cloud SQL Admin API.
However, you may be able to adapt one of the Java samples for other APIs .
JavaScript
There are no JavaScript samples specifically for this version of the Google Cloud SQL Admin API.
However, you may be able to adapt one of the JavaScript samples for other APIs .
Objective-C
There are no Objective-C samples specifically for this version of the Google Cloud SQL Admin API.
However, you may be able to adapt one of the Objective-C samples for other APIs .
PHP
There are no PHP samples specifically for this version of the Google Cloud SQL Admin API.
However, you may be able to adapt one of the PHP samples for other APIs .
Python
There are no Python samples specifically for this version of the Google Cloud SQL Admin API.
However, you may be able to adapt one of the Python samples for other APIs .
Ruby
There are no Ruby samples specifically for this version of the Google Cloud SQL Admin API.
However, you may be able to adapt one of the Ruby samples for other APIs .
Google Cloud SQL Admin API client libraries
The Google Cloud SQL Admin API is built on HTTP and JSON, so any standard HTTP client can send requests to it and parse the responses.
However, instead of creating HTTP requests and parsing responses manually, you may want to use the Google APIs client libraries. The client libraries provide better language integration, improved security, and support for making calls that require user authorization.
Go
Get the latest Google Cloud SQL Admin API client library for Go (alpha) .
Read the client library's developer's guide .
Java
This page contains information about getting started with the Cloud SQL Administration API using the Google APIs Client Library for Java. In addition, you may be interested in the following documentation:
Select your build environment (Maven or Gradle) from the following tabs, or download a zip file containing all of the jars you need:
Download the Cloud SQL Administration API v1beta1 Client Library for Java
.
See the
The
Add the following to your
See
all versions available on the Maven Central Repository
.
Add the following to your
See
all versions available on the Maven Central Repository
.
Add Library to Your Project
sqladmin/readme.html
file for details on:
libs
folder contains all the of the globally-applicable dependencies you might need across all application types.
pom.xml
file:
build.gradle
file:
JavaScript
Read the client library's developer's guide .
.NET
This page contains information about getting started with the Cloud SQL Administration API using the Google APIs Client Library for .NET. In addition, you may be interested in the following documentation:
Install a NuGet package from those available at
Google.Apis.sqladmin
.
Downloading the library
Node.js
Get the latest Google Cloud SQL Admin API client library for Node.js .
Read the client library's developer's guide .
Objective-C
Get the latest Google Cloud SQL Admin API client library for Objective-C .
Read the client library's developer's guide .
PHP
Get the latest Google Cloud SQL Admin API client library for PHP (beta) .
Read the client library's developer's guide .
Python
This page contains information about getting started with the Cloud SQL Administration API using the Google APIs Client Library for Python. In addition, you may be interested in the following documentation:
Note
: This library is pure Python, so other operating systems with Python support may work as well.
To install the library and all of its dependencies,
open a terminal and do one of the following:
Depending on your system, you may need to prepend those commands with
Because
Google App Engine
requires that all of the source files for a library must be present in your App
Engine project, there is a special installation procedure for App Engine. To
install the library and all of its dependencies in an App Engine project,
download the file named
System requirements
Manual Installation
easy_install
tool included in the setuptools package:
$ easy_install --upgrade google-api-python-client
$ pip install --upgrade google-api-python-client
sudo
.
App Engine
google-api-python-client-gae-
N.M
.zip
from the
list
of downloads
, where
N.M
is the version number of the latest release. Unzip
that file into your project. For example:
$ cd myproject
$ unzip google-api-python-client-gae-1.1.zip
Ruby
This page contains information about getting started with the Cloud SQL Administration API using the Google APIs Client Library for Ruby. In addition, you may be interested in the following documentation:
If you haven't installed the Google APIs Client Library for Ruby before, open a terminal and install using
Installing the google-api-client gem
RubyGems
:
$ gem install google-api-client
If you already have the gem installed and would simply like to update to the latest version:
$ gem update -y google-api-client
Depending on your system, you may need to prepend these commands with
sudo
.
Getting started with the Google APIs Client Library for Ruby
Be sure to check our extensive Getting started guide for a quick overview of how to make your first request.
Other ways to access the Google Cloud SQL Admin API
The table below lists some other convenient ways to access the Google Cloud SQL Admin API.
Access method | Description |
---|---|
APIs Explorer | An interactive tool that lets you easily try out Google APIs right from your browser. |
Google Plugin for Eclipse | A plugin that makes it easier to use Google APIs in Eclipse. |