Method: projects.locations.clusters.restoreFromCloudSQL

Restores an AlloyDB cluster from a CloudSQL resource.

HTTP request

POST https://alloydb.googleapis.com/v1beta/{parent=projects/*/locations/*}/clusters:restoreFromCloudSQL

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The location of the new cluster. For the required format, see the comment on Cluster.name field.

Authorization requires the following IAM permission on the specified resource parent:

  • alloydb.clusters.create

Request body

The request body contains data with the following structure:

JSON representation
{
  "clusterId": string,
  "cluster": {
    object (Cluster)
  },

  // Union field source can be only one of the following:
  "cloudsqlBackupRunSource": {
    object (CloudSQLBackupRunSource)
  }
  // End of list of possible types for union field source.
}
Fields
clusterId

string

Required. ID of the requesting object.

cluster

object (Cluster)

Required. The resource being created

Union field source. The source CloudSQL resource to restore from. source can be only one of the following:
cloudsqlBackupRunSource

object (CloudSQLBackupRunSource)

Cluster created from CloudSQL backup run.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.