1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-15 09:25:44 +00:00

gcloud: Thu Jan 19 00:56:33 UTC 2023

This commit is contained in:
Automated 2023-01-19 00:56:33 +00:00
parent 348d9760ee
commit 1248f773ec
1462 changed files with 51835 additions and 5402 deletions

View file

@ -3,7 +3,8 @@ NAME
SYNOPSIS
gcloud sql export bak INSTANCE URI --database=DATABASE,[DATABASE,...], -d
DATABASE,[DATABASE,...] [--async] [GCLOUD_WIDE_FLAG ...]
DATABASE,[DATABASE,...] [--async] [--stripe_count=STRIPE_COUNT]
[--[no-]striped] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Export data from a Cloud SQL instance to a Google Cloud Storage bucket as a
@ -36,6 +37,13 @@ OPTIONAL FLAGS
Return immediately, without waiting for the operation in progress to
complete.
--stripe_count=STRIPE_COUNT
Specifies the number of stripes to use for SQL Server exports.
--[no-]striped
Whether SQL Server export should be striped. Use --striped to enable
and --no-striped to disable.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,

View file

@ -4,7 +4,7 @@ NAME
SYNOPSIS
gcloud sql import bak INSTANCE URI --database=DATABASE, -d DATABASE
[--async]
[--async] [--[no-]striped]
[--cert-path=CERT_PATH --pvk-path=PVK_PATH (--prompt-for-pvk-password
| --pvk-password=PVK_PASSWORD)] [GCLOUD_WIDE_FLAG ...]
@ -49,6 +49,10 @@ OPTIONAL FLAGS
Return immediately, without waiting for the operation in progress to
complete.
--[no-]striped
Whether SQL Server import should be striped. Use --striped to enable
and --no-striped to disable.
Encryption info to support importing an encrypted .bak file
--cert-path=CERT_PATH

View file

@ -3,8 +3,10 @@ NAME
SYNOPSIS
gcloud sql instances clone SOURCE DESTINATION [--async]
[--point-in-time=POINT_IN_TIME | --bin-log-file-name=BIN_LOG_FILE_NAME
--bin-log-position=BIN_LOG_POSITION] [GCLOUD_WIDE_FLAG ...]
[--bin-log-file-name=BIN_LOG_FILE_NAME
--bin-log-position=BIN_LOG_POSITION | [--point-in-time=POINT_IN_TIME
: --restore-database-name=RESTORE_DATABASE_NAME]]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud sql instances clone creates a clone of a Cloud SQL instance. The
@ -21,6 +23,10 @@ DESCRIPTION
the instance to clone. If not specified, the current state of the instance
is cloned.
For SQL Server: The point in time, if specified, defines a past state of
the instance to clone. If not specified, the current state of the instance
is cloned.
EXAMPLES
To clone an instance from its current state (most recent binary log
coordinates):
@ -43,6 +49,11 @@ EXAMPLES
$ gcloud sql instances clone instance-foo instance-bar \
--point-in-time '2012-11-15T16:19:00.094Z'
To clone a SQL Server source instance at a specific point in time:
$ gcloud sql instances clone instance-foo instance-bar \
--point-in-time '2012-11-15T16:19:00.094Z'
POSITIONAL ARGUMENTS
SOURCE
Cloud SQL instance ID of the source.
@ -57,17 +68,6 @@ FLAGS
At most one of these can be specified:
--point-in-time=POINT_IN_TIME
Represents the state of an instance at any given point in time inside
a transaction log file. For MySQL, the binary log file is used for
transaction logs. For PostgreSQL, the write-ahead log file is used
for transaction logs. To create a transaction log, enable
point-in-time recovery on the source instance. Instance should have
transaction logs accumulated upto the point in time they want to
restore upto. Uses RFC 3339 format in UTC timezone. If specified,
defines a past state of the instance to clone. For example,
'2012-11-15T16:19:00.094Z'.
Binary log coordinates for point-in-time recovery.
--bin-log-file-name=BIN_LOG_FILE_NAME
@ -90,6 +90,26 @@ FLAGS
This flag argument must be specified if any of the other arguments
in this group are specified.
--point-in-time=POINT_IN_TIME
Represents the state of an instance at any given point in time inside
a transaction log file. For MySQL, the binary log file is used for
transaction logs. For PostgreSQL, the write-ahead log file is used
for transaction logs. For SQL Server, the log backup file is used for
such purpose. To create a transaction log, enable point-in-time
recovery on the source instance. Instance should have transaction
logs accumulated up to the point in time they want to restore up to.
Uses RFC 3339 format in UTC timezone. If specified, defines a past
state of the instance to clone. For example,
'2012-11-15T16:19:00.094Z'.
This flag argument must be specified if any of the other arguments in
this group are specified.
--restore-database-name=RESTORE_DATABASE_NAME
The name of the database to be restored for a point-in-time restore.
If set, the destination instance will only restore the specified
database.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,

View file

@ -12,14 +12,15 @@ SYNOPSIS
[--availability-type=AVAILABILITY_TYPE] [--no-backup]
[--backup-location=BACKUP_LOCATION]
[--backup-start-time=BACKUP_START_TIME] [--collation=COLLATION]
[--cpu=CPU] [--database-flags=FLAG=VALUE,[FLAG=VALUE,...]]
[--connector-enforcement=CONNECTOR_ENFORCEMENT] [--cpu=CPU]
[--database-flags=FLAG=VALUE,[FLAG=VALUE,...]]
[--database-version=DATABASE_VERSION; default="MYSQL_8_0"]
[--[no-]deletion-protection]
[--deny-maintenance-period-end-date=DENY_MAINTENANCE_PERIOD_END_DATE]
[--deny-maintenance-period-start-date=DENY_MAINTENANCE_PERIOD_START_DATE]
[--deny-maintenance-period-time=DENY_MAINTENANCE_PERIOD_TIME]
[--enable-bin-log] [--enable-password-policy]
[--enable-point-in-time-recovery]
[--enable-bin-log] [--enable-google-private-path]
[--enable-password-policy] [--enable-point-in-time-recovery]
[--failover-replica-name=FAILOVER_REPLICA_NAME]
[--[no-]insights-config-query-insights-enabled]
[--insights-config-query-plans-per-minute=INSIGHTS_CONFIG_QUERY_PLANS_PER_MINUTE]
@ -42,6 +43,7 @@ SYNOPSIS
[--root-password=ROOT_PASSWORD] [--[no-]storage-auto-increase]
[--storage-size=STORAGE_SIZE] [--storage-type=STORAGE_TYPE]
[--tier=TIER, -t TIER] [--time-zone=TIME_ZONE]
[--timeout=TIMEOUT; default=3600]
[--disk-encryption-key=DISK_ENCRYPTION_KEY
: --disk-encryption-key-keyring=DISK_ENCRYPTION_KEY_KEYRING
--disk-encryption-key-location=DISK_ENCRYPTION_KEY_LOCATION
@ -98,8 +100,7 @@ FLAGS
--[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
instance when properly authorized. Use --assign-ip to enable a public
IP and --no-assign-ip to disable it. Use --assign-ip to enable and
instance when properly authorized. Use --assign-ip to enable and
--no-assign-ip to disable.
--async
@ -149,6 +150,21 @@ FLAGS
Cloud SQL server-level collation setting, which specifies the set of
rules for comparing characters in a character set.
--connector-enforcement=CONNECTOR_ENFORCEMENT
Cloud SQL Connector enforcement mode. It determines how Cloud SQL
Connectors are used in the connection. See the list of modes here
(https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/instances#connectorenforcement).
CONNECTOR_ENFORCEMENT must be one of:
CONNECTOR_ENFORCEMENT_UNSPECIFIED
The requirement for Cloud SQL connectors is unknown.
NOT_REQUIRED
Does not require Cloud SQL connectors.
REQUIRED
Requires all connections to use Cloud SQL connectors, including the
Cloud SQL Auth Proxy and Cloud SQL Java, Python, and Go connectors.
Note: This disables all existing authorized networks.
--cpu=CPU
Whole number value indicating how many cores are desired in the
machine. Both --cpu and --memory must be specified if a custom machine
@ -176,9 +192,8 @@ FLAGS
--[no-]deletion-protection
Enable deletion protection on a Cloud SQL instance. Use
--deletion-protection to enable deletion protection on an instance and
--no-deletion-protection to disable it. Use --deletion-protection to
enable and --no-deletion-protection to disable.
--deletion-protection to enable and --no-deletion-protection to
disable.
--deny-maintenance-period-end-date=DENY_MAINTENANCE_PERIOD_END_DATE
Date when the deny maintenance period ends, that is 2021-01-10.
@ -194,6 +209,13 @@ FLAGS
fraction of a second. Must have automatic backups enabled to use. Make
sure storage can support at least 7 days of logs.
--enable-google-private-path
Enable a private path for Google Cloud services. This flag specifies
whether the instance is accessible to internal Google Cloud services
such as BigQuery. This is only applicable to MySQL and PostgreSQL
instances that don't use public IP. Currently, SQL Server isn't
supported.
--enable-password-policy
Enable the password policy, which enforces user password management
with the policies configured for the instance. This flag is only
@ -359,6 +381,12 @@ FLAGS
--time-zone=TIME_ZONE
Set a non-default time zone. Only available for SQL Server instances.
--timeout=TIMEOUT; default=3600
Time to synchronously wait for the operation to complete, after which
the operation continues asynchronously. Ignored if --async flag is
specified. By default, set to 3600s. To wait indefinitely, set to
unlimited.
Key resource - The Cloud KMS (Key Management Service) cryptokey that will
be used to protect the instance. The 'Compute Engine Service Agent'
service account must hold permission 'Cloud KMS CryptoKey

View file

@ -8,14 +8,14 @@ SYNOPSIS
[--audit-retention-interval=AUDIT_RETENTION_INTERVAL]
[--audit-upload-interval=AUDIT_UPLOAD_INTERVAL]
[--availability-type=AVAILABILITY_TYPE] [--clear-password-policy]
[--cpu=CPU] [--database-version=DATABASE_VERSION]
[--[no-]deletion-protection]
[--connector-enforcement=CONNECTOR_ENFORCEMENT] [--cpu=CPU]
[--database-version=DATABASE_VERSION] [--[no-]deletion-protection]
[--deny-maintenance-period-end-date=DENY_MAINTENANCE_PERIOD_END_DATE]
[--deny-maintenance-period-start-date=DENY_MAINTENANCE_PERIOD_START_DATE]
[--deny-maintenance-period-time=DENY_MAINTENANCE_PERIOD_TIME] [--diff]
[--[no-]enable-bin-log] [--[no-]enable-database-replication]
[--enable-password-policy] [--enable-point-in-time-recovery]
[--follow-gae-app=FOLLOW_GAE_APP]
[--enable-google-private-path] [--enable-password-policy]
[--enable-point-in-time-recovery] [--follow-gae-app=FOLLOW_GAE_APP]
[--[no-]insights-config-query-insights-enabled]
[--insights-config-query-plans-per-minute=INSIGHTS_CONFIG_QUERY_PLANS_PER_MINUTE]
[--insights-config-query-string-length=INSIGHTS_CONFIG_QUERY_STRING_LENGTH]
@ -69,8 +69,7 @@ FLAGS
--[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
instance when properly authorized. Use --assign-ip to enable a public
IP and --no-assign-ip to disable it. Use --assign-ip to enable and
instance when properly authorized. Use --assign-ip to enable and
--no-assign-ip to disable.
--async
@ -104,6 +103,21 @@ FLAGS
Clear the existing password policy. This flag is only available for
Postgres.
--connector-enforcement=CONNECTOR_ENFORCEMENT
Cloud SQL Connector enforcement mode. It determines how Cloud SQL
Connectors are used in the connection. See the list of modes here
(https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/instances#connectorenforcement).
CONNECTOR_ENFORCEMENT must be one of:
CONNECTOR_ENFORCEMENT_UNSPECIFIED
The requirement for Cloud SQL connectors is unknown.
NOT_REQUIRED
Does not require Cloud SQL connectors.
REQUIRED
Requires all connections to use Cloud SQL connectors, including the
Cloud SQL Auth Proxy and Cloud SQL Java, Python, and Go connectors.
Note: This disables all existing authorized networks.
--cpu=CPU
Whole number value indicating how many cores are desired in the
machine. Both --cpu and --memory must be specified if a custom machine
@ -123,9 +137,8 @@ FLAGS
--[no-]deletion-protection
Enable deletion protection on a Cloud SQL instance. Use
--deletion-protection to enable deletion protection on an instance and
--no-deletion-protection to disable it. Use --deletion-protection to
enable and --no-deletion-protection to disable.
--deletion-protection to enable and --no-deletion-protection to
disable.
--deny-maintenance-period-end-date=DENY_MAINTENANCE_PERIOD_END_DATE
Date when the deny maintenance period ends, that is 2021-01-10.
@ -151,6 +164,13 @@ FLAGS
--enable-database-replication to enable and
--no-enable-database-replication to disable.
--enable-google-private-path
Enable a private path for Google Cloud services. This flag specifies
whether the instance is accessible to internal Google Cloud services
such as BigQuery. This is only applicable to MySQL and PostgreSQL
instances that don't use public IP. Currently, SQL Server isn't
supported.
--enable-password-policy
Enable the password policy, which enforces user password management
with the policies configured for the instance. This flag is only