ezgh databases update <database> [flags] [--wait]Change a database. Only what’s given changes. --tag replaces all its tags and --clear-tags removes them; --parameter sets a parameter and keeps the others, --unset-parameter puts one back to its default, and --clear-parameters puts them all back; --log-export replaces its log exports and --no-log-exports stops them. Storage only grows. A new instance type, or a parameter that needs a restart, is applied with a failover, which keeps the endpoint. --wait waits until it’s done and prints it.
Part of ezgh databases.
Examples
ezgh databases update orders --storage-size-gib 200 --waitFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--allowed-source-cidr |
string, repeatable | an IPv4 CIDR that may connect; repeat for more, at most 20; replaces them all | |
--backup-retention-days |
int | days automated backups are kept, 1 to 35 | |
--backup-window |
string | when the daily backup is taken, HH:MM-HH:MM UTC | |
--clear-parameters |
boolean | put every parameter back to its default | |
--clear-tags |
boolean | remove its tags | |
--deletion-protection |
boolean | refuse deletes (--deletion-protection=false allows them again) |
|
--description |
string | a new description | |
--instance-type |
string | a new gp-1 or gs-1 instance type | |
--log-export |
string, repeatable | send these logs to Obs: error, slow or audit; repeat for more; replaces them all | |
--maintenance-window |
string | when maintenance happens, ddd:HH:MM-ddd:HH:MM UTC | |
--name |
string | a new name | |
--no-log-exports |
boolean | stop sending logs to Obs | |
--parameter |
string, repeatable | set an engine parameter, name=value; repeat for more; the others stay | |
--storage-iops |
int | its storage’s IOPS | |
--storage-size-gib |
int | a larger storage size, in GiB | |
--storage-throughput |
int | its storage’s throughput, in MB/s | |
--tag |
string, repeatable | a tag, key=value; repeat for more | |
--unset-parameter |
string, repeatable | put a parameter back to its default; repeat for more | |
--wait |
boolean | wait until it’s done, and print it then | |
--wait-timeout |
duration | 10m0s |
how long --wait waits |
This command also takes the global flags.