REST Resource: Backups Stay organized with collections Save and categorize content based on your preferences.
Resource: Backup
A backup resource.
JSON representation |
---|
{"name":string,"kind":string,"selfLink":string,"type":enum ( |
Fields | |
---|---|
name |
Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}. |
kind |
Output only. This is always |
self |
Output only. The URI of this resource. |
type |
Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or “FINAL”. |
description |
The description of this backup. |
instance |
The name of the source database instance. |
location |
The storage location of the backups. The location can be multi-regional. |
backup |
Output only. This output contains the following values: startTime: All database writes up to this time are available. endTime: Any database writes after this time aren't available. |
state |
Output only. The status of this backup. |
error |
Output only. Information about why the backup operation fails (for example, when the backup state fails). |
kms |
Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption. |
kms |
Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance. |
backup |
Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. |
time |
Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen. |
databaseVersion |
Output only. The database version of the instance of at the time this backup was made. |
instanceDeletionTime |
Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
instanceSettings |
Optional. Output only. The instance setting of the source instance that's associated with this backup. |
backup |
Output only. The mapping to backup run resource used for IAM validations. |
satisfies |
Output only. This status indicates whether the backup satisfies PZS. The status is reserved for future use. |
satisfies |
Output only. This status indicates whether the backup satisfies PZI. The status is reserved for future use. |
Union field
| |
ttl |
Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created. |
expiry |
Backup expiration time. A UTC timestamp of when this backup expired. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
max |
Output only. The maximum chargeable bytes for the backup. |
SqlBackupType
The backup type.
Enums | |
---|---|
SQL_BACKUP_TYPE_UNSPECIFIED | This is an unknown backup type. |
AUTOMATED | The backup schedule triggers a backup automatically. |
ON_DEMAND | The user triggers a backup manually. |
FINAL | The backup created when instance is deleted. |
SqlBackupState
The backup's state
Enums | |
---|---|
SQL_BACKUP_STATE_UNSPECIFIED | The state of the backup is unknown. |
ENQUEUED | The backup that's added to a queue. |
RUNNING | The backup is in progress. |
FAILED | The backup failed. |
SUCCESSFUL | The backup is successful. |
DELETING | The backup is being deleted. |
DELETION_FAILED | Deletion of the backup failed. |
Methods | |
---|---|
| Creates a backup for a Cloud SQL instance. |
| Deletes the backup. |
| Retrieves a resource containing information about a backup. |
| Lists all backups associated with the project. |
| Updates the retention period and description of the backup. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-30 UTC.