Resource: Restore
Represents both a request to Restore some portion of a Backup into a target GKE cluster and a record of the restore operation itself.
JSON representation |
---|
{ "name": string, "uid": string, "createTime": string, "updateTime": string, "description": string, "backup": string, "cluster": string, "restoreConfig": { object ( |
Fields | |
---|---|
name |
Output only. The full name of the Restore resource. Format: |
uid |
Output only. Server generated global unique identifier of UUID format. |
createTime |
Output only. The timestamp when this Restore 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 Restore resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
description |
User specified descriptive string for this Restore. |
backup |
Required. Immutable. A reference to the |
cluster |
Output only. The target cluster into which this Restore will restore data. Valid formats:
Inherited from parent RestorePlan's |
restoreConfig |
Output only. Configuration of the Restore. Inherited from parent RestorePlan's |
labels |
A set of custom labels supplied by user. An object containing a list of |
state |
Output only. The current state of the Restore. |
stateReason |
Output only. Human-readable description of why the Restore is in its current state. |
completeTime |
Output only. Timestamp of when the restore operation completed. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
resourcesRestoredCount |
Output only. Number of resources restored during the restore execution. |
resourcesExcludedCount |
Output only. Number of resources excluded during the restore execution. |
resourcesFailedCount |
Output only. Number of resources that failed to be restored during the restore execution. |
volumesRestoredCount |
Output only. Number of volumes restored during the restore execution. |
etag |
Output only. |
filter |
Optional. Immutable. Filters resources for |
volumeDataRestorePolicyOverrides[] |
Optional. Immutable. Overrides the volume data restore policies selected in the Restore Config for override-scoped resources. |
State
Possible values for state of the Restore.
Enums | |
---|---|
STATE_UNSPECIFIED |
The Restore resource is in the process of being created. |
CREATING |
The Restore resource has been created and the associated RestoreJob Kubernetes resource has been injected into target cluster. |
IN_PROGRESS |
The gkebackup agent in the cluster has begun executing the restore operation. |
SUCCEEDED |
The restore operation has completed successfully. Restored workloads may not yet be operational. |
FAILED |
The restore operation has failed. |
DELETING |
This Restore resource is in the process of being deleted. |
Filter
Defines the filter for Restore
. This filter can be used to further refine the resource selection of the Restore
beyond the coarse-grained scope defined in the RestorePlan
. exclusionFilters
take precedence over inclusionFilters
. If a resource matches both inclusionFilters
and exclusionFilters
, it will not be restored.
JSON representation |
---|
{ "inclusionFilters": [ { object ( |
Fields | |
---|---|
inclusionFilters[] |
Optional. Selects resources for restoration. If specified, only resources which match |
exclusionFilters[] |
Optional. Excludes resources from restoration. If specified, a resource will not be restored if it matches any |
ResourceSelector
Defines a selector to identify a single or a group of resources. Conditions in the selector are optional, but at least one field should be set to a non-empty value. If a condition is not specified, no restrictions will be applied on that dimension. If more than one condition is specified, a resource will be selected if and only if all conditions are met.
JSON representation |
---|
{
"groupKind": {
object ( |
Fields | |
---|---|
groupKind |
Optional. Selects resources using their Kubernetes GroupKinds. If specified, only resources of provided GroupKind will be selected. |
name |
Optional. Selects resources using their resource names. If specified, only resources with the provided name will be selected. |
namespace |
Optional. Selects resources using their namespaces. This only applies to namespace scoped resources and cannot be used for selecting cluster scoped resources. If specified, only resources in the provided namespace will be selected. If not specified, the filter will apply to both cluster scoped and namespace scoped resources (e.g. name or label). The Namespace resource itself will be restored if and only if any resources within the namespace are restored. |
labels |
Optional. Selects resources using Kubernetes labels. If specified, a resource will be selected if and only if the resource has all of the provided labels and all the label values match. An object containing a list of |
VolumeDataRestorePolicyOverride
Defines an override to apply a VolumeDataRestorePolicy for scoped resources.
JSON representation |
---|
{ "policy": enum ( |
Fields | |
---|---|
policy |
Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope. |
Union field
|
|
selectedPvcs |
A list of PVCs to apply the policy override to. |
Methods |
|
---|---|
|
Creates a new Restore for the given RestorePlan. |
|
Deletes an existing Restore. |
|
Retrieves the details of a single Restore. |
|
Gets the access control policy for a resource. |
|
Lists the Restores for a given RestorePlan. |
|
Update a Restore. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |