gcloud beta sql instances patch
INSTANCE
[--activation-policy
=ACTIVATION_POLICY
] [--active-directory-domain
=ACTIVE_DIRECTORY_DOMAIN
] [--allocated-ip-range-name
=ALLOCATED_IP_RANGE_NAME
] [--[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
] [--clear-failover-dr-replica-name
] [--clear-password-policy
] [--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
] [--edition
=EDITION
] [--[no-]enable-bin-log
] [--[no-]enable-connection-pooling
] [--[no-]enable-data-cache
] [--[no-]enable-database-replication
] [--[no-]enable-dataplex-integration
] [--[no-]enable-google-ml-integration
] [--[no-]enable-google-private-path
] [--enable-password-policy
] [--enable-point-in-time-recovery
] [--[no-]enable-private-service-connect
] [--failover-dr-replica-name
=FAILOVER_DR_REPLICA_NAME
] [--follow-gae-app
=FOLLOW_GAE_APP
] [--[no-]include-replicas-for-major-version-upgrade
] [--[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
] [--[no-]insights-config-record-application-tags
] [--[no-]insights-config-record-client-address
] [--instance-type
=INSTANCE_TYPE
] [--maintenance-release-channel
=MAINTENANCE_RELEASE_CHANNEL
] [--maintenance-version
=MAINTENANCE_VERSION
] [--maintenance-window-any
] [--maintenance-window-day
=MAINTENANCE_WINDOW_DAY
] [--maintenance-window-hour
=MAINTENANCE_WINDOW_HOUR
] [--memory
=MEMORY
] [--network
=NETWORK
] [--node-count
=NODE_COUNT
] [--password-policy-complexity
=PASSWORD_POLICY_COMPLEXITY
] [--[no-]password-policy-disallow-username-substring
] [--password-policy-min-length
=PASSWORD_POLICY_MIN_LENGTH
] [--password-policy-password-change-interval
=PASSWORD_POLICY_PASSWORD_CHANGE_INTERVAL
] [--password-policy-reuse-interval
=PASSWORD_POLICY_REUSE_INTERVAL
] [--pricing-plan
=PRICING_PLAN
, -p
PRICING_PLAN
] [--reconcile-psa-networking
] [--[no-]recreate-replicas-on-primary-crash
] [--remove-deny-maintenance-period
] [--replication
=REPLICATION
] [--replication-lag-max-seconds-for-recreate
=REPLICATION_LAG_MAX_SECONDS_FOR_RECREATE
] [--[no-]require-ssl
] [--[no-]retain-backups-on-delete
] [--simulate-maintenance-event
] [--ssl-mode
=SSL_MODE
] [--[no-]storage-auto-increase
] [--storage-auto-increase-limit
=STORAGE_AUTO_INCREASE_LIMIT
] [--storage-provisioned-iops
=STORAGE_PROVISIONED_IOPS
] [--storage-provisioned-throughput
=STORAGE_PROVISIONED_THROUGHPUT
] [--storage-size
=STORAGE_SIZE
] [--switch-transaction-logs-to-cloud-storage
] [--threads-per-core
=THREADS_PER_CORE
] [--tier
=TIER
, -t
TIER
] [--time-zone
=TIME_ZONE
] [--update-labels
=[KEY
=VALUE
,…]] [--upgrade-sql-network-architecture
] [--allowed-psc-projects
=PROJECT
,[PROJECT
,…] | --clear-allowed-psc-projects
] [--authorized-gae-apps
=APP
,[APP
,…] | --clear-gae-apps
] [--authorized-networks
=NETWORK
,[NETWORK
,…] | --clear-authorized-networks
] [--clear-connection-pool-flags
| --connection-pool-flags
=FLAG
=VALUE
,[FLAG
=VALUE
,…]] [--clear-custom-subject-alternative-names
| --custom-subject-alternative-names
=DNS
,[DNS
,[DNS
]]] [--clear-database-flags
| --database-flags
=FLAG
=VALUE
,[FLAG
=VALUE
,…]] [--clear-labels
| --remove-labels
=[KEY
,…]] [--clear-psc-auto-connections
| --psc-auto-connections
=[network
=NETWORK
],[project
=PROJECT
]] [--clear-psc-network-attachment-uri
| --psc-network-attachment-uri
=PSC_NETWORK_ATTACHMENT_URI
] [--gce-zone
=GCE_ZONE
| --secondary-zone
=SECONDARY_ZONE
--zone
=ZONE
] [--no-backup
| --backup-location
=BACKUP_LOCATION
--backup-start-time
=BACKUP_START_TIME
--retained-backups-count
=RETAINED_BACKUPS_COUNT
--retained-transaction-log-days
=RETAINED_TRANSACTION_LOG_DAYS
] [GCLOUD_WIDE_FLAG …
]
(BETA)
Updates the settings of a Cloud SQL instance.
INSTANCE
--activation-policy
=ACTIVATION_POLICY
RUNNABLE
. The default is always
. More information on activation policies can be found here: https://cloud.google.com/sql/docs/mysql/start-stop-restart-instance#activation_policy. ACTIVATION_POLICY
must be one of: always
, never
.
--active-directory-domain
=ACTIVE_DIRECTORY_DOMAIN
--allocated-ip-range-name
=ALLOCATED_IP_RANGE_NAME
--[no-]assign-ip
--assign-ip
to enable and --no-assign-ip
to disable.
--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
must be one of:
regional
zonal
--clear-failover-dr-replica-name
--clear-password-policy
--connector-enforcement
=CONNECTOR_ENFORCEMENT
CONNECTOR_ENFORCEMENT
must be one of:
CONNECTOR_ENFORCEMENT_UNSPECIFIED
NOT_REQUIRED
REQUIRED
--cpu
=CPU
--database-version
=DATABASE_VERSION
--[no-]deletion-protection
--deletion-protection
to enable and --no-deletion-protection
to disable.
--deny-maintenance-period-end-date
=DENY_MAINTENANCE_PERIOD_END_DATE
2021-01-10
.
--deny-maintenance-period-start-date
=DENY_MAINTENANCE_PERIOD_START_DATE
2020-11-01
.
--deny-maintenance-period-time
=DENY_MAINTENANCE_PERIOD_TIME
05:00:00
.
--diff
--edition
=EDITION
EDITION
must be one of: enterprise
, enterprise-plus
.
--[no-]enable-bin-log
--enable-bin-log
to enable and --no-enable-bin-log
to disable.
--[no-]enable-connection-pooling
--enable-connection-pooling
to enable and --no-enable-connection-pooling
to disable.
--[no-]enable-data-cache
--enable-data-cache
to enable and --no-enable-data-cache
to disable.
--[no-]enable-database-replication
--enable-database-replication
to enable and --no-enable-database-replication
to disable.
--[no-]enable-dataplex-integration
--enable-dataplex-integration
to enable and --no-enable-dataplex-integration
to disable.
--[no-]enable-google-ml-integration
--enable-google-ml-integration
to enable and --no-enable-google-ml-integration
to disable.
--[no-]enable-google-private-path
--enable-google-private-path
to enable and --no-enable-google-private-path
to disable.
--enable-password-policy
--enable-point-in-time-recovery
--[no-]enable-private-service-connect
--enable-private-service-connect
to enable and --no-enable-private-service-connect
to disable.
--failover-dr-replica-name
=FAILOVER_DR_REPLICA_NAME
--follow-gae-app
=FOLLOW_GAE_APP
--[no-]include-replicas-for-major-version-upgrade
--database-version
. Use --include-replicas-for-major-version-upgrade
to enable and --no-include-replicas-for-major--version-upgrade
to disable. Use --include-replicas-for-major-version-upgrade
to enable and --no-include-replicas-for-major-version-upgrade
to disable.
--[no-]insights-config-query-insights-enabled
Use --insights-config-query-insights-enabled
to enable and --no-insights-config-query-insights-enabled
to disable.
--insights-config-query-plans-per-minute
=INSIGHTS_CONFIG_QUERY_PLANS_PER_MINUTE
--insights-config-query-string-length
=INSIGHTS_CONFIG_QUERY_STRING_LENGTH
--[no-]insights-config-record-application-tags
Use --insights-config-record-application-tags
to enable and --no-insights-config-record-application-tags
to disable.
--[no-]insights-config-record-client-address
Use --insights-config-record-client-address
to enable and --no-insights-config-record-client-address
to disable.
--instance-type
=INSTANCE_TYPE
INSTANCE_TYPE
must be one of:
CLOUD_SQL_INSTANCE
READ_POOL_INSTANCE
READ_REPLICA_INSTANCE
--maintenance-release-channel
=MAINTENANCE_RELEASE_CHANNEL
MAINTENANCE_RELEASE_CHANNEL
must be one of:
preview
production
week5
--maintenance-version
=MAINTENANCE_VERSION
--maintenance-window-any
--maintenance-window-day
=MAINTENANCE_WINDOW_DAY
MAINTENANCE_WINDOW_DAY
must be one of: SUN
, MON
, TUE
, WED
, THU
, FRI
, SAT
.
--maintenance-window-hour
=MAINTENANCE_WINDOW_HOUR
--memory
=MEMORY
--network
=NETWORK
--network
=projects/testproject/global/networks/testsharednetwork
--node-count
=NODE_COUNT
--password-policy-complexity
=PASSWORD_POLICY_COMPLEXITY
PASSWORD_POLICY_COMPLEXITY
must be one of:
COMPLEXITY_DEFAULT
COMPLEXITY_UNSPECIFIED
--[no-]password-policy-disallow-username-substring
--password-policy-disallow-username-substring
to enable and --no-password-policy-disallow-username-substring
to disable.
--password-policy-min-length
=PASSWORD_POLICY_MIN_LENGTH
--password-policy-password-change-interval
=PASSWORD_POLICY_PASSWORD_CHANGE_INTERVAL
--password-policy-reuse-interval
=PASSWORD_POLICY_REUSE_INTERVAL
--pricing-plan
=PRICING_PLAN
, -p
PRICING_PLAN
PRICING_PLAN
must be one of: PER_USE
, PACKAGE
.
--reconcile-psa-networking
--[no-]recreate-replicas-on-primary-crash
--recreate-replicas-on-primary-crash
to enable and --no-recreate-replicas-on-primary-crash
to disable.
--remove-deny-maintenance-period
--replication
=REPLICATION
REPLICATION
must be one of: synchronous
, asynchronous
.
--replication-lag-max-seconds-for-recreate
=REPLICATION_LAG_MAX_SECONDS_FOR_RECREATE
--[no-]require-ssl
--require-ssl
to enable and --no-require-ssl
to disable.
--[no-]retain-backups-on-delete
--retain-backups-on-delete
to enable and --no-retain-backups-on-delete
to disable.
--simulate-maintenance-event
--ssl-mode
=SSL_MODE
SSL_MODE
must be one of:
ALLOW_UNENCRYPTED_AND_ENCRYPTED
ENCRYPTED_ONLY
TRUSTED_CLIENT_CERTIFICATE_REQUIRED
--[no-]storage-auto-increase
--storage-auto-increase
to enable and --no-storage-auto-increase
to disable.
--storage-auto-increase-limit
=STORAGE_AUTO_INCREASE_LIMIT
unlimited
.
--storage-provisioned-iops
=STORAGE_PROVISIONED_IOPS
--storage-provisioned-throughput
=STORAGE_PROVISIONED_THROUGHPUT
--storage-size
=STORAGE_SIZE
--switch-transaction-logs-to-cloud-storage
--threads-per-core
=THREADS_PER_CORE
--tier
=TIER
, -t
TIER
db-g1-small
. For all other instances, instead of using tiers, customize your instance by specifying its CPU and memory. You can do so with the --cpu
and --memory
flags. Learn more about how CPU and memory affects pricing: https://cloud.google.com/sql/pricing. WARNING: Instance will be restarted.
--time-zone
=TIME_ZONE
--update-labels
=[KEY
=VALUE
,…]
Keys must start with a lowercase character and contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers.
--upgrade-sql-network-architecture
--allowed-psc-projects
=PROJECT
,[PROJECT
,…]
--clear-allowed-psc-projects
The value given for this argument replaces
the existing list.
--clear-gae-apps
--authorized-networks
=NETWORK
,[NETWORK
,…]
The value given for this argument replaces
the existing list.
--clear-authorized-networks
--clear-connection-pool-flags
--connection-pool-flags
=FLAG
=VALUE
,[FLAG
=VALUE
,…]
--connection-pool-flags max_pool_size=1000,max_client_connections=2000
)
--clear-custom-subject-alternative-names
--custom-subject-alternative-names
=DNS
,[DNS
,[DNS
]]
--clear-database-flags
--database-flags
=FLAG
=VALUE
,[FLAG
=VALUE
,…]
skip_grant_tables=
. Use on/off for booleans. View the Instance Resource API for allowed flags. (e.g., --database-flags max_allowed_packet=55555,skip_grant_tables=,log_output=1
)
--clear-labels
--update-labels
is also specified then --clear-labels
is applied first.
For example, to remove all labels:
gcloud beta sql instances patch --clear-labels
To remove all existing labels and create two new labels,
and foo
:baz
gcloud beta sql instances patch --clear-labels --update-labels foo=bar,baz=qux
--remove-labels
=[KEY
,…]
--update-labels
is also specified then --update-labels
is applied first.
--clear-psc-auto-connections
--psc-auto-connections
=[network
=NETWORK
],[project
=PROJECT
]
psc-auto-connections
=network=projects/testproject1/global/networks/testnetwork1
" or "the form psc-auto-connections
=project=testproject1,network=projects/testproject1/global/networks/testnetwork1
". Sets psc_auto_connections
value.
network
network
value.
project
project
value.
Shorthand Example:
--psc-auto-connections=network=string,project=string
JSON Example:
--psc-auto-connections='{"network": "string", "project": "string"}'
File Example:
--psc-auto-connections=path_to_file.(yaml|json)
--clear-psc-network-attachment-uri
--psc-network-attachment-uri
=PSC_NETWORK_ATTACHMENT_URI
--psc-network-attachment-uri=projects/test-project/regions/us-central1/networkAttachments/my-na
--gce-zone
=GCE_ZONE
Flag --gce-zone
is deprecated and will be removed by release 255.0.0. Use --zone
instead.
--secondary-zone
=SECONDARY_ZONE
--zone
=ZONE
--no-backup
--backup-location
=BACKUP_LOCATION
--backup-start-time
=BACKUP_START_TIME
--retained-backups-count
=RETAINED_BACKUPS_COUNT
--retained-transaction-log-days
=RETAINED_TRANSACTION_LOG_DAYS
--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.
gcloud sql instances patch
gcloud alpha sql instances patch
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4