1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 23:08:48 +00:00

gcloud: Wed Feb 12 10:41:39 UTC 2025

This commit is contained in:
Automated 2025-02-12 10:41:39 +00:00
parent c854ee0644
commit 44f319c56c
119 changed files with 5956 additions and 337 deletions

View file

@ -44,7 +44,7 @@ COMMANDS
move
(ALPHA) Move the Cloud Spanner instance to the specified instance
config.
configuration.
remove-iam-policy-binding
(ALPHA) Remove IAM policy binding of a Cloud Spanner instance.

View file

@ -1,30 +1,31 @@
NAME
gcloud alpha spanner instances move - move the Cloud Spanner instance to
the specified instance config
the specified instance configuration
SYNOPSIS
gcloud alpha spanner instances move INSTANCE --target-config=TARGET_CONFIG
[--target-database-move-configs=[^:^database-id=DATABASE_ID:kms-keys=KEY1,
[--target-database-move-configs=[^:^database-id=DATABASE_ID:kms-key-names=KEY1,
KEY2,...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Move the Cloud Spanner instance to the specified instance config.
(ALPHA) Move the Cloud Spanner instance to the specified instance
configuration.
EXAMPLES
To move the Cloud Spanner instance, which has two CMEK databases db1 and
db2 and a database db3 with Google managed encryption keys, to the target
instance configuration nam3 (us-east4, us-east1, us-central1), run: $ gcloud alpha spanner instances move my-instance-id \
To move the Cloud Spanner instance, which has two CMEK-enabled databases
db1 and db2 and a database db3 with Google-managed encryption keys, to the
target instance configuration nam3 (us-east4, us-east1, us-central1), run: $ gcloud alpha spanner instances move my-instance-id \
--target-config=nam3 \
--target-database-move-configs=^:^database-id=db1:kms-keys=proje\
cts/myproject/locations/us-east4/keyRings/mykeyring/cryptoKeys/\
cmek-key,projects/myproject/locations/us-east1/keyRings/mykeyring/\
cryptoKeys/cmek-key,projects/myproject/locations/us-central1/\
keyRings/mykeyring/cryptoKeys/cmek-key \
--target-database-move-configs=^:^database-id=db2:kms-keys=proje\
cts/myproject/locations/us-east4/keyRings/mykeyring/cryptoKeys/\
cmek-key,projects/myproject/locations/us-east1/keyRings/mykeyring/\
cryptoKeys/cmek-key,projects/myproject/locations/us-central1/\
keyRings/mykeyring/cryptoKeys/cmek-key
--target-database-move-configs=^:^database-id=db1:kms-key-names=\
projects/myproject/locations/us-east4/keyRings/mykeyring/\
cryptoKeys/cmek-key,projects/myproject/locations/us-east1/keyRings/\
mykeyring/cryptoKeys/cmek-key,projects/myproject/locations/\
us-central1/keyRings/mykeyring/cryptoKeys/cmek-key \
--target-database-move-configs=^:^database-id=db2:kms-key-names=\
projects/myproject/locations/us-east4/keyRings/mykeyring/\
cryptoKeys/cmek-key,projects/myproject/locations/us-east1/keyRings/\
mykeyring/cryptoKeys/cmek-key,projects/myproject/locations/\
us-central1/keyRings/mykeyring/cryptoKeys/cmek-key
POSITIONAL ARGUMENTS
INSTANCE
@ -35,24 +36,24 @@ REQUIRED FLAGS
Target Instance configuration to move the instances.
OPTIONAL FLAGS
--target-database-move-configs=[^:^database-id=DATABASE_ID:kms-keys=KEY1,KEY2,...]
--target-database-move-configs=[^:^database-id=DATABASE_ID:kms-key-names=KEY1,KEY2,...]
Database level configurations for each database to be moved. Currently
only used for CMEK databases to specificy the target database KMS keys.
Sets target_database_move_configs value.
only used for CMEK-enabled databases to specificy the target database
KMS keys. Sets target_database_move_configs value.
database-id
Required, Sets database-id value.
kms-keys
Sets kms-keys value.
kms-key-names
Sets kms-key-names value.
Shorthand Example:
--target-database-move-configs=database-id=string,kms-keys=string --target-database-move-configs=database-id=string,kms-keys=string
--target-database-move-configs=database-id=string,kms-key-names=string --target-database-move-configs=database-id=string,kms-key-names=string
JSON Example:
--target-database-move-configs='[{"database-id": "string", "kms-keys": "string"}]'
--target-database-move-configs='[{"database-id": "string", "kms-key-names": "string"}]'
File Example: