mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-22 07:40:10 +00:00
gcloud: Tue Mar 1 04:29:52 UTC 2022
This commit is contained in:
parent
aab53307a8
commit
1456dab6c7
9791 changed files with 814712 additions and 0 deletions
160
gcloud/alpha/database-migration/migration-jobs/update
Normal file
160
gcloud/alpha/database-migration/migration-jobs/update
Normal file
|
|
@ -0,0 +1,160 @@
|
|||
NAME
|
||||
gcloud alpha database-migration migration-jobs update - update a Database
|
||||
Migration Service migration job
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha database-migration migration-jobs update
|
||||
(MIGRATION_JOB : --region=REGION) --destination=DESTINATION
|
||||
--source=SOURCE [--display-name=DISPLAY_NAME] [--dump-path=DUMP_PATH]
|
||||
[--type=TYPE] [--update-labels=[KEY=VALUE,...]]
|
||||
[--clear-labels | --remove-labels=[KEY,...]]
|
||||
[--peer-vpc=PEER_VPC
|
||||
| --vm=VM --vm-ip=VM_IP --vm-port=VM_PORT --vpc=VPC]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) Update a Database Migration Service migration job.
|
||||
|
||||
EXAMPLES
|
||||
To update a migration job in draft with new display name, source and
|
||||
destination connection profiles:
|
||||
|
||||
$ gcloud alpha database-migration migration-jobs update \
|
||||
MIGRATION_JOB --region=us-central1 --display-name=new-name \
|
||||
--source=new-src --destination=new-dest
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Migration job resource - The migration job 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 migration_job 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.
|
||||
|
||||
MIGRATION_JOB
|
||||
ID of the migration_job or fully qualified identifier for the
|
||||
migration_job. To set the migration_job attribute:
|
||||
▸ provide the argument migration_job on the command line.
|
||||
|
||||
This positional must be specified if any of the other arguments in
|
||||
this group are specified.
|
||||
|
||||
--region=REGION
|
||||
The Cloud region for the migration_job. To set the region attribute:
|
||||
▸ provide the argument migration_job on the command line with a
|
||||
fully specified name;
|
||||
▸ provide the argument --region on the command line.
|
||||
|
||||
FLAGS
|
||||
Connection profile resource - Resource ID of the destination connection
|
||||
profile. 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 --destination 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 region attribute:
|
||||
◆ provide the argument --destination on the command line with a fully
|
||||
specified name;
|
||||
◆ provide the argument --region on the command line.
|
||||
|
||||
--destination=DESTINATION
|
||||
ID of the connection_profile or fully qualified identifier for the
|
||||
connection_profile. To set the connection_profile attribute:
|
||||
▸ provide the argument --destination on the command line.
|
||||
|
||||
Connection profile resource - Resource ID of the source connection
|
||||
profile. 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 --source 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 region attribute:
|
||||
◆ provide the argument --source on the command line with a fully
|
||||
specified name;
|
||||
◆ provide the argument --region on the command line.
|
||||
|
||||
--source=SOURCE
|
||||
ID of the connection_profile or fully qualified identifier for the
|
||||
connection_profile. To set the connection_profile attribute:
|
||||
▸ provide the argument --source on the command line.
|
||||
|
||||
--display-name=DISPLAY_NAME
|
||||
Friendly name for the migration job.
|
||||
|
||||
--dump-path=DUMP_PATH
|
||||
Path to the dump file in Google Cloud Storage, in the format:
|
||||
gs://[BUCKET_NAME]/[OBJECT_NAME].
|
||||
|
||||
--type=TYPE
|
||||
Type of the migration job (ONE_TIME or CONTINUOUS). TYPE must be one
|
||||
of: ONE_TIME, CONTINUOUS.
|
||||
|
||||
--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 alpha database-migration migration-jobs update \
|
||||
--clear-labels
|
||||
|
||||
To remove all existing labels and create two new labels, foo and baz:
|
||||
|
||||
$ gcloud alpha database-migration migration-jobs 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.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--peer-vpc=PEER_VPC
|
||||
Name of the VPC network to peer with the Cloud SQL private network.
|
||||
|
||||
--vm=VM
|
||||
Name of VM that will host the SSH tunnel bastion.
|
||||
|
||||
--vm-ip=VM_IP
|
||||
Bastion Virtual Machine IP.
|
||||
|
||||
--vm-port=VM_PORT
|
||||
Forwarding port for the SSH tunnel.
|
||||
|
||||
--vpc=VPC
|
||||
Name of the VPC network where the VM is hosted.
|
||||
|
||||
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.
|
||||
|
||||
NOTES
|
||||
This command is currently in alpha and might change without notice. If this
|
||||
command fails with API permission errors despite specifying the correct
|
||||
project, you might be trying to access an API with an invitation-only early
|
||||
access allowlist. This variant is also available:
|
||||
|
||||
$ gcloud database-migration migration-jobs update
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue