projects_instances_databases_get | SELECT | databasesId, instancesId, projectsId | Gets the state of a Cloud Spanner database. |
projects_instances_databases_list | SELECT | instancesId, projectsId | Lists Cloud Spanner databases. |
projects_instances_databases_create | INSERT | instancesId, projectsId | Creates a new Cloud Spanner database and starts to prepare it for serving. The returned long-running operation will have a name of the format /operations/ and can be used to track preparation of the database. The metadata field type is CreateDatabaseMetadata. The response field type is Database, if successful. |
_projects_instances_databases_list | EXEC | instancesId, projectsId | Lists Cloud Spanner databases. |
projects_instances_databases_drop_database | EXEC | databasesId, instancesId, projectsId | Drops (aka deletes) a Cloud Spanner database. Completed backups for the database will be retained according to their expire_time . Note: Cloud Spanner might continue to accept requests for a few seconds after the database has been deleted. |
projects_instances_databases_patch | EXEC | databasesId, instancesId, projectsId | Updates a Cloud Spanner database. The returned long-running operation can be used to track the progress of updating the database. If the named database does not exist, returns NOT_FOUND . While the operation is pending: The database's reconciling field is set to true. Cancelling the operation is best-effort. If the cancellation succeeds, the operation metadata's cancel_time is set, the updates are reverted, and the operation terminates with a CANCELLED status. New UpdateDatabase requests will return a FAILED_PRECONDITION error until the pending operation is done (returns successfully or with error). Reading the database via the API continues to give the pre-request values. Upon completion of the returned operation: The new values are in effect and readable via the API. The database's reconciling field becomes false. The returned long-running operation will have a name of the format projects//instances//databases//operations/ and can be used to track the database modification. The metadata field type is UpdateDatabaseMetadata. The response field type is Database, if successful. |
projects_instances_databases_restore | EXEC | instancesId, projectsId | Create a new database by restoring from a completed backup. The new database must be in the same project and in an instance with the same instance configuration as the instance containing the backup. The returned database long-running operation has a name of the format projects//instances//databases//operations/ , and can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreDatabaseMetadata. The response type is Database, if successful. Cancelling the returned operation will stop the restore and delete the database. There can be only one database being restored into an instance at a time. Once the restore operation completes, a new restore operation can be initiated, without waiting for the optimize operation associated with the first restore to complete. |