1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 23:49:35 +00:00

gcloud: Thu Jul 17 11:02:31 UTC 2025

This commit is contained in:
Automated 2025-07-17 11:02:31 +00:00
parent e53f7148d8
commit fe3a430c1d
365 changed files with 6027 additions and 1863 deletions

View file

@ -6,8 +6,8 @@ SYNOPSIS
gcloud firestore databases create --location=LOCATION
[--database=DATABASE; default="(default)"] [--delete-protection]
[--edition=EDITION; default="standard"] [--enable-pitr]
[--kms-key-name=KMS_KEY_NAME] [--type=TYPE; default="firestore-native"]
[GCLOUD_WIDE_FLAG ...]
[--kms-key-name=KMS_KEY_NAME] [--tags=[KEY=VALUE,...]]
[--type=TYPE; default="firestore-native"] [GCLOUD_WIDE_FLAG ...]
EXAMPLES
To create a Firestore Enterprise database named foo in nam5 for use with
@ -20,6 +20,11 @@ EXAMPLES
$ gcloud firestore databases create --location=nam5
To create a Firestore Native database in us-central1 with tags.
$ gcloud firestore databases create --location=us-central1 \
--tags=key1=value1,key2=value2
To create a Datastore Mode database in us-east1.
$ gcloud firestore databases create --location=us-east1 \
@ -105,6 +110,14 @@ OPTIONAL FLAGS
How to retrieve this resource ID is listed at
https://cloud.google.com/kms/docs/getting-resource-ids#getting_the_id_for_a_key_and_version.
--tags=[KEY=VALUE,...]
Tags to attach to the destination database. Example:
--tags=key1=value1,key2=value2
For example, to attach tags to a database:
$ --tags=key1=value1,key2=value2
--type=TYPE; default="firestore-native"
The type of the database. TYPE must be one of: firestore-native,
datastore-mode.

View file

@ -5,7 +5,7 @@ NAME
SYNOPSIS
gcloud firestore databases restore
--destination-database=DESTINATION_DATABASE
--source-backup=SOURCE_BACKUP
--source-backup=SOURCE_BACKUP [--tags=[KEY=VALUE,...]]
[--encryption-type=ENCRYPTION_TYPE : --kms-key-name=KMS_KEY_NAME]
[GCLOUD_WIDE_FLAG ...]
@ -16,6 +16,13 @@ EXAMPLES
--source-backup=projects/PROJECT_ID/locations/LOCATION_ID/\
backups/BACKUP_ID --destination-database=DATABASE_ID
To restore a database from a backup with tags.
$ gcloud firestore databases restore \
--source-backup=projects/PROJECT_ID/locations/LOCATION_ID/\
backups/BACKUP_ID --destination-database=DATABASE_ID \
--tags=key1=value1,key2=value2
To restore to a CMEK-enabled database.
$ gcloud firestore databases restore \
@ -32,8 +39,7 @@ REQUIRED FLAGS
This value should be 4-63 characters. Valid characters are
/[a-z][0-9]-/ with first character a letter and the last a letter or a
number. Must not be UUID-like
/[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
number. Must not be UUID-like /[0-9a-f]8(-[0-9a-f]4)3-[0-9a-f]12/.
Using "(default)" database ID is also allowed.
@ -52,6 +58,14 @@ REQUIRED FLAGS
cf9f748a-7980-4703-b1a1-d1ffff591db0
OPTIONAL FLAGS
--tags=[KEY=VALUE,...]
Tags to attach to the destination database. Example:
--tags=key1=value1,key2=value2
For example, to attach tags to a database:
$ --tags=key1=value1,key2=value2
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.