Resource: Backup
Represents a request to perform a single point-in-time capture of some portion of the state of a GKE cluster, the record of the backup operation itself, and an anchor for the underlying artifacts that comprise the Backup (the config backup and VolumeBackups).
JSON representation |
---|
{ "name": string, "uid": string, "createTime": string, "updateTime": string, "manual": boolean, "labels": { string: string, ... }, "deleteLockDays": integer, "deleteLockExpireTime": string, "retainDays": integer, "retainExpireTime": string, "encryptionKey": { object ( |
Fields | |
---|---|
name |
Output only. The fully qualified name of the Backup. |
uid |
Output only. Server generated global unique identifier of UUID4 |
createTime |
Output only. The timestamp when this Backup resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The timestamp when this Backup resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
manual |
Output only. This flag indicates whether this Backup resource was created manually by a user or via a schedule in the BackupPlan. A value of True means that the Backup was created manually. |
labels |
Optional. A set of custom labels supplied by user. An object containing a list of |
deleteLockDays |
Optional. Minimum age for this Backup (in days). If this field is set to a non-zero value, the Backup will be "locked" against deletion (either manual or automatic deletion) for the number of days provided (measured from the creation time of the Backup). MUST be an integer value between 0-90 (inclusive). Defaults to parent BackupPlan's |
deleteLockExpireTime |
Output only. The time at which an existing delete lock will expire for this backup (calculated from createTime + A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
retainDays |
Optional. The age (in days) after which this Backup will be automatically deleted. Must be an integer value >= 0:
Once a Backup is created, this value may only be increased. Defaults to the parent BackupPlan's |
retainExpireTime |
Output only. The time at which this Backup will be automatically deleted (calculated from createTime + A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
encryptionKey |
Output only. The customer managed encryption key that was used to encrypt the Backup's artifacts. Inherited from the parent BackupPlan's |
containsVolumeData |
Output only. Whether or not the Backup contains volume data. Controlled by the parent BackupPlan's |
containsSecrets |
Output only. Whether or not the Backup contains Kubernetes Secrets. Controlled by the parent BackupPlan's |
clusterMetadata |
Output only. Information about the GKE cluster from which this Backup was created. |
state |
Output only. Current state of the Backup |
stateReason |
Output only. Human-readable description of why the backup is in the current |
completeTime |
Output only. Completion time of the Backup A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
resourceCount |
Output only. The total number of Kubernetes resources included in the Backup. |
volumeCount |
Output only. The total number of volume backups contained in the Backup. |
sizeBytes |
Output only. The total size of the Backup in bytes = config backup size + sum(volume backup sizes) |
etag |
Output only. |
description |
Optional. User specified descriptive string for this Backup. |
podCount |
Output only. The total number of Kubernetes Pods contained in the Backup. |
configBackupSizeBytes |
Output only. The size of the config backup in bytes. |
permissiveMode |
Output only. If false, Backup will fail when Backup for GKE detects Kubernetes configuration that is non-standard or requires additional setup to restore. Inherited from the parent BackupPlan's |
Union field backup_scope . Defines the "scope" of the Backup - which namespaced resources in the cluster were included in the Backup. Inherited from the parent BackupPlan's [backup_scope][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.backup_scope] value. backup_scope can be only one of the following: |
|
allNamespaces |
Output only. If True, all namespaces were included in the Backup. |
selectedNamespaces |
Output only. If set, the list of namespaces that were included in the Backup. |
selectedApplications |
Output only. If set, the list of ProtectedApplications whose resources were included in the Backup. |
ClusterMetadata
Information about the GKE cluster from which this Backup was created.
JSON representation |
---|
{ "cluster": string, "k8sVersion": string, "backupCrdVersions": { string: string, ... }, // Union field |
Fields | |
---|---|
cluster |
Output only. The source cluster from which this Backup was created. Valid formats:
This is inherited from the parent BackupPlan's |
k8sVersion |
Output only. The Kubernetes server version of the source cluster. |
backupCrdVersions |
Output only. A list of the Backup for GKE CRD versions found in the cluster. An object containing a list of |
Union field platform_version . Platform-specific version platform_version can be only one of the following: |
|
gkeVersion |
Output only. GKE version |
anthosVersion |
Output only. Anthos version |
State
State
Enums | |
---|---|
STATE_UNSPECIFIED |
The Backup resource is in the process of being created. |
CREATING |
The Backup resource has been created and the associated BackupJob Kubernetes resource has been injected into the source cluster. |
IN_PROGRESS |
The gkebackup agent in the cluster has begun executing the backup operation. |
SUCCEEDED |
The backup operation has completed successfully. |
FAILED |
The backup operation has failed. |
DELETING |
This Backup resource (and its associated artifacts) is in the process of being deleted. |
Methods |
|
---|---|
|
Creates a Backup for the given BackupPlan. |
|
Deletes an existing Backup. |
|
Retrieve the details of a single Backup. |
|
Retrieve the link to the backupIndex. |
|
Gets the access control policy for a resource. |
|
Lists the Backups for a given BackupPlan. |
|
Update a Backup. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |