1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-17 14:26:34 +00:00

gcloud: Wed Aug 21 09:39:51 UTC 2024

This commit is contained in:
Automated 2024-08-21 09:39:51 +00:00
parent d35819d273
commit ed5fe34b64
163 changed files with 3541 additions and 717 deletions

View file

@ -53,29 +53,30 @@ REQUIRED FLAGS
cf9f748a-7980-4703-b1a1-d1ffff591db0
OPTIONAL FLAGS
The encryption configuration of the restored database. If not specified,
the same encryption settings as the backup will be used.
The encryption configuration of the new database being created from the
backup. If not specified, the same encryption settings as the backup will
be used.
To restore to a CMEK-enabled database:
To create a CMEK-enabled database:
$ gcloud alpha firestore databases restore \
--encryption-type=customer-managed-encryption \
--kms-key-name=projects/PROJECT_ID/locations/LOCATION_ID/\
keyRings/KEY_RING_ID/cryptoKeys/CRYPTO_KEY_ID
To restore to a Google-default-encrypted database:
To create a Google-default-encrypted database:
$ gcloud alpha firestore databases restore \
--encryption-type=google-default-encryption
To restore to a database using the same encryption settings as the backup:
To create a database using the same encryption settings as the backup:
$ gcloud alpha firestore databases restore \
--encryption-type=backup-encryption
--encryption-type=use-source-encryption
--encryption-type=ENCRYPTION_TYPE
The encryption type of the destination database. ENCRYPTION_TYPE must
be one of: backup-encryption, customer-managed-encryption,
be one of: use-source-encryption, customer-managed-encryption,
google-default-encryption.
This flag argument must be specified if any of the other arguments in