Cloud Spanner API Stay organized with collections Save and categorize content based on your preferences.
Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.
Service: spanner.googleapis.com
The Service namespanner.googleapis.com is needed to create RPC client stubs.
google.longrunning.Operations
| Methods | |
|---|---|
| Starts asynchronous cancellation on a long-running operation. |
| Deletes a long-running operation. |
| Gets the latest state of a long-running operation. |
| Lists operations that match the specified filter in the request. |
| Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. |
google.spanner.adapter.v1.Adapter
| Methods | |
|---|---|
| Handles a single message from the client and returns the result as a stream. |
| Creates a new session to be used for requests made by the adapter. |
google.spanner.admin.database.v1.DatabaseAdmin
| Methods | |
|---|---|
| Adds split points to specified tables and indexes of a database. |
| ChangeQuorum is strictly restricted to databases that use dual-region instance configurations. |
| Starts copying a Cloud Spanner Backup. |
| Starts creating a new Cloud Spanner Backup. |
| Creates a new backup schedule. |
| Creates a new Spanner database and starts to prepare it for serving. |
| Deletes a pending or completedBackup. |
| Deletes a backup schedule. |
| Drops (aka deletes) a Cloud Spanner database. |
| Gets metadata on a pending or completedBackup. |
| Gets backup schedule for the input schedule name. |
| Gets the state of a Cloud Spanner database. |
| Returns the schema of a Cloud Spanner database as a list of formatted DDL statements. |
| Gets the access control policy for a database or backup resource. |
| Lists the backup long-running operations in the given instance. |
| Lists all the backup schedules for the database. |
| Lists completed and pending backups. |
| Lists database longrunning-operations. |
| Lists Cloud Spanner database roles. |
| Lists Cloud Spanner databases. |
| Create a new database by restoring from a completed backup. |
| Sets the access control policy on a database or backup resource. |
| Returns permissions that the caller has on the specified database or backup resource. |
| Updates a pending or completedBackup. |
| Updates a backup schedule. |
| Updates a Cloud Spanner database. |
| Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. |
google.spanner.admin.instance.v1.InstanceAdmin
| Methods | |
|---|---|
| Creates an instance and begins preparing it to begin serving. |
| Creates an instance configuration and begins preparing it to be used. |
| Creates an instance partition and begins preparing it to be used. |
| Deletes an instance. |
| Deletes the instance configuration. |
| Deletes an existing instance partition. |
| Gets the access control policy for an instance resource. |
| Gets information about a particular instance. |
| Gets information about a particular instance configuration. |
| Gets information about a particular instance partition. |
| Lists the user-managed instance configuration long-running operations in the given project. |
| Lists the supported instance configurations for a given project. |
| Lists instance partition long-running operations in the given instance. |
| Lists all instance partitions for the given instance. |
| Lists all instances in the given project. |
| Moves an instance to the target instance configuration. |
| Sets the access control policy on an instance resource. |
| Returns permissions that the caller has on the specified instance resource. |
| Updates an instance, and begins allocating or releasing resources as requested. |
| Updates an instance configuration. |
| Updates an instance partition, and begins allocating or releasing resources as requested. |
google.spanner.v1.Spanner
| Methods | |
|---|---|
| Creates multiple new sessions. |
| Batches the supplied mutation groups in a collection of efficient transactions. |
| Begins a new transaction. |
| Commits a transaction. |
| Creates a new session. |
| Ends a session, releasing server resources associated with it. |
| Executes a batch of SQL DML statements. |
| Executes an SQL statement, returning all results in a single reply. |
| LikeExecuteSql, except returns the result set as a stream. |
| Gets a session. |
| Lists all sessions in a given database. |
| Creates a set of partition tokens that can be used to execute a query operation in parallel. |
| Creates a set of partition tokens that can be used to execute a read operation in parallel. |
| Reads rows from the database using key lookups and scans, as a simple key/value style alternative toExecuteSql. |
| Rolls back a transaction, releasing any locks it holds. |
| LikeRead, except returns the result set as a stream. |
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-09-02 UTC.