mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-10 03:16:46 +00:00
gcloud: Thu Oct 23 11:05:02 UTC 2025
This commit is contained in:
parent
154ebc873d
commit
a763c0bf0a
189 changed files with 4294 additions and 712 deletions
|
|
@ -4,15 +4,20 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud sql backups restore ID --restore-instance=RESTORE_INSTANCE
|
||||
[--activation-policy=ACTIVATION_POLICY]
|
||||
[--active-directory-domain=ACTIVE_DIRECTORY_DOMAIN] [--[no-]assign-ip]
|
||||
[--async] [--audit-bucket-path=AUDIT_BUCKET_PATH]
|
||||
[--active-directory-dns-servers=[DNS_SERVER_IP_ADDRESS,...]]
|
||||
[--active-directory-domain=ACTIVE_DIRECTORY_DOMAIN]
|
||||
[--active-directory-mode=ACTIVE_DIRECTORY_MODE]
|
||||
[--active-directory-organizational-unit=ACTIVE_DIRECTORY_ORGANIZATIONAL_UNIT]
|
||||
[--active-directory-secret-manager-key=ACTIVE_DIRECTORY_SECRET_MANAGER_KEY]
|
||||
[--[no-]assign-ip] [--async] [--audit-bucket-path=AUDIT_BUCKET_PATH]
|
||||
[--audit-retention-interval=AUDIT_RETENTION_INTERVAL]
|
||||
[--audit-upload-interval=AUDIT_UPLOAD_INTERVAL]
|
||||
[--authorized-networks=NETWORK,[NETWORK,...]]
|
||||
[--availability-type=AVAILABILITY_TYPE] [--no-backup]
|
||||
[--backup-instance=BACKUP_INSTANCE] [--backup-location=BACKUP_LOCATION]
|
||||
[--backup-project=BACKUP_PROJECT]
|
||||
[--backup-start-time=BACKUP_START_TIME]
|
||||
[--backup-start-time=BACKUP_START_TIME] [--clear-active-directory]
|
||||
[--clear-active-directory-dns-servers]
|
||||
[--clear-disk-encryption=CLEAR_DISK_ENCRYPTION] [--clear-network]
|
||||
[--collation=COLLATION] [--connector-enforcement=CONNECTOR_ENFORCEMENT]
|
||||
[--cpu=CPU] [--database-version=DATABASE_VERSION]
|
||||
|
|
@ -75,10 +80,29 @@ OPTIONAL FLAGS
|
|||
https://cloud.google.com/sql/docs/mysql/start-stop-restart-instance#activation_policy.
|
||||
ACTIVATION_POLICY must be one of: always, never.
|
||||
|
||||
--active-directory-dns-servers=[DNS_SERVER_IP_ADDRESS,...]
|
||||
A comma-separated list of the DNS servers to be used for Active
|
||||
Directory. Only available for SQL Server instances. E.g:
|
||||
10.0.0.1,10.0.0.2
|
||||
|
||||
--active-directory-domain=ACTIVE_DIRECTORY_DOMAIN
|
||||
Managed Service for Microsoft Active Directory domain this instance is
|
||||
joined to. Only available for SQL Server instances.
|
||||
|
||||
--active-directory-mode=ACTIVE_DIRECTORY_MODE
|
||||
Defines the Active Directory mode. Only available for SQL Server
|
||||
instances. ACTIVE_DIRECTORY_MODE must be one of:
|
||||
MANAGED_ACTIVE_DIRECTORY, CUSTOMER_MANAGED_ACTIVE_DIRECTORY.
|
||||
|
||||
--active-directory-organizational-unit=ACTIVE_DIRECTORY_ORGANIZATIONAL_UNIT
|
||||
Defines the organizational unit to be used for Active Directory. Only
|
||||
available for SQL Server instances. E.g:
|
||||
OU=Cloud,DC=ad,DC=example,DC=com
|
||||
|
||||
--active-directory-secret-manager-key=ACTIVE_DIRECTORY_SECRET_MANAGER_KEY
|
||||
The secret manager key storing administrator credentials. Only
|
||||
available for SQL Server instances.
|
||||
|
||||
--[no-]assign-ip
|
||||
Assign a public IP address to the instance. This is a public,
|
||||
externally available IPv4 address that you can use to connect to your
|
||||
|
|
@ -142,6 +166,12 @@ OPTIONAL FLAGS
|
|||
Start time of daily backups, specified in the HH:MM format, in the UTC
|
||||
timezone.
|
||||
|
||||
--clear-active-directory
|
||||
Clears the Active Directory configuration.
|
||||
|
||||
--clear-active-directory-dns-servers
|
||||
Removes the list of DNS Servers from the Active Directory Config.
|
||||
|
||||
--clear-disk-encryption=CLEAR_DISK_ENCRYPTION
|
||||
Disables CMEK in the restored instance.
|
||||
|
||||
|
|
|
|||
|
|
@ -4,15 +4,19 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud sql instances create INSTANCE
|
||||
[--activation-policy=ACTIVATION_POLICY]
|
||||
[--active-directory-domain=ACTIVE_DIRECTORY_DOMAIN] [--[no-]assign-ip]
|
||||
[--async] [--audit-bucket-path=AUDIT_BUCKET_PATH]
|
||||
[--active-directory-dns-servers=[DNS_SERVER_IP_ADDRESS,...]]
|
||||
[--active-directory-domain=ACTIVE_DIRECTORY_DOMAIN]
|
||||
[--active-directory-mode=ACTIVE_DIRECTORY_MODE]
|
||||
[--active-directory-organizational-unit=ACTIVE_DIRECTORY_ORGANIZATIONAL_UNIT]
|
||||
[--active-directory-secret-manager-key=ACTIVE_DIRECTORY_SECRET_MANAGER_KEY]
|
||||
[--[no-]assign-ip] [--async] [--audit-bucket-path=AUDIT_BUCKET_PATH]
|
||||
[--audit-retention-interval=AUDIT_RETENTION_INTERVAL]
|
||||
[--audit-upload-interval=AUDIT_UPLOAD_INTERVAL]
|
||||
[--authorized-networks=NETWORK,[NETWORK,...]]
|
||||
[--availability-type=AVAILABILITY_TYPE] [--no-backup]
|
||||
[--backup-location=BACKUP_LOCATION]
|
||||
[--backup-start-time=BACKUP_START_TIME] [--cascadable-replica]
|
||||
[--collation=COLLATION]
|
||||
[--clear-active-directory-dns-servers] [--collation=COLLATION]
|
||||
[--connection-pool-flags=FLAG=VALUE,[FLAG=VALUE,...]]
|
||||
[--connector-enforcement=CONNECTOR_ENFORCEMENT] [--cpu=CPU]
|
||||
[--custom-subject-alternative-names=DNS,[DNS,[DNS]]]
|
||||
|
|
@ -67,6 +71,12 @@ SYNOPSIS
|
|||
: --disk-encryption-key-keyring=DISK_ENCRYPTION_KEY_KEYRING
|
||||
--disk-encryption-key-location=DISK_ENCRYPTION_KEY_LOCATION
|
||||
--disk-encryption-key-project=DISK_ENCRYPTION_KEY_PROJECT]
|
||||
[--[no-]auto-scale-disable-scale-in --[no-]auto-scale-enabled
|
||||
--auto-scale-in-cooldown-seconds=AUTO_SCALE_IN_COOLDOWN_SECONDS
|
||||
--auto-scale-max-node-count=AUTO_SCALE_MAX_NODE_COUNT
|
||||
--auto-scale-min-node-count=AUTO_SCALE_MIN_NODE_COUNT
|
||||
--auto-scale-out-cooldown-seconds=AUTO_SCALE_OUT_COOLDOWN_SECONDS
|
||||
--auto-scale-target-metrics=[METRIC=VALUE,...]]
|
||||
[--region=REGION; default="us-central" | --gce-zone=GCE_ZONE
|
||||
| --secondary-zone=SECONDARY_ZONE --zone=ZONE] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
|
|
@ -112,10 +122,29 @@ FLAGS
|
|||
https://cloud.google.com/sql/docs/mysql/start-stop-restart-instance#activation_policy.
|
||||
ACTIVATION_POLICY must be one of: always, never.
|
||||
|
||||
--active-directory-dns-servers=[DNS_SERVER_IP_ADDRESS,...]
|
||||
A comma-separated list of the DNS servers to be used for Active
|
||||
Directory. Only available for SQL Server instances. E.g:
|
||||
10.0.0.1,10.0.0.2
|
||||
|
||||
--active-directory-domain=ACTIVE_DIRECTORY_DOMAIN
|
||||
Managed Service for Microsoft Active Directory domain this instance is
|
||||
joined to. Only available for SQL Server instances.
|
||||
|
||||
--active-directory-mode=ACTIVE_DIRECTORY_MODE
|
||||
Defines the Active Directory mode. Only available for SQL Server
|
||||
instances. ACTIVE_DIRECTORY_MODE must be one of:
|
||||
MANAGED_ACTIVE_DIRECTORY, CUSTOMER_MANAGED_ACTIVE_DIRECTORY.
|
||||
|
||||
--active-directory-organizational-unit=ACTIVE_DIRECTORY_ORGANIZATIONAL_UNIT
|
||||
Defines the organizational unit to be used for Active Directory. Only
|
||||
available for SQL Server instances. E.g:
|
||||
OU=Cloud,DC=ad,DC=example,DC=com
|
||||
|
||||
--active-directory-secret-manager-key=ACTIVE_DIRECTORY_SECRET_MANAGER_KEY
|
||||
The secret manager key storing administrator credentials. Only
|
||||
available for SQL Server instances.
|
||||
|
||||
--[no-]assign-ip
|
||||
Assign a public IP address to the instance. This is a public,
|
||||
externally available IPv4 address that you can use to connect to your
|
||||
|
|
@ -172,6 +201,9 @@ FLAGS
|
|||
--master-instance-name flag is set, and the replica under creation is
|
||||
in a different region than the primary instance.
|
||||
|
||||
--clear-active-directory-dns-servers
|
||||
Removes the list of DNS Servers from the Active Directory Config.
|
||||
|
||||
--collation=COLLATION
|
||||
Cloud SQL server-level collation setting, which specifies the set of
|
||||
rules for comparing characters in a character set.
|
||||
|
|
@ -643,6 +675,44 @@ FLAGS
|
|||
line;
|
||||
▸ set the property core/project.
|
||||
|
||||
Options for configuring read pool auto scale.
|
||||
|
||||
--[no-]auto-scale-disable-scale-in
|
||||
Disables automatic read pool scale-in. When disabled, read pool auto
|
||||
scaling only supports increasing the read pool node count. By
|
||||
default, both automatic read pool scale-in and scale-out are enabled.
|
||||
Use --auto-scale-disable-scale-in to enable and
|
||||
--no-auto-scale-disable-scale-in to disable.
|
||||
|
||||
--[no-]auto-scale-enabled
|
||||
Enables read pool auto scaling. Supports automatically increasing and
|
||||
decreasing the read pool's node count based on need. Use
|
||||
--auto-scale-enabled to enable and --no-auto-scale-enabled to
|
||||
disable.
|
||||
|
||||
--auto-scale-in-cooldown-seconds=AUTO_SCALE_IN_COOLDOWN_SECONDS
|
||||
The cooldown period for automatic read pool scale-in. Minimum time
|
||||
between scale-in events. Must be an integer value. For example, if
|
||||
the value is 60, then a scale-in event will not be triggered within
|
||||
60 seconds of the last scale-in event.
|
||||
|
||||
--auto-scale-max-node-count=AUTO_SCALE_MAX_NODE_COUNT
|
||||
Maximum number of read pool nodes to be maintained.
|
||||
|
||||
--auto-scale-min-node-count=AUTO_SCALE_MIN_NODE_COUNT
|
||||
Minimum number of read pool nodes to be maintained.
|
||||
|
||||
--auto-scale-out-cooldown-seconds=AUTO_SCALE_OUT_COOLDOWN_SECONDS
|
||||
The cooldown period for automatic read pool scale-out. Minimum time
|
||||
between scale-out events. Must be an integer value. For example, if
|
||||
the value is 60, then a scale-out event will not be triggered within
|
||||
60 seconds of the last scale-out event.
|
||||
|
||||
--auto-scale-target-metrics=[METRIC=VALUE,...]
|
||||
Target metrics for read pool auto scaling. Options are:
|
||||
AVERAGE_CPU_UTILIZATION and AVERAGE_DB_CONNECTIONS. Example:
|
||||
--auto-scale-target-metrics=AVERAGE_CPU_UTILIZATION=0.8
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--region=REGION; default="us-central"
|
||||
|
|
|
|||
|
|
@ -3,11 +3,16 @@ NAME
|
|||
|
||||
SYNOPSIS
|
||||
gcloud sql instances patch INSTANCE [--activation-policy=ACTIVATION_POLICY]
|
||||
[--active-directory-domain=ACTIVE_DIRECTORY_DOMAIN] [--[no-]assign-ip]
|
||||
[--async] [--audit-bucket-path=AUDIT_BUCKET_PATH]
|
||||
[--active-directory-dns-servers=[DNS_SERVER_IP_ADDRESS,...]]
|
||||
[--active-directory-domain=ACTIVE_DIRECTORY_DOMAIN]
|
||||
[--active-directory-mode=ACTIVE_DIRECTORY_MODE]
|
||||
[--active-directory-organizational-unit=ACTIVE_DIRECTORY_ORGANIZATIONAL_UNIT]
|
||||
[--active-directory-secret-manager-key=ACTIVE_DIRECTORY_SECRET_MANAGER_KEY]
|
||||
[--[no-]assign-ip] [--async] [--audit-bucket-path=AUDIT_BUCKET_PATH]
|
||||
[--audit-retention-interval=AUDIT_RETENTION_INTERVAL]
|
||||
[--audit-upload-interval=AUDIT_UPLOAD_INTERVAL]
|
||||
[--availability-type=AVAILABILITY_TYPE]
|
||||
[--availability-type=AVAILABILITY_TYPE] [--clear-active-directory]
|
||||
[--clear-active-directory-dns-servers]
|
||||
[--clear-failover-dr-replica-name] [--clear-password-policy]
|
||||
[--connector-enforcement=CONNECTOR_ENFORCEMENT] [--cpu=CPU]
|
||||
[--database-version=DATABASE_VERSION] [--[no-]deletion-protection]
|
||||
|
|
@ -72,6 +77,12 @@ SYNOPSIS
|
|||
[--clear-psc-network-attachment-uri
|
||||
| --psc-network-attachment-uri=PSC_NETWORK_ATTACHMENT_URI]
|
||||
[--gce-zone=GCE_ZONE | --secondary-zone=SECONDARY_ZONE --zone=ZONE]
|
||||
[--[no-]auto-scale-disable-scale-in --[no-]auto-scale-enabled
|
||||
--auto-scale-in-cooldown-seconds=AUTO_SCALE_IN_COOLDOWN_SECONDS
|
||||
--auto-scale-max-node-count=AUTO_SCALE_MAX_NODE_COUNT
|
||||
--auto-scale-min-node-count=AUTO_SCALE_MIN_NODE_COUNT
|
||||
--auto-scale-out-cooldown-seconds=AUTO_SCALE_OUT_COOLDOWN_SECONDS
|
||||
--auto-scale-target-metrics=[METRIC=VALUE,...]]
|
||||
[--no-backup | --backup-location=BACKUP_LOCATION
|
||||
--backup-start-time=BACKUP_START_TIME
|
||||
--retained-backups-count=RETAINED_BACKUPS_COUNT
|
||||
|
|
@ -94,10 +105,29 @@ FLAGS
|
|||
https://cloud.google.com/sql/docs/mysql/start-stop-restart-instance#activation_policy.
|
||||
ACTIVATION_POLICY must be one of: always, never.
|
||||
|
||||
--active-directory-dns-servers=[DNS_SERVER_IP_ADDRESS,...]
|
||||
A comma-separated list of the DNS servers to be used for Active
|
||||
Directory. Only available for SQL Server instances. E.g:
|
||||
10.0.0.1,10.0.0.2
|
||||
|
||||
--active-directory-domain=ACTIVE_DIRECTORY_DOMAIN
|
||||
Managed Service for Microsoft Active Directory domain this instance is
|
||||
joined to. Only available for SQL Server instances.
|
||||
|
||||
--active-directory-mode=ACTIVE_DIRECTORY_MODE
|
||||
Defines the Active Directory mode. Only available for SQL Server
|
||||
instances. ACTIVE_DIRECTORY_MODE must be one of:
|
||||
MANAGED_ACTIVE_DIRECTORY, CUSTOMER_MANAGED_ACTIVE_DIRECTORY.
|
||||
|
||||
--active-directory-organizational-unit=ACTIVE_DIRECTORY_ORGANIZATIONAL_UNIT
|
||||
Defines the organizational unit to be used for Active Directory. Only
|
||||
available for SQL Server instances. E.g:
|
||||
OU=Cloud,DC=ad,DC=example,DC=com
|
||||
|
||||
--active-directory-secret-manager-key=ACTIVE_DIRECTORY_SECRET_MANAGER_KEY
|
||||
The secret manager key storing administrator credentials. Only
|
||||
available for SQL Server instances.
|
||||
|
||||
--[no-]assign-ip
|
||||
Assign a public IP address to the instance. This is a public,
|
||||
externally available IPv4 address that you can use to connect to your
|
||||
|
|
@ -131,6 +161,12 @@ FLAGS
|
|||
zonal
|
||||
Provides no failover capability. This is the default.
|
||||
|
||||
--clear-active-directory
|
||||
Clears the Active Directory configuration.
|
||||
|
||||
--clear-active-directory-dns-servers
|
||||
Removes the list of DNS Servers from the Active Directory Config.
|
||||
|
||||
--clear-failover-dr-replica-name
|
||||
Clear the DR replica setting for the primary instance. Flag is only
|
||||
available for MySQL and PostgreSQL database instances.
|
||||
|
|
@ -665,6 +701,44 @@ FLAGS
|
|||
Preferred Compute Engine zone (e.g. us-central1-a, us-central1-b,
|
||||
etc.). WARNING: Instance may be restarted.
|
||||
|
||||
Options for configuring read pool auto scale.
|
||||
|
||||
--[no-]auto-scale-disable-scale-in
|
||||
Disables automatic read pool scale-in. When disabled, read pool auto
|
||||
scaling only supports increasing the read pool node count. By
|
||||
default, both automatic read pool scale-in and scale-out are enabled.
|
||||
Use --auto-scale-disable-scale-in to enable and
|
||||
--no-auto-scale-disable-scale-in to disable.
|
||||
|
||||
--[no-]auto-scale-enabled
|
||||
Enables read pool auto scaling. Supports automatically increasing and
|
||||
decreasing the read pool's node count based on need. Use
|
||||
--auto-scale-enabled to enable and --no-auto-scale-enabled to
|
||||
disable.
|
||||
|
||||
--auto-scale-in-cooldown-seconds=AUTO_SCALE_IN_COOLDOWN_SECONDS
|
||||
The cooldown period for automatic read pool scale-in. Minimum time
|
||||
between scale-in events. Must be an integer value. For example, if
|
||||
the value is 60, then a scale-in event will not be triggered within
|
||||
60 seconds of the last scale-in event.
|
||||
|
||||
--auto-scale-max-node-count=AUTO_SCALE_MAX_NODE_COUNT
|
||||
Maximum number of read pool nodes to be maintained.
|
||||
|
||||
--auto-scale-min-node-count=AUTO_SCALE_MIN_NODE_COUNT
|
||||
Minimum number of read pool nodes to be maintained.
|
||||
|
||||
--auto-scale-out-cooldown-seconds=AUTO_SCALE_OUT_COOLDOWN_SECONDS
|
||||
The cooldown period for automatic read pool scale-out. Minimum time
|
||||
between scale-out events. Must be an integer value. For example, if
|
||||
the value is 60, then a scale-out event will not be triggered within
|
||||
60 seconds of the last scale-out event.
|
||||
|
||||
--auto-scale-target-metrics=[METRIC=VALUE,...]
|
||||
Target metrics for read pool auto scaling. Options are:
|
||||
AVERAGE_CPU_UTILIZATION and AVERAGE_DB_CONNECTIONS. Example:
|
||||
--auto-scale-target-metrics=AVERAGE_CPU_UTILIZATION=0.8
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--no-backup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue