Skip to content

postgresql-database

Manage PostgreSQL databases

Authentication scope: fabric

List PostgreSQL databases in a workspace

Terminal window
fabio postgresql-database list --workspace <value>
Flag Type Required Description
--workspace string Yes
--no-recursive bool No
--root-folder-id string No

Read-only · Returns list

Show a PostgreSQL database

Terminal window
fabio postgresql-database show --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes
--id string Yes

Read-only · Returns object

Create a PostgreSQL database

Terminal window
fabio postgresql-database create --workspace <value> --name <value>
Flag Type Required Description
--workspace string Yes
--name string Yes Display name (maximum 63 characters)
--description string No
--folder-id string No
--originating-product string No Caller-declared product that initiated provisioning
--null-creation-payload bool No Explicitly send a null creation payload
--definition string No PostgreSQL schema definition content (inline or @file)

Mutates state · Returns object

Update PostgreSQL database metadata

Terminal window
fabio postgresql-database update --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes
--id string Yes
--name string No
--description string No

Mutates state · Returns void

Permanently delete a PostgreSQL database

Terminal window
fabio postgresql-database delete --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes
--id string Yes

Mutates state · Destructive · Returns void

Get a PostgreSQL database definition

Terminal window
fabio postgresql-database get-definition --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes
--id string Yes
--decode bool No

Read-only · Returns object

Replace a PostgreSQL database definition

Terminal window
fabio postgresql-database update-definition --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes
--id string Yes
--file string No
--content string No
--allow-table-rebuild bool No Consent to schema changes that may rebuild objects and lose data

Mutates state · Destructive · Returns void