DBaaS Postgresql
PostgreSQL, open-source database known for its wide range of features and popularity with developers.
create-dbaas-pg-connection-pool
Create a DBaaS PostgreSQL connection pool
POST /dbaas-postgres/{service-name}/connection-poolPath parameters
service-nameinpath(required)
Request body
application/jsonname(required) (string)database-name(required) (string)mode(string)size(integer)username(string)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for create-dbaas-pg-connection-pool: golang | Python | Java
CLI: exo api create-dbaas-pg-connection-pool
update-dbaas-pg-connection-pool
Update a DBaaS PostgreSQL connection pool
PUT /dbaas-postgres/{service-name}/connection-pool/{connection-pool-name}Path parameters
service-nameinpath(required)connection-pool-nameinpath(required)
Request body
application/jsondatabase-name(string)mode(string)size(integer)username(string)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for update-dbaas-pg-connection-pool: golang | Python | Java
CLI: exo api update-dbaas-pg-connection-pool
delete-dbaas-pg-connection-pool
Delete a DBaaS PostgreSQL connection pool
DELETE /dbaas-postgres/{service-name}/connection-pool/{connection-pool-name}Path parameters
service-nameinpath(required)connection-pool-nameinpath(required)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for delete-dbaas-pg-connection-pool: golang | Python | Java
CLI: exo api delete-dbaas-pg-connection-pool
create-dbaas-pg-database
Create a DBaaS Postgres database
POST /dbaas-postgres/{service-name}/databasenull
Path parameters
service-nameinpath(required)
Request body
application/jsondatabase-name(required) (string)lc-collate(string): Default string sort order (LC_COLLATE) for PostgreSQL databaselc-ctype(string): Default character classification (LC_CTYPE) for PostgreSQL database
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for create-dbaas-pg-database: golang | Python | Java
CLI: exo api create-dbaas-pg-database
delete-dbaas-pg-database
Delete a DBaaS Postgres database
DELETE /dbaas-postgres/{service-name}/database/{database-name}null
Path parameters
service-nameinpath(required)database-nameinpath(required)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for delete-dbaas-pg-database: golang | Python | Java
CLI: exo api delete-dbaas-pg-database
create-dbaas-postgres-user
Create a DBaaS Postgres user
POST /dbaas-postgres/{service-name}/usernull
Path parameters
service-nameinpath(required)
Request body
application/jsonusername(required) (string)allow-replication(boolean)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for create-dbaas-postgres-user: golang | Python | Java
CLI: exo api create-dbaas-postgres-user
delete-dbaas-postgres-user
Delete a DBaaS Postgres user
DELETE /dbaas-postgres/{service-name}/user/{username}null
Path parameters
service-nameinpath(required)usernameinpath(required)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for delete-dbaas-postgres-user: golang | Python | Java
CLI: exo api delete-dbaas-postgres-user
reveal-dbaas-postgres-user-password
Reveal the secrets of a DBaaS Postgres user
GET /dbaas-postgres/{service-name}/user/{username}/password/revealnull
Path parameters
service-nameinpath(required)usernameinpath(required)
Responses
200: 200application/jsonusername(string): Postgres usernamepassword(string): Postgres password
SDK reference for reveal-dbaas-postgres-user-password: golang | Python | Java
CLI: exo api reveal-dbaas-postgres-user-password
reset-dbaas-postgres-user-password
Reset the credentials of a DBaaS Postgres user
PUT /dbaas-postgres/{service-name}/user/{username}/password/resetIf no password is provided one will be generated automatically.
Path parameters
service-nameinpath(required)usernameinpath(required)
Request body
application/jsonpassword(string)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for reset-dbaas-postgres-user-password: golang | Python | Java
CLI: exo api reset-dbaas-postgres-user-password
create-dbaas-service-pg
Create a DBaaS PostgreSQL service
POST /dbaas-postgres/{name}null
Path parameters
nameinpath(required)
Request body
application/jsonpgbouncer-settings(object): System-wide settings for pgbouncer. - schema detailsbackup-schedule(object) - schema detailsvariant(string)integrations(array[object]): Service integrations to be enabled when creating the service. - schema detailstimescaledb-settings(object): System-wide settings for the timescaledb extension - schema detailsip-filter(array[string]): Allow incoming connections from CIDR address block, e.g. ‘10.20.0.0/16’termination-protection(boolean): Service is protected against termination and powering offfork-from-service(string)synchronous-replication(string)recovery-backup-time(string): ISO time of a backup to recover from for services that support arbitrary timespglookout-settings(object): System-wide settings for pglookout. - schema detailsmaintenance(object): Automatic maintenance settings - schema detailsadmin-username(string): Custom username for admin user. This must be set only when a new service is being created.version(string)plan(required) (string): Subscription planwork-mem(integer): Sets the maximum amount of memory to be used by a query operation (such as a sort or hash table) before writing to temporary disk files, in MB. Default is 1MB + 0.075% of total RAM (up to 32MB).shared-buffers-percentage(integer): Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the shared_buffers configuration value.pg-settings(object) - schema detailsadmin-password(string): Custom password for admin user. Defaults to random string. This must be set only when a new service is being created.migration(object): Migrate data from existing server - schema details
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for create-dbaas-service-pg: golang | Python | Java
CLI: exo api create-dbaas-service-pg
get-dbaas-service-pg
Get a DBaaS PostgreSQL service
GET /dbaas-postgres/{name}Get a DBaaS PostgreSQL service
Path parameters
nameinpath(required)
Responses
200: 200application/jsonpgbouncer-settings(object): System-wide settings for pgbouncer. - schema detailsupdated-at(string): Service last update timestamp (ISO 8601)node-count(integer): Number of service nodes in the active planconnection-info(object): PG connection information properties - schema detailsbackup-schedule(object): Backup schedule - schema detailsnode-cpu-count(integer): Number of CPUs for each nodeprometheus-uri(object): Prometheus integration URI - schema detailsintegrations(array[object]): Service integrations - schema detailszone(string): The zone where the service is runningnode-states(array[object]): State of individual service nodes - schema detailsname(string)connection-pools(array[object]): PostgreSQL PGBouncer connection pools - schema detailstype(string)state(string)timescaledb-settings(object): System-wide settings for the timescaledb extension - schema detailsdatabases(array[string]): List of PostgreSQL databasesip-filter(array[string]): Allowed CIDR address blocks for incoming connectionsbackups(array[object]): List of backups for the service - schema detailstermination-protection(boolean): Service is protected against termination and powering offnotifications(array[object]): Service notifications - schema detailscomponents(array[object]): Service component information objects - schema detailssynchronous-replication(string)pglookout-settings(object): System-wide settings for pglookout. - schema detailsmaintenance(object): Automatic maintenance settings - schema detailsdisk-size(integer): TODO UNIT disk space for data storagenode-memory(integer): TODO UNIT of memory for each nodeuri(string): URI for connecting to the service (may be absent)uri-params(object): service_uri parameterized into key-value pairsversion(string): PostgreSQL versioncreated-at(string): Service creation timestamp (ISO 8601)plan(string): Subscription planwork-mem(integer): Sets the maximum amount of memory to be used by a query operation (such as a sort or hash table) before writing to temporary disk files, in MB. Default is 1MB + 0.075% of total RAM (up to 32MB).shared-buffers-percentage(integer): Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the shared_buffers configuration value.pg-settings(object) - schema detailsmax-connections(integer): Maximum number of connections allowed to an instanceusers(array[object]): List of service users - schema details
SDK reference for get-dbaas-service-pg: golang | Python | Java
CLI: exo api get-dbaas-service-pg
update-dbaas-service-pg
Update a DBaaS PostgreSQL service
PUT /dbaas-postgres/{name}Update a DBaaS PostgreSQL service
Path parameters
nameinpath(required)
Request body
application/jsonpgbouncer-settings(object): System-wide settings for pgbouncer. - schema detailsbackup-schedule(object) - schema detailsvariant(string)timescaledb-settings(object): System-wide settings for the timescaledb extension - schema detailsip-filter(array[string]): Allow incoming connections from CIDR address block, e.g. ‘10.20.0.0/16’termination-protection(boolean): Service is protected against termination and powering offsynchronous-replication(string)pglookout-settings(object): System-wide settings for pglookout. - schema detailsmaintenance(object): Automatic maintenance settings - schema detailsversion(string): Versionplan(string): Subscription planwork-mem(integer): Sets the maximum amount of memory to be used by a query operation (such as a sort or hash table) before writing to temporary disk files, in MB. Default is 1MB + 0.075% of total RAM (up to 32MB).shared-buffers-percentage(integer): Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the shared_buffers configuration value.pg-settings(object) - schema detailsmigration(object): Migrate data from existing server - schema details
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for update-dbaas-service-pg: golang | Python | Java
CLI: exo api update-dbaas-service-pg
delete-dbaas-service-pg
Delete a Postgres service
DELETE /dbaas-postgres/{name}null
Path parameters
nameinpath(required)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for delete-dbaas-service-pg: golang | Python | Java
CLI: exo api delete-dbaas-service-pg
Other Operations
start-dbaas-pg-maintenance
Initiate PostgreSQL maintenance update
PUT /dbaas-postgres/{name}/maintenance/startnull
Path parameters
nameinpath(required)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for start-dbaas-pg-maintenance: golang | Python | Java
CLI: exo api start-dbaas-pg-maintenance
stop-dbaas-pg-migration
Stop a DBaaS PostgreSQL migration
POST /dbaas-postgres/{name}/migration/stopnull
Path parameters
nameinpath(required)
Responses
200: 200application/jsonid(string): Operation IDreason(string): Operation failure reasonreference(object): Related resource reference - schema detailsmessage(string): Operation messagestate(string): Operation status
SDK reference for stop-dbaas-pg-migration: golang | Python | Java
CLI: exo api stop-dbaas-pg-migration
create-dbaas-pg-upgrade-check
POST /dbaas-postgres/{service}/upgrade-checkCheck whether you can upgrade Postgres service to a newer version
Path parameters
serviceinpath(required)
Request body
application/jsontarget-version(required) (string)
Responses
200: 200application/jsonid(string)create-time(string)result(string)result-codes(array[object]) - schema detailssuccess(boolean)task-type(string)
SDK reference for create-dbaas-pg-upgrade-check: golang | Python | Java
CLI: exo api create-dbaas-pg-upgrade-check
update-dbaas-postgres-allow-replication
Update access control for one service user
PUT /dbaas-postgres/{service-name}/user/{username}/allow-replicationnull
Path parameters
service-nameinpath(required)usernameinpath(required)
Request body
application/jsonallow-replication(boolean)
Responses
200: 200application/jsonusers(array[object]) - schema details
SDK reference for update-dbaas-postgres-allow-replication: golang | Python | Java
CLI: exo api update-dbaas-postgres-allow-replication
get-dbaas-settings-pg
Get DBaaS PostgreSQL settings
GET /dbaas-settings-pgGet DBaaS PostgreSQL settings
Responses
200: 200application/jsonsettings(object) - schema details
SDK reference for get-dbaas-settings-pg: golang | Python | Java
CLI: exo api get-dbaas-settings-pg