- Resource: BackupPlanBinding
- BackupPlanDetails
- State
- BackupConfigDetails
- RetentionPolicyDetails
- Methods
Resource: BackupPlanBinding
A BackupPlanBinding binds a BackupPlan with a BackupChannel. This resource is created automatically when a BackupPlan is created using a BackupChannel. This also serves as a holder for cross-project fields that need to be displayed in the current project.
| JSON representation |
|---|
{
"name": string,
"uid": string,
"createTime": string,
"updateTime": string,
"backupPlan": string,
"cluster": string,
"backupPlanDetails": {
object ( |
| Fields | |
|---|---|
name |
Identifier. The fully qualified name of the BackupPlanBinding. |
uid |
Output only. Server generated global unique identifier of UUID4 |
createTime |
Output only. The timestamp when this binding 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: |
updateTime |
Output only. The timestamp when this binding 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: |
backupPlan |
Output only. Immutable. The fully qualified name of the BackupPlan bound with the parent BackupChannel. |
cluster |
Output only. Immutable. The fully qualified name of the cluster that is being backed up Valid formats:
|
backupPlanDetails |
Output only. Contains details about the backup plan/backup. |
etag |
Output only. |
BackupPlanDetails
Contains metadata about the backup plan/backup.
| JSON representation |
|---|
{ "protectedPodCount": integer, "state": enum ( |
| Fields | |
|---|---|
protectedPodCount |
Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan. |
state |
Output only. State of the BackupPlan. |
lastSuccessfulBackupTime |
Output only. Completion time of the last successful Backup. This is sourced from a successful Backup's completeTime field. 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: |
nextScheduledBackupTime |
Output only. Start time of next scheduled backup under this BackupPlan by either cronSchedule or rpo config. This is sourced from BackupPlan. 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: |
rpoRiskLevel |
Output 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. |
lastSuccessfulBackup |
Output only. The fully qualified name of the last successful Backup created under this BackupPlan. |
backupConfigDetails |
Output only. Contains details about the BackupConfig of Backups created via this BackupPlan. |
retentionPolicyDetails |
Output only. Contains details about the RetentionPolicy of Backups created via this BackupPlan. |
State
State
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Default first value for Enums. |
CLUSTER_PENDING |
Waiting for cluster state to be RUNNING. |
PROVISIONING |
The BackupPlan is in the process of being created. |
READY |
The BackupPlan has successfully been created and is ready for Backups. |
FAILED |
BackupPlan creation has failed. |
DEACTIVATED |
The BackupPlan has been deactivated. |
DELETING |
The BackupPlan is in the process of being deleted. |
BackupConfigDetails
BackupConfigDetails defines the configuration of Backups created via this BackupPlan.
| JSON representation |
|---|
{ "includeVolumeData": boolean, "includeSecrets": boolean, "encryptionKey": { object ( |
| Fields | |
|---|---|
includeVolumeData |
Output only. This flag specifies whether volume data should be backed up when PVCs are included in the scope of a Backup. Default: False |
includeSecrets |
Output only. This flag specifies whether Kubernetes Secret resources should be included when they fall into the scope of Backups. Default: False |
encryptionKey |
Output only. This defines a customer managed encryption key that will be used to encrypt the "config" portion (the Kubernetes resources) of Backups created via this plan. Default (empty): Config backup artifacts will not be encrypted. |
Union field backup_scope. This defines the "scope" of the Backup - which namespaced resources in the cluster will be included in a Backup. Exactly one of the fields of backup_scope MUST be specified. backup_scope can be only one of the following: |
|
allNamespaces |
Output only. If True, include all namespaced resources |
selectedNamespaces |
Output only. If set, include just the resources in the listed namespaces. |
selectedApplications |
Output only. If set, include just the resources referenced by the listed ProtectedApplications. |
RetentionPolicyDetails
RetentionPolicyDetails defines a Backup retention policy for a BackupPlan.
| JSON representation |
|---|
{ "backupDeleteLockDays": integer, "backupRetainDays": integer } |
| Fields | |
|---|---|
backupDeleteLockDays |
Optional. Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (createTime + backupDeleteLockDays). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value. Default: 0 (no delete blocking) |
backupRetainDays |
Optional. The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value >= 0 and <= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (createTime + backupRetainDays). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Default: 0 (no automatic deletion) |
Methods |
|
|---|---|
|
Retrieve the details of a single BackupPlanBinding. |
|
Lists BackupPlanBindings in a given location. |