Method: instances.reencrypt

instances.reencrypt CMEK instance with latest key version.

HTTP request

POST https://sqladmin.googleapis.com/sql/v1beta4/projects/{project}/instances/{instance}/reencrypt

The URL uses gRPC Transcoding syntax.

Path parameters

Request body

The request body contains an instance of InstancesReencryptRequest.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloudsql
  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/sqlservice.admin

For more information, see the Authentication Overview.

InstancesReencryptRequest

Database Instance reencrypt request.

JSON representation
{
  "backupReencryptionConfig": {
    object (BackupReencryptionConfig)
  }
}
Fields
backupReencryptionConfig

object (BackupReencryptionConfig)

Configuration specific to backup re-encryption

BackupReencryptionConfig

Backup Reencryption Config

JSON representation
{
  "backupLimit": integer,
  "backupType": enum (BackupType)
}
Fields
backupLimit

integer

Backup re-encryption limit

backupType

enum (BackupType)

Type of backups users want to re-encrypt.

BackupType

Backup type for re-encryption