databases.changequorumis strictly restricted to databases that use dual-region instance configurations.
Initiates a background operation to change the quorum of a database from dual-region mode to single-region mode or vice versa.
The returned long-running operation has a name of the formatprojects/<project>/instances/<instance>/databases/<database>/operations/<operationId>and can be used to track execution of thedatabases.changequorum. The metadata field type isChangeQuorumMetadata.
Authorization requiresspanner.databases.changequorumpermission on the resource database.
Required. Name of the database in which to applydatabases.changequorum. Values are of the formprojects/<project>/instances/<instance>/databases/<database>.
Authorization requires the followingIAMpermission on the specified resourcename:
spanner.databases.changequorum
Request body
The request body contains data with the following structure:
Optional. The etag is the hash of theQuorumInfo. Thedatabases.changequorumoperation is only performed if the etag matches that of theQuorumInfoin the current database resource. Otherwise the API returns anABORTEDerror.
The etag is used for optimistic concurrency control as a way to help prevent simultaneous change quorum requests that could create a race condition.
Response body
If successful, the response body contains an instance ofOperation.
[[["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."],[],[],null,["# Method: projects.instances.databases.changequorum\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\n`databases.changequorum` is strictly restricted to databases that use dual-region instance configurations.\n\nInitiates a background operation to change the quorum of a database from dual-region mode to single-region mode or vice versa.\n\nThe returned long-running operation has a name of the format `projects/\u003cproject\u003e/instances/\u003cinstance\u003e/databases/\u003cdatabase\u003e/operations/\u003coperationId\u003e` and can be used to track execution of the `databases.changequorum`. The metadata field type is [ChangeQuorumMetadata](/spanner/docs/reference/rest/v1/ChangeQuorumMetadata).\n\nAuthorization requires `spanner.databases.changequorum` permission on the resource database.\n\n### HTTP request\n\nChoose a location: \nglobal europe-west8 me-central2 us-central1 us-central2 us-east1 us-east4 us-east5 us-south1 us-west1 us-west2 us-west3 us-west4 us-west8 us-east7 \n\n\u003cbr /\u003e\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/spanner/docs/reference/rest/v1/projects.instanceConfigs.operations#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/spanner.admin`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]