Stay organized with collections Save and categorize content based on your preferences.
Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.
HTTP requestPOST https://sqladmin.googleapis.com/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup
The URL uses gRPC Transcoding syntax.
Path parameters Parametersproject
string
Project ID of the project that contains the instance.
instance
string
Cloud SQL instance ID. This does not include the project ID.
Request bodyThe request body contains an instance of InstancesRestoreBackupRequest
.
If successful, the response body contains an instance of Operation
.
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/sqlservice.admin
For more information, see the Authentication Overview.
InstancesRestoreBackupRequestDatabase instance restore backup request.
FieldsrestoreBackupContext
object (
RestoreBackupContext
)
Parameters required to perform the restore backup operation.
backup
string
The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restoreBackupContext, backup, backupdrBackup can be passed to the input.
restoreInstanceSettings
object (
DatabaseInstance
)
Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.
RestoreBackupContextDatabase instance restore from backup context. Backup context contains source instance id and project id.
JSON representation{ "kind": string, "backupRunId": string, "instanceId": string, "project": string }Fields
kind
string
This is always sql#restoreBackupContext
.
backupRunId
string (int64 format)
The ID of the backup run to restore from.
instanceId
string
The ID of the instance that the backup was taken from.
project
string
The full project ID of the source instance.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-30 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4