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

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

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

Rotates the server certificate version to one previously added with the addEntraIdCertificate method.

## Path parameters

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

## Request body

- InstancesRotateEntraIdCertificateRequest — Rotate Entra ID certificate request.
  - `rotateEntraIdCertificateContext` RotateEntraIdCertificateContext — Instance rotate Entra ID certificate context.
    - `kind` string — Optional. This is always `sql#rotateEntraIdCertificateContext`.
    - `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.

## 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)
