REST Resource: projects.locations.backupPolicies

Resource: BackupPolicy

Backup Policy.

JSON representation
{
  "name": string,
  "createTime": string,
  "labels": {
    string: string,
    ...
  },
  "state": enum (State),
  "dailyBackupLimit": integer,
  "weeklyBackupLimit": integer,
  "monthlyBackupLimit": integer,
  "description": string,
  "enabled": boolean,
  "assignedVolumeCount": integer
}
Fields
name

string

Identifier. The resource name of the backup policy. Format: projects/{projectId}/locations/{location}/backupPolicies/{backupPolicyId}.

createTime

string (Timestamp format)

Output only. The time when the backup policy was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

labels

map (key: string, value: string)

Resource labels to represent user provided metadata.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

state

enum (State)

Output only. The backup policy state.

dailyBackupLimit

integer

Number of daily backups to keep. Note that the minimum daily backup limit is 2.

weeklyBackupLimit

integer

Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.

monthlyBackupLimit

integer

Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.

description

string

Description of the backup policy.

enabled

boolean

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

integer

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

create

Creates new backup policy

delete

Warning!

get

Returns the description of the specified backup policy by backup_policy_id.

list

Returns list of all available backup policies.

patch

Updates settings of a specific backup policy.