v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1350180291.1 KB
projects

Starts copying a Cloud Spanner Backup. The returned backup long-running operation will have a name of the format projects//instances//backups//operations/ and can be used to track copying of the backup. The operation is associated with the destination backup. The metadata field type is CopyBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the copying and delete the destination backup. Concurrent CopyBackup requests can run on the same source backup.

post/v1/{+parent}/backups:copy

Path parameters

parentstring required

Required. The name of the destination instance that will contain the backup copy. Values are of the form: projects/{project}/instances/{instance}.

Request body

backupIdstring

Required. The id of the backup copy. The backup_id appended to parent forms the full backup_uri of the form projects/{project}/instances/{instance}/backups/{backup}.

sourceBackupstring

Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: projects/{project}/instances/{instance}/backups/{backup}.

expireTimestring google-datetime

Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the create_time of the source backup. Once the expire_time has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.

Response

Successful response