Secret Manager API (secretmanager:v1)

2026-07-09

4 new methods

Additions

    Methods
  • secretmanager.projects.secrets.enableManagedRotation

      Description : 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.

      Flat Path : v1/projects/{projectsId}/secrets/{secretsId}:enableManagedRotation

      HTTP Method : POST

      Parameter Order : parent

      Path : v1/{+parent}:enableManagedRotation

      Parameters :

        parent

          Type : string

          Required : Yes

          Pattern : ^projects/[^/]+/secrets/[^/]+$

          Location : path

          Description : Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.

      Scopes : https://www.googleapis.com/auth/cloud-platform

  • secretmanager.projects.secrets.rotateSecret

      Description : Do a managed rotation for a Secret. This can only be triggered after Managed rotation has been enabled. This method will add a secret version and update the password in Cloud SQL.

      Flat Path : v1/projects/{projectsId}/secrets/{secretsId}:rotateSecret

      HTTP Method : POST

      Parameter Order : parent

      Path : v1/{+parent}:rotateSecret

      Parameters :

        parent

          Location : path

          Description : Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.

          Type : string

          Pattern : ^projects/[^/]+/secrets/[^/]+$

          Required : Yes

      Scopes : https://www.googleapis.com/auth/cloud-platform

  • secretmanager.projects.locations.secrets.rotateSecret

      Path : v1/{+parent}:rotateSecret

      Parameters :

        parent

          Type : string

          Required : Yes

          Pattern : ^projects/[^/]+/locations/[^/]+/secrets/[^/]+$

          Location : path

          Description : Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.

      Parameter Order : parent

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/secrets/{secretsId}:rotateSecret

      Description : Do a managed rotation for a Secret. This can only be triggered after Managed rotation has been enabled. This method will add a secret version and update the password in Cloud SQL.

      HTTP Method : POST

  • secretmanager.projects.locations.secrets.enableManagedRotation

      Description : 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.

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/secrets/{secretsId}:enableManagedRotation

      HTTP Method : POST

      Parameter Order : parent

      Path : v1/{+parent}:enableManagedRotation

      Parameters :

        parent

          Location : path

          Description : Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.

          Type : string

          Pattern : ^projects/[^/]+/locations/[^/]+/secrets/[^/]+$

          Required : Yes

      Scopes : https://www.googleapis.com/auth/cloud-platform