mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 14:56:05 +00:00
gcloud: Wed May 10 11:35:23 UTC 2023
This commit is contained in:
parent
a4643b613a
commit
14441c7ea7
154 changed files with 6649 additions and 164 deletions
70
gcloud/alpha/alloydb/users/create
Normal file
70
gcloud/alpha/alloydb/users/create
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
NAME
|
||||
gcloud alpha alloydb users create - creates a user in a given cluster
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha alloydb users create USERNAME --cluster=CLUSTER
|
||||
--region=REGION [--db-roles=[ROLE,...]] [--password=PASSWORD]
|
||||
[--superuser=SUPERUSER] [--type=TYPE; default="BUILT_IN"]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) Creates a user in a given cluster with specified username, cluster,
|
||||
region, type, and password.
|
||||
|
||||
EXAMPLES
|
||||
To create a new user, run:
|
||||
|
||||
$ gcloud alpha alloydb users create my-username \
|
||||
--cluster=my-cluster --region=us-central1 --password=postgres
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
USERNAME
|
||||
AlloyDB username
|
||||
|
||||
REQUIRED FLAGS
|
||||
--cluster=CLUSTER
|
||||
AlloyDB cluster ID
|
||||
|
||||
--region=REGION
|
||||
Regional location (e.g. asia-east1, us-east1). See the full list of
|
||||
regions at https://cloud.google.com/sql/docs/instance-locations.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--db-roles=[ROLE,...]
|
||||
Comma separated list of database roles this new user will be granted
|
||||
upon creation.
|
||||
|
||||
--password=PASSWORD
|
||||
Password for this database user.
|
||||
|
||||
--superuser=SUPERUSER
|
||||
If true, new user will have AlloyDB superuser privileges. Default value
|
||||
is false.
|
||||
|
||||
--type=TYPE; default="BUILT_IN"
|
||||
Type corresponds to the user type. TYPE must be one of:
|
||||
|
||||
BUILT_IN
|
||||
This database user can authenticate via password-based
|
||||
authentication
|
||||
IAM_BASED
|
||||
This database user can authenticate via IAM-based authentication
|
||||
|
||||
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. These variants are also available:
|
||||
|
||||
$ gcloud alloydb users create
|
||||
|
||||
$ gcloud beta alloydb users create
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue