mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Wed Apr 16 10:41:40 UTC 2025
This commit is contained in:
parent
4637d39593
commit
b589c4c4ad
316 changed files with 13928 additions and 1163 deletions
54
gcloud/beta/firestore/databases/connection-string
Normal file
54
gcloud/beta/firestore/databases/connection-string
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
NAME
|
||||
gcloud beta firestore databases connection-string - prints the mongo
|
||||
connection string for the given Firestore database
|
||||
|
||||
SYNOPSIS
|
||||
gcloud beta firestore databases connection-string --database=DATABASE
|
||||
[--auth=AUTH; default="none"] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
EXAMPLES
|
||||
To get the connection string for a Firestore database with a databaseId
|
||||
testdb without auth configuration.
|
||||
|
||||
$ gcloud beta firestore databases connection-string \
|
||||
--database=testdb --auth=none
|
||||
|
||||
To get the connection string for a Firestore database with a databaseId
|
||||
testdb with Google Compute Engine VM auth.
|
||||
|
||||
$ gcloud beta firestore databases connection-string \
|
||||
--database=testdb --auth=gce-vm
|
||||
|
||||
REQUIRED FLAGS
|
||||
--database=DATABASE
|
||||
The database to operate on.
|
||||
|
||||
For example, to operate on database foo:
|
||||
|
||||
$ gcloud beta firestore databases connection-string --database='foo'
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--auth=AUTH; default="none"
|
||||
The auth configuration for the connection string.
|
||||
|
||||
If connecting from a Google Compute Engine VM, use gce-vm. For short
|
||||
term access using the gcloud CLI's access token, use access-token. For
|
||||
password auth use scram-sha-256. Otherwise, use none and configure auth
|
||||
manually.
|
||||
|
||||
AUTH must be one of: none, gce-vm, access-token, scram-sha-256.
|
||||
|
||||
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 beta and might change without notice. This
|
||||
variant is also available:
|
||||
|
||||
$ gcloud alpha firestore databases connection-string
|
||||
|
||||
|
|
@ -5,10 +5,17 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud beta firestore databases create --location=LOCATION
|
||||
[--database=DATABASE; default="(default)"] [--delete-protection]
|
||||
[--enable-pitr] [--kms-key-name=KMS_KEY_NAME]
|
||||
[--type=TYPE; default="firestore-native"] [GCLOUD_WIDE_FLAG ...]
|
||||
[--edition=EDITION; default="standard"] [--enable-pitr]
|
||||
[--kms-key-name=KMS_KEY_NAME] [--type=TYPE; default="firestore-native"]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
EXAMPLES
|
||||
To create a Firestore Enterprise database named foo in nam5 for use with
|
||||
Ignite APIs.
|
||||
|
||||
$ gcloud beta firestore databases create --database=foo \
|
||||
--edition=enterprise --location=nam5
|
||||
|
||||
To create a Firestore Native database in nam5.
|
||||
|
||||
$ gcloud beta firestore databases create --location=nam5
|
||||
|
|
@ -72,6 +79,10 @@ OPTIONAL FLAGS
|
|||
|
||||
Default to false.
|
||||
|
||||
--edition=EDITION; default="standard"
|
||||
The edition of the database. EDITION must be one of: standard,
|
||||
enterprise.
|
||||
|
||||
--enable-pitr
|
||||
Whether to enable Point In Time Recovery (PITR) on the created
|
||||
database.
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@ GCLOUD WIDE FLAGS
|
|||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
connection-string
|
||||
(BETA) Prints the mongo connection string for the given Firestore
|
||||
database.
|
||||
|
||||
create
|
||||
(BETA) Create a Google Cloud Firestore database via Firestore API.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue