gcloud backup-dr restore-templates update

NAME
gcloud backup-dr restore-templates update - update a Restore Template
SYNOPSIS
gcloud backup-dr restore-templates update (RESTORE_TEMPLATE : --location=LOCATION) [--async] [--description=DESCRIPTION] [--restore-properties=RESTORE_PROPERTIES] [--update-labels=[KEY=VALUE,…]] [--clear-labels     | --remove-labels=[KEY,…]] [--post-restore-cloud-run-job=POST_RESTORE_CLOUD_RUN_JOB --post-restore-timeout=POST_RESTORE_TIMEOUT] [--pre-restore-cloud-run-job=PRE_RESTORE_CLOUD_RUN_JOB --pre-restore-timeout=PRE_RESTORE_TIMEOUT] [--verification-cloud-run-job=VERIFICATION_CLOUD_RUN_JOB --verification-timeout=VERIFICATION_TIMEOUT] [GCLOUD_WIDE_FLAG …]
DESCRIPTION
Update a Restore Template.
EXAMPLES
To update a restore template my-template with a new description, run:
gcloud backup-dr restore-templates update my-template --location=us-central1 --description="Updated template"

To update the restore properties of a restore template my-template from a file, run:

gcloud backup-dr restore-templates update my-template --location=us-central1 --restore-properties=path/to/restore_properties.json
POSITIONAL ARGUMENTS
Restore Template resource - to update The arguments in this group can be used to specify the attributes of this resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.

To set the project attribute:

  • provide the argument restore_template on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.

This must be specified.

RESTORE_TEMPLATE
ID of the Restore Template or fully qualified identifier for the Restore Template.

To set the name attribute:

  • provide the argument restore_template on the command line.

This positional argument must be specified if any of the other arguments in this group are specified.

--location=LOCATION
The location of the Restore Template.

To set the location attribute:

  • provide the argument restore_template on the command line with a fully specified name;
  • provide the argument --location on the command line.
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete. The default is True. Enabled by default, use --no-async to disable.
--description=DESCRIPTION
Description of the restore template.
--restore-properties=RESTORE_PROPERTIES
Defines the target environment and configuration for restoring the resource. Accepts either an inline JSON or YAML string or a path to a JSON or YAML file containing the properties.
--update-labels=[KEY=VALUE,…]
List of label KEY=VALUE pairs to update. If a label exists, its value is modified. Otherwise, a new label is created.

Keys must start with a lowercase character and contain only hyphens (-), underscores (_), lowercase characters, and numbers. Values must contain only hyphens (-), underscores (_), lowercase characters, and numbers.

At most one of these can be specified:
--clear-labels
Remove all labels. If --update-labels is also specified then --clear-labels is applied first.

For example, to remove all labels:

gcloud backup-dr restore-templates update --clear-labels

To remove all existing labels and create two new labels, foo and baz:

gcloud backup-dr restore-templates update --clear-labels --update-labels foo=bar,baz=qux
--remove-labels=[KEY,…]
List of label keys to remove. If a label does not exist it is silently ignored. If --update-labels is also specified then --update-labels is applied first.
Post-restore hook configuration.
--post-restore-cloud-run-job=POST_RESTORE_CLOUD_RUN_JOB
The Cloud Run job to execute after the restore operation. Format: projects/{project}/locations/{location}/jobs/{job}
--post-restore-timeout=POST_RESTORE_TIMEOUT
Timeout for the post-restore hook (e.g., 600s). Must be specified with --post-restore-cloud-run-job.
Pre-restore hook configuration.
--pre-restore-cloud-run-job=PRE_RESTORE_CLOUD_RUN_JOB
The Cloud Run job to execute before the restore operation. Format: projects/{project}/locations/{location}/jobs/{job}
--pre-restore-timeout=PRE_RESTORE_TIMEOUT
Timeout for the pre-restore hook (e.g., 300s). Must be specified with --pre-restore-cloud-run-job.
Verification hook configuration.
--verification-cloud-run-job=VERIFICATION_CLOUD_RUN_JOB
The Cloud Run job to execute to verify the restored workload. Format: projects/{project}/locations/{location}/jobs/{job}
--verification-timeout=VERIFICATION_TIMEOUT
Timeout for the verification hook (e.g., 300s). Must be specified with --verification-cloud-run-job.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

BRIEF
Update a restore template.
NOTES
These variants are also available:
gcloud alpha backup-dr restore-templates update
gcloud beta backup-dr restore-templates update