---
title: "POST /v1/{+parent}:enableManagedRotation"
method: POST
path: "/v1/{+parent}:enableManagedRotation"
tags: ["projects"]
---

# POST /v1/{+parent}:enableManagedRotation

`POST /v1/{+parent}:enableManagedRotation`

Enables the managed rotation feature for a Secret. This method can only be triggered once for a secret. In order to do further rotations, RotateSecret should be used. This method will add a secret version and update the password in Cloud SQL.

## Path parameters

- `parent` string, required

## Request body

- EnableManagedRotationRequest — Request message for SecretManagerService.EnableManagedRotation.
  - `cloudSqlSingleUserCredentials` CloudSQLSingleUserCredentials — These are the credentials required for Cloud SQL DB for Single user Managed Rotation.
    - `password` string — Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated.
    - `instanceId` string — Required. Instance ID of the Cloud SQL instance.
    - `username` string — Required. Username of the Cloud SQL instance.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/secretmanager.md) · [All operations](https://skmtc.dev/google/apis/secretmanager/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/secretmanager/revisions/7d97d4a1afab/schema)
