Method: instances.clone

Creates a Cloud SQL instance as a clone of the source instance.

HTTP request

POST https://www.googleapis.com/sql/v1beta4/projects/{project}/instances/{instance}/clone

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

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 body

The request body contains an instance of InstancesCloneRequest.

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/cloud-platform
  • https://www.googleapis.com/auth/sqlservice.admin

For more information, see the Authentication Overview.

InstancesCloneRequest

Database instance clone request.

JSON representation
{
  "cloneContext": {
    object (CloneContext)
  }
}
Fields
cloneContext

object (CloneContext)

Contains details about the clone operation.

CloneContext

Database instance clone context.

JSON representation
{
  "kind": string,
  "pitrTimestampMs": string,
  "destinationInstanceName": string,
  "binLogCoordinates": {
    object (BinLogCoordinates)
  }
}
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 should be cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.

BinLogCoordinates

Binary 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

.

このページは役立ちましたか?評価をお願いいたします。

フィードバックを送信...

ご不明な点がありましたら、Google のサポートページをご覧ください。