Stay organized with collections Save and categorize content based on your preferences.
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:
reconciling
field is set to true.cancelTime
is set, the updates are reverted, and the operation terminates with a CANCELLED
status.FAILED_PRECONDITION
error until the pending operation is done (returns successfully or with error).Upon completion of the returned operation:
reconciling
field becomes false.The returned long-running operation will have a name of the format projects/<project>/instances/<instance>/databases/<database>/operations/<operationId>
and can be used to track the database modification. The metadata field type is UpdateDatabaseMetadata
. The response field type is Database
, if successful.
Choose a location:
The URLs use gRPC Transcoding syntax.
Path parameters Parametersdatabase.name
string
Required. The name of the database. Values are of the form projects/<project>/instances/<instance>/databases/<database>
, where <database>
is as specified in the CREATE DATABASE
statement. This name can be passed to other API methods to identify the database.
updateMask
string (
FieldMask
format)
Required. The list of fields to update. Currently, only enableDropProtection
field can be updated.
This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo"
.
The request body contains an instance of Database
.
If successful, the response body contains an instance of Operation
.
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/spanner.admin
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-18 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4