dbaas-pg
database
CLI reference for database (dbaas-pg).
gi dbaas-pg database
| Command | Description |
|---|
gi dbaas-pg database get <id> | Get a database. |
gi dbaas-pg database list | List databases. |
gi dbaas-pg database create | Create a new database. |
gi dbaas-pg database update <id> | Update a database. |
gi dbaas-pg database delete <id> | Delete a database. |
gi dbaas-pg database leave_master_from_dc <id> | Leave master database. |
gi dbaas-pg database move_master_onto_dc <id> | Move master database. |
gi dbaas-pg database repack <id> | This action repacks tables in a specific database to optimize storage and performance. |
| Flag | Alias | Description |
|---|
--filter | -f | Filter assets (e.g. attributes.name=my-asset) |
| Flag | Alias | Description |
|---|
--file | — | Path to a YAML or JSON file describing the asset |
| Flag | Alias | Description |
|---|
--file | — | Path to a YAML or JSON file with updated attributes |
# List all
gi dbaas-pg database list
# Get by id
gi dbaas-pg database get <id>
# Filter by attribute
gi dbaas-pg database list -f attributes.architecture=my-value
# Create from file
gi dbaas-pg database create --file asset.yaml
# Update
gi dbaas-pg database update <id> --file asset.yaml
# Delete
gi dbaas-pg database delete <id>
# Leave_master_from_dc
gi dbaas-pg database leave_master_from_dc <id>
# Move_master_onto_dc
gi dbaas-pg database move_master_onto_dc <id>
# Repack
gi dbaas-pg database repack <id>