- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- InstancesReencryptRequest
- BackupReencryptionConfig
- BackupType
- Examples
- Try it!
SQL Server, private server access, HDD, data cache, legacy HA, serverless exports, multi-region backups, cross-region replicas are not supported.
instances.reencrypt CMEK instance with latest key version.
HTTP request
POST https://sqladmin.s3nsapis.fr/v1/projects/{project}/instances/{instance}/reencrypt
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
ID of the project that contains the instance. |
instance |
Cloud SQL instance ID. This does not include the project ID. |
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/sqlservice.admin
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
InstancesReencryptRequest
Database Instance reencrypt request.
JSON representation |
---|
{
"backupReencryptionConfig": {
object ( |
Fields | |
---|---|
backupReencryptionConfig |
Configuration specific to backup re-encryption |
BackupReencryptionConfig
Backup Reencryption Config
JSON representation |
---|
{
"backupLimit": integer,
"backupType": enum ( |
Fields | |
---|---|
backupLimit |
Backup re-encryption limit |
backupType |
Type of backups users want to re-encrypt. |
BackupType
Backup type for re-encryption
Enums | |
---|---|
BACKUP_TYPE_UNSPECIFIED |
Unknown backup type, will be defaulted to AUTOMATIC backup type |
AUTOMATED |
instances.reencrypt automatic backups |
ON_DEMAND |
instances.reencrypt on-demand backups |