v1

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

Creates new backup policy

post/v1/{+parent}/backupPolicies

Path parameters

parentstring required

Required. The location to create the backup policies of, in the format projects/{project_id}/locations/{location}

Query parameters

backupPolicyIdstring

Required. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

Request body

dailyBackupLimitinteger

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

monthlyBackupLimitinteger

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

assignedVolumeCountinteger

Output only. The total number of volumes assigned by this backup policy.

createTimestring google-datetime

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

labelsobject

Resource labels to represent user provided metadata.

enabledboolean

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.

descriptionstring

Description of the backup policy.

state'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'DELETING' | 'ERROR' | 'UPDATING'

Output only. The backup policy state.

weeklyBackupLimitinteger

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

namestring

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

Response

Successful response