mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +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
|
||||
|
||||
|
|
@ -66,6 +66,9 @@ COMMANDS
|
|||
connect
|
||||
(ALPHA) Connects to a Cloud SQL instance.
|
||||
|
||||
generate-login-token
|
||||
(ALPHA) Generate an IAM login token for Cloud SQL.
|
||||
|
||||
reschedule-maintenance
|
||||
(ALPHA) Reschedule a Cloud SQL instance's maintenance.
|
||||
|
||||
|
|
|
|||
|
|
@ -183,7 +183,8 @@ FLAGS
|
|||
|
||||
--enable-password-policy
|
||||
Enable the password policy, which enforces user password management
|
||||
with the policies configured for the instance.
|
||||
with the policies configured for the instance. This flag is only
|
||||
available for Postgres.
|
||||
|
||||
--enable-point-in-time-recovery
|
||||
Allows for data recovery from a specific point in time, down to a
|
||||
|
|
@ -271,8 +272,8 @@ FLAGS
|
|||
--network=projects/testproject/global/networks/testsharednetwork
|
||||
|
||||
--password-policy-complexity=PASSWORD_POLICY_COMPLEXITY
|
||||
The complexity of the password. PASSWORD_POLICY_COMPLEXITY must be one
|
||||
of:
|
||||
The complexity of the password. This flag is available only for
|
||||
PostgreSQL. PASSWORD_POLICY_COMPLEXITY must be one of:
|
||||
|
||||
COMPLEXITY_DEFAULT
|
||||
A combination of lowercase, uppercase, numeric, and
|
||||
|
|
@ -282,21 +283,24 @@ FLAGS
|
|||
implies that complexity check is not enabled.
|
||||
|
||||
--[no-]password-policy-disallow-username-substring
|
||||
Disallow username as a part of the password. Use
|
||||
--password-policy-disallow-username-substring to enable and
|
||||
--no-password-policy-disallow-username-substring to disable.
|
||||
Disallow username as a part of the password. This flag is available
|
||||
only for PostgreSQL. Use --password-policy-disallow-username-substring
|
||||
to enable and --no-password-policy-disallow-username-substring to
|
||||
disable.
|
||||
|
||||
--password-policy-min-length=PASSWORD_POLICY_MIN_LENGTH
|
||||
Minimum number of characters allowed in the password.
|
||||
Minimum number of characters allowed in the password. This flag is
|
||||
available only for PostgreSQL.
|
||||
|
||||
--password-policy-password-change-interval=PASSWORD_POLICY_PASSWORD_CHANGE_INTERVAL
|
||||
Minimum interval after which the password can be changed, for example,
|
||||
2m for 2 minutes. See <a href="/sdk/gcloud/reference/topic/datetimes">
|
||||
$ gcloud topic datetimes</a> for information on duration formats.
|
||||
$ gcloud topic datetimes</a> for information on duration formats. This
|
||||
flag is available only for PostgreSQL.
|
||||
|
||||
--password-policy-reuse-interval=PASSWORD_POLICY_REUSE_INTERVAL
|
||||
Number of previous passwords that cannot be reused. The valid range is
|
||||
between 0 and 100.
|
||||
0 to 100. This flag is available only for PostgreSQL.
|
||||
|
||||
--replica-type=REPLICA_TYPE
|
||||
The type of replica to create. REPLICA_TYPE must be one of: READ,
|
||||
|
|
|
|||
|
|
@ -97,7 +97,8 @@ FLAGS
|
|||
Provides no failover capability. This is the default.
|
||||
|
||||
--clear-password-policy
|
||||
Clear the existing password policy.
|
||||
Clear the existing password policy. This flag is only available for
|
||||
Postgres.
|
||||
|
||||
--cpu=CPU
|
||||
Whole number value indicating how many cores are desired in the
|
||||
|
|
@ -135,7 +136,8 @@ FLAGS
|
|||
|
||||
--enable-password-policy
|
||||
Enable the password policy, which enforces user password management
|
||||
with the policies configured for the instance.
|
||||
with the policies configured for the instance. This flag is only
|
||||
available for Postgres.
|
||||
|
||||
--enable-point-in-time-recovery
|
||||
Allows for data recovery from a specific point in time, down to a
|
||||
|
|
@ -218,8 +220,8 @@ FLAGS
|
|||
--network=projects/testproject/global/networks/testsharednetwork
|
||||
|
||||
--password-policy-complexity=PASSWORD_POLICY_COMPLEXITY
|
||||
The complexity of the password. PASSWORD_POLICY_COMPLEXITY must be one
|
||||
of:
|
||||
The complexity of the password. This flag is available only for
|
||||
PostgreSQL. PASSWORD_POLICY_COMPLEXITY must be one of:
|
||||
|
||||
COMPLEXITY_DEFAULT
|
||||
A combination of lowercase, uppercase, numeric, and
|
||||
|
|
@ -229,21 +231,24 @@ FLAGS
|
|||
implies that complexity check is not enabled.
|
||||
|
||||
--[no-]password-policy-disallow-username-substring
|
||||
Disallow username as a part of the password. Use
|
||||
--password-policy-disallow-username-substring to enable and
|
||||
--no-password-policy-disallow-username-substring to disable.
|
||||
Disallow username as a part of the password. This flag is available
|
||||
only for PostgreSQL. Use --password-policy-disallow-username-substring
|
||||
to enable and --no-password-policy-disallow-username-substring to
|
||||
disable.
|
||||
|
||||
--password-policy-min-length=PASSWORD_POLICY_MIN_LENGTH
|
||||
Minimum number of characters allowed in the password.
|
||||
Minimum number of characters allowed in the password. This flag is
|
||||
available only for PostgreSQL.
|
||||
|
||||
--password-policy-password-change-interval=PASSWORD_POLICY_PASSWORD_CHANGE_INTERVAL
|
||||
Minimum interval after which the password can be changed, for example,
|
||||
2m for 2 minutes. See <a href="/sdk/gcloud/reference/topic/datetimes">
|
||||
$ gcloud topic datetimes</a> for information on duration formats.
|
||||
$ gcloud topic datetimes</a> for information on duration formats. This
|
||||
flag is available only for PostgreSQL.
|
||||
|
||||
--password-policy-reuse-interval=PASSWORD_POLICY_REUSE_INTERVAL
|
||||
Number of previous passwords that cannot be reused. The valid range is
|
||||
between 0 and 100.
|
||||
0 to 100. This flag is available only for PostgreSQL.
|
||||
|
||||
--pricing-plan=PRICING_PLAN, -p PRICING_PLAN
|
||||
First Generation instances only. The pricing plan for this instance.
|
||||
|
|
|
|||
|
|
@ -40,16 +40,18 @@ OPTIONAL FLAGS
|
|||
|
||||
--password-policy-allowed-failed-attempts=PASSWORD_POLICY_ALLOWED_FAILED_ATTEMPTS
|
||||
Number of failed login attempts allowed before a user is locked out.
|
||||
This flag is currently not available.
|
||||
|
||||
--[no-]password-policy-enable-failed-attempts-check
|
||||
Enables the failed login attempts check if set to true. Use
|
||||
Enables the failed login attempts check if set to true. This flag is
|
||||
currently not available. Use
|
||||
--password-policy-enable-failed-attempts-check to enable and
|
||||
--no-password-policy-enable-failed-attempts-check to disable.
|
||||
|
||||
--password-policy-password-expiration-duration=PASSWORD_POLICY_PASSWORD_EXPIRATION_DURATION
|
||||
Expiration duration after a password is updated, for example, 2m for 2
|
||||
minutes. See gcloud topic datetimes for information on duration
|
||||
formats.
|
||||
formats. This flag is currently not available.
|
||||
|
||||
--type=TYPE
|
||||
Cloud SQL user's type. It determines the method to authenticate the
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ OPTIONAL FLAGS
|
|||
complete.
|
||||
|
||||
--clear-password-policy
|
||||
Clear the existing password policy.
|
||||
Clear the existing password policy. This flag is only available for
|
||||
Postgres.
|
||||
|
||||
--host=HOST
|
||||
Cloud SQL user's host name expressed as a specific IP address or
|
||||
|
|
@ -55,16 +56,18 @@ OPTIONAL FLAGS
|
|||
|
||||
--password-policy-allowed-failed-attempts=PASSWORD_POLICY_ALLOWED_FAILED_ATTEMPTS
|
||||
Number of failed login attempts allowed before a user is locked out.
|
||||
This flag is currently not available.
|
||||
|
||||
--[no-]password-policy-enable-failed-attempts-check
|
||||
Enables the failed login attempts check if set to true. Use
|
||||
Enables the failed login attempts check if set to true. This flag is
|
||||
currently not available. Use
|
||||
--password-policy-enable-failed-attempts-check to enable and
|
||||
--no-password-policy-enable-failed-attempts-check to disable.
|
||||
|
||||
--password-policy-password-expiration-duration=PASSWORD_POLICY_PASSWORD_EXPIRATION_DURATION
|
||||
Expiration duration after a password is updated, for example, 2m for 2
|
||||
minutes. See gcloud topic datetimes for information on duration
|
||||
formats.
|
||||
formats. This flag is currently not available.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue