---
title: "POST /v1/projects/{project}/instances/{instance}/rotateServerCa"
method: POST
path: "/v1/projects/{project}/instances/{instance}/rotateServerCa"
tags: ["instances"]
---

# POST /v1/projects/{project}/instances/{instance}/rotateServerCa

`POST /v1/projects/{project}/instances/{instance}/rotateServerCa`

Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.

## Path parameters

- `project` string, required
- `instance` string, required

## Request body

- InstancesRotateServerCaRequest — Rotate server CA request.
  - `rotateServerCaContext` RotateServerCaContext — Instance rotate server CA context.
    - `kind` string — This is always `sql#rotateServerCaContext`.
    - `nextVersion` string — The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/sqladmin.md) · [All operations](https://skmtc.net/google/apis/sqladmin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/sqladmin/versions/e9eef8a2afcd/schema)
