mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Wed Jun 8 09:13:38 UTC 2022
This commit is contained in:
parent
82063cbb03
commit
28d031b3c1
240 changed files with 3156 additions and 1115 deletions
58
gcloud/alpha/sql/generate-login-token
Normal file
58
gcloud/alpha/sql/generate-login-token
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
NAME
|
||||
gcloud alpha sql generate-login-token - generate an IAM login token for
|
||||
Cloud SQL
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha sql generate-login-token [--application-default-credential]
|
||||
[--instance=INSTANCE] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) gcloud alpha sql generate-login-token generates an IAM token to use
|
||||
for logging in to Cloud SQL instances.
|
||||
|
||||
EXAMPLES
|
||||
To generate an IAM login token using gcloud credentials, run:
|
||||
|
||||
$ gcloud alpha sql generate-login-token
|
||||
|
||||
To generate an IAM login token using application default credentials, run:
|
||||
|
||||
$ gcloud alpha sql generate-login-token \
|
||||
--application-default-credential
|
||||
|
||||
To generate an IAM login token using gcloud credentials for instance
|
||||
my-instance, run:
|
||||
|
||||
$ gcloud alpha sql generate-login-token --instance=my-instance
|
||||
|
||||
To generate an IAM login token using application default credentials for
|
||||
instance my-instance, run:
|
||||
|
||||
$ gcloud alpha sql generate-login-token --instance=my-instance \
|
||||
--application-default-credential
|
||||
|
||||
FLAGS
|
||||
--application-default-credential
|
||||
Use application default credentials to generate the login token.
|
||||
|
||||
--instance=INSTANCE
|
||||
Cloud SQL instance ID.
|
||||
|
||||
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 sql generate-login-token
|
||||
|
||||
$ gcloud beta sql generate-login-token
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue