Resource: BackupPolicy
Backup Policy.
JSON representation |
---|
{
"name"
:
string
,
"createTime"
:
string
,
"labels"
:
{
string
:
string
,
...
}
,
"state"
:
enum (
|
Fields | |
---|---|
name
|
Identifier. The resource name of the backup policy. Format: |
createTime
|
Output only. The time when the backup policy was created. 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: |
labels
|
Resource labels to represent user provided metadata. An object containing a list of |
state
|
Output only. The backup policy state. |
dailyBackupLimit
|
Number of daily backups to keep. Note that the minimum daily backup limit is 2. |
weeklyBackupLimit
|
Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1. |
monthlyBackupLimit
|
Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1. |
description
|
Description of the backup policy. |
enabled
|
If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true. |
assignedVolumeCount
|
Output only. The total number of volumes assigned by this backup policy. |
State
Enums | |
---|---|
STATE_UNSPECIFIED
|
State not set. |
CREATING
|
BackupPolicy is being created. |
READY
|
BackupPolicy is available for use. |
DELETING
|
BackupPolicy is being deleted. |
ERROR
|
BackupPolicy is not valid and cannot be used. |
UPDATING
|
BackupPolicy is being updated. |
Methods |
|
---|---|
|
Creates new backup policy |
|
Warning! |
|
Returns the description of the specified backup policy by backup_policy_id. |
|
Returns list of all available backup policies. |
|
Updates settings of a specific backup policy. |