mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-15 17:35:31 +00:00
127 lines
4.9 KiB
Text
127 lines
4.9 KiB
Text
NAME
|
|
gcloud backup-dr backup-plan-associations update - update a specific backup
|
|
plan within a backup plan association
|
|
|
|
SYNOPSIS
|
|
gcloud backup-dr backup-plan-associations update
|
|
(BACKUP_PLAN_ASSOCIATION
|
|
: --location=LOCATION --workload-project=WORKLOAD_PROJECT)
|
|
--backup-plan=BACKUP_PLAN [--async] [GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
Update a specific backup plan within a backup plan association.
|
|
|
|
EXAMPLES
|
|
To update backup plan association sample-bpa in project sample-project and
|
|
location us-central1 with backup plan sample-backup-plan in the same
|
|
project and location, run:
|
|
|
|
$ gcloud backup-dr backup-plan-associations update sample-bpa \
|
|
--project=sample-project --location=us-central1 \
|
|
--backup-plan=sample-backup-plan
|
|
|
|
To update backup plan association sample-bpa-uri with backup plan
|
|
sample-backup-plan-uri (using full URIs), run:
|
|
|
|
$ gcloud backup-dr backup-plan-associations update sample-bpa-uri \
|
|
--backup-plan=sample-backup-plan-uri
|
|
|
|
To update backup plan association sample-bpa in location us-central1 with
|
|
backup plan sample-backup-plan-uri, run:
|
|
|
|
$ gcloud backup-dr backup-plan-associations update sample-bpa \
|
|
--location=us-central1 --backup-plan=sample-backup-plan-uri
|
|
|
|
To update backup plan association sample-bpa in project workload-project
|
|
and location us-central1 with backup plan sample-backup-plan in project
|
|
sample-project, run:
|
|
|
|
$ gcloud backup-dr backup-plan-associations update sample-bpa \
|
|
--workload-project=workload-project --location=us-central1 \
|
|
--backup-plan=sample-backup-plan --project=sample-project
|
|
|
|
POSITIONAL ARGUMENTS
|
|
Backup Plan Association resource - Backup plan association to be updated.
|
|
To update backup plan associations in a project that's different from the
|
|
backup plan, use the --workload-project flag. The arguments in this group
|
|
can be used to specify the attributes of this resource.
|
|
|
|
This must be specified.
|
|
|
|
BACKUP_PLAN_ASSOCIATION
|
|
ID of the Backup Plan Association or fully qualified identifier for
|
|
the Backup Plan Association.
|
|
|
|
To set the name attribute:
|
|
▸ provide the argument BACKUP_PLAN_ASSOCIATION 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 Backup Plan Association.
|
|
|
|
To set the location attribute:
|
|
▸ provide the argument BACKUP_PLAN_ASSOCIATION on the command line
|
|
with a fully specified name;
|
|
▸ provide the argument --location on the command line.
|
|
|
|
--workload-project=WORKLOAD_PROJECT
|
|
Cloud project id for the Backup Plan Association.
|
|
|
|
To set the workload-project attribute:
|
|
▸ provide the argument BACKUP_PLAN_ASSOCIATION on the command line
|
|
with a fully specified name;
|
|
▸ provide the argument --workload-project on the command line;
|
|
▸ provide the argument --project on the command line;
|
|
▸ set the property core/project.
|
|
|
|
REQUIRED FLAGS
|
|
Backup Plan resource - Name of the specific backup plan to be applied to
|
|
the backup plan association. E.g.,
|
|
projects/sample-project/locations/us-central1/backupPlans/sample-backup-plan
|
|
This represents a Cloud 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 --backup-plan on the command line with a fully
|
|
specified name;
|
|
◆ provide the argument --project on the command line;
|
|
◆ set the property core/project.
|
|
|
|
To set the location attribute:
|
|
◆ provide the argument --backup-plan on the command line with a fully
|
|
specified name;
|
|
◆ provide the argument --location on the command line.
|
|
|
|
This must be specified.
|
|
|
|
--backup-plan=BACKUP_PLAN
|
|
ID of the Backup Plan or fully qualified identifier for the Backup
|
|
Plan.
|
|
|
|
To set the name attribute:
|
|
▸ provide the argument --backup-plan on the command line.
|
|
|
|
OPTIONAL 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.
|
|
|
|
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 specific backup plan within a backup plan association.
|
|
|
|
NOTES
|
|
This variant is also available:
|
|
|
|
$ gcloud alpha backup-dr backup-plan-associations update
|
|
|