Stay organized with collections Save and categorize content based on your preferences.
Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
HTTP requestPOST https://sqladmin.googleapis.com/v1/projects/{project}/instances/{instance}/clone
The URL uses gRPC Transcoding syntax.
Path parameters Parametersproject
string
Project ID of the source as well as the clone Cloud SQL instance.
instance
string
The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
Request bodyThe request body contains an instance of InstancesCloneRequest
.
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.
InstancesCloneRequestDatabase instance clone request.
JSON representation{
"cloneContext": {
object (CloneContext
)
}
}
Fields cloneContext
object (
CloneContext
)
Contains details about the clone operation.
CloneContextDatabase instance clone context.
JSON representation{
"kind": string,
"pitrTimestampMs": string,
"destinationInstanceName": string,
"binLogCoordinates": {
object (BinLogCoordinates
)
},
"pointInTime": string,
"allocatedIpRange": string,
"databaseNames": [
string
]
}
Fields kind
string
This is always sql#cloneContext
.
pitrTimestampMs
string (int64 format)
Reserved for future use.
destinationInstanceName
string
Name of the Cloud SQL instance to be created as a clone.
binLogCoordinates
object (
BinLogCoordinates
)
Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
pointInTime
string (
Timestamp
format)
Timestamp, if specified, identifies the time to which the source instance is cloned.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z"
and "2014-10-02T15:01:23.045123456Z"
.
allocatedIpRange
string
The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.
databaseNames[]
string
(SQL Server only) instances.clone only the specified databases from the source instance. instances.clone all databases if empty.
BinLogCoordinatesBinary log coordinates.
JSON representation{ "binLogFileName": string, "binLogPosition": string, "kind": string }Fields
binLogFileName
string
Name of the binary log file for a Cloud SQL instance.
binLogPosition
string (int64 format)
Position (offset) within the binary log file.
kind
string
This is always sql#binLogCoordinates
.
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