- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- PointInTimeRestoreContext
- Examples
- Try it!
Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.
HTTP request
POST https://sqladmin.googleapis.com/sql/v1beta4/{parent=projects/*}:pointInTimeRestore
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource where you created this instance. Format: projects/{project} |
Request body
The request body contains an instance of PointInTimeRestoreContext.
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-platformhttps://www.googleapis.com/auth/sqlservice.admin
For more information, see the Authentication Overview.
PointInTimeRestoreContext
Context to perform a point-in-time restore of an instance managed by Backup and Disaster Recovery (DR) Service.
| JSON representation |
|---|
{ "pointInTime": string, "datasource": string, "targetInstance": string, "privateNetwork": string, "allocatedIpRange": string, "preferredZone": string, "preferredSecondaryZone": string } |
| Fields | |
|---|---|
pointInTime |
Required. The date and time to which you want to restore the instance. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
datasource |
The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}. |
targetInstance |
Target instance name. |
privateNetwork |
Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, |
allocatedIpRange |
Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with RFC 1035 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use. |
preferredZone |
Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance. |
preferredSecondaryZone |
Optional. Point-in-time recovery of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferredZone field. |