A Backup Plan in Google Cloud is a configuration that defines how backups are created, scheduled, and retained for resources such as persistent disks or file systems. It specifies policies for backup frequency, retention duration, and lifecycle management, ensuring data protection and recovery options in case of failures or data loss.

gcp.gkebackup_backup_plan

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
backup_configcorejsonOptional. Defines the configuration of Backups created via this BackupPlan.
backup_schedulecorejsonOptional. Defines a schedule for automatic Backup creation via this BackupPlan.
clustercorestringRequired. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
create_timecoretimestampOutput only. The timestamp when this BackupPlan resource was created.
datadog_display_namecorestring
deactivatedcoreboolOptional. This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False
descriptioncorestringOptional. User specified descriptive string for this BackupPlan.
etagcorestringOutput only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform BackupPlan updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupPlan`, and systems are expected to put that etag in the request to `UpdateBackupPlan` or `DeleteBackupPlan` to ensure that their change will be applied to the same version of the resource.
labelscorearray<string>Optional. A set of custom labels supplied by user.
last_successful_backup_timecoretimestampOutput only. Completion time of the last successful Backup. This is sourced from a successful Backup's complete_time field. This field is added to maintain consistency with BackupPlanBinding to display last successful backup time.
namecorestringOutput only. The full name of the BackupPlan resource. Format: `projects/*/locations/*/backupPlans/*`
organization_idcorestring
parentcorestring
project_idcorestring
project_numbercorestring
protected_pod_countcoreint64Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
resource_namecorestring
retention_policycorejsonOptional. RetentionPolicy governs lifecycle of Backups created under this plan.
rpo_risk_levelcoreint64Output only. A number that represents the current risk level of this BackupPlan from RPO perspective with 1 being no risk and 5 being highest risk.
rpo_risk_reasoncorestringOutput only. Human-readable description of why the BackupPlan is in the current rpo_risk_level and action items if any.
statecorestringOutput only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to "DEACTIVATED" if the BackupPlan is deactivated on an Update
state_reasoncorestringOutput only. Human-readable description of why BackupPlan is in the current `state`. This field is only meant for human readability and should not be used programmatically as this field is not guaranteed to be consistent.
tagscorehstore
uidcorestringOutput only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
update_timecoretimestampOutput only. The timestamp when this BackupPlan resource was last updated.