Resource: Backup
A backup of a Cloud Spanner database.
JSON representation |
---|
{ "database": string, "versionTime": string, "expireTime": string, "name": string, "createTime": string, "sizeBytes": string, "state": enum ( |
Fields | |
---|---|
database |
Required for the |
versionTime |
The backup will contain an externally consistent copy of the database at the timestamp specified by A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
expireTime |
Required for the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
name |
Output only for the A globally unique identifier for the backup which cannot be changed. Values are of the form The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the form |
createTime |
Output only. The time the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
sizeBytes |
Output only. Size of the backup in bytes. |
state |
Output only. The current state of the backup. |
referencingDatabases[] |
Output only. The names of the restored databases that reference the backup. The database names are of the form |
encryptionInfo |
Output only. The encryption information for the backup. |
databaseDialect |
Output only. The database dialect information for the backup. |
referencingBackups[] |
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form |
maxExpireTime |
Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: backups.create, backups.patch, backups.copy. When updating or copying an existing backup, the expiration time specified must be less than A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
State
Indicates the current state of the backup.
Enums | |
---|---|
STATE_UNSPECIFIED |
Not specified. |
CREATING |
The pending backup is still being created. Operations on the backup may fail with FAILED_PRECONDITION in this state. |
READY |
The backup is complete and ready for use. |
Methods |
|
---|---|
|
Starts copying a Cloud Spanner Backup. |
|
Starts creating a new Cloud Spanner Backup. |
|
Deletes a pending or completed Backup . |
|
Gets metadata on a pending or completed Backup . |
|
Gets the access control policy for a database or backup resource. |
|
Lists completed and pending backups. |
|
Updates a pending or completed Backup . |
|
Sets the access control policy on a database or backup resource. |
|
Returns permissions that the caller has on the specified database or backup resource. |