Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use instances.rotateServerCa instead.
HTTP request
POST https://sqladmin.googleapis.com/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCertificate
Optional. Contains details about the rotate server CA operation.
RotateServerCertificateContext
Instance rotate server certificate context.
JSON representation
{"kind": string,"nextVersion": string}
Fields
kind
string
Optional. This is always sql#rotateServerCertificateContext.
nextVersion
string
Optional. The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.
[[["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-05-30 UTC."],[],[],null,["# Method: instances.RotateServerCertificate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [InstancesRotateServerCertificateRequest](#InstancesRotateServerCertificateRequest)\n - [JSON representation](#InstancesRotateServerCertificateRequest.SCHEMA_REPRESENTATION)\n- [RotateServerCertificateContext](#RotateServerCertificateContext)\n - [JSON representation](#RotateServerCertificateContext.SCHEMA_REPRESENTATION)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nRotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use instances.rotateServerCa instead.\n\n### HTTP request\n\n`POST https://sqladmin.googleapis.com/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCertificate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [InstancesRotateServerCertificateRequest](/sql/docs/postgres/admin-api/rest/v1beta4/instances/RotateServerCertificate#InstancesRotateServerCertificateRequest).\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/sql/docs/postgres/admin-api/rest/v1beta4/operations#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/sqlservice.admin`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\nInstancesRotateServerCertificateRequest\n---------------------------------------\n\nRotate Server Certificate request.\n\nRotateServerCertificateContext\n------------------------------\n\nInstance rotate server certificate context."]]