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 |
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
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "clusterId": string, "cluster": { object ( |
Fields | |
---|---|
cluster |
Required. ID of the requesting 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: |
|
cloudsql |
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.