Required. The resource name of the instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}.
Request body
The request body contains data with the following structure:
JSON representation
{"peerInstance": string}
Fields
peerInstance
string
Optional. The resource name of the peer instance to promote, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}. The peer instance is required if the operation is called on an active instance.
Response body
If successful, the response body contains an instance of Operation.
[[["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-17 UTC."],[[["\u003cp\u003eThis page details how to promote a standby instance (replica) using a POST HTTP request to a specific URL endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL requires a path parameter named \u003ccode\u003ename\u003c/code\u003e, specifying the instance's resource path in the format \u003ccode\u003eprojects/{projectId}/locations/{locationId}/instances/{instanceId}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe body of the request to promote the replica must be empty, and it does not accept any inputs.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, the API will return an instance of \u003ccode\u003eOperation\u003c/code\u003e in the response body.\u003c/p\u003e\n"],["\u003cp\u003eTo successfully authorize this request, you must use the OAuth scope: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]