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
| Name | In | Description |
|---|---|---|
service-name | path |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
database-name | string | yes | Service database name |
name | string | yes | Connection pool name |
mode | string | no | PGBouncer pool mode Allowed values: transaction, statement, session. |
size | integer | no | Size of PGBouncer’s PostgreSQL side connection pool |
username | string | no | Pool username |
Example
{
"database-name": "string",
"mode": "transaction",
"name": "string",
"size": 0,
"username": "string"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
service-name | path | |
connection-pool-name | path |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
database-name | string | no | Service database name |
mode | string | no | PGBouncer pool mode Allowed values: transaction, statement, session. |
size | integer | no | Size of PGBouncer’s PostgreSQL side connection pool |
username | string | no | Pool username |
Example
{
"database-name": "string",
"mode": "transaction",
"size": 0,
"username": "string"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
service-name | path | |
connection-pool-name | path |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
service-name | path |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
database-name | string | yes | Service database name |
lc-collate | string | no | Default string sort order (LC_COLLATE) for PostgreSQL database |
lc-ctype | string | no | Default character classification (LC_CTYPE) for PostgreSQL database |
Example
{
"database-name": "string",
"lc-collate": "string",
"lc-ctype": "string"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
service-name | path | |
database-name | path |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
service-name | path |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
username | string | yes | Username |
allow-replication | boolean | no |
Example
{
"allow-replication": true,
"username": "string"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
service-name | path | |
username | path |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
service-name | path | |
username | path |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
password | string | Postgres password |
username | string | Postgres username |
Example output
{
"password": "string",
"username": "string"
}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
| Name | In | Description |
|---|---|---|
service-name | path | |
username | path |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
password | string | no | New password |
Example
{
"password": "string"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
name | path |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
plan | string | yes | Subscription plan |
admin-password | string | no | Custom password for admin user. Defaults to random string. This must be set only when a new service is being created. |
admin-username | string | no | Custom username for admin user. This must be set only when a new service is being created. |
backup-schedule | object | no | schema details |
fork-from-service | string | no | Service to fork from |
integrations | array[object] | no | Service integrations to be enabled when creating the service. schema details |
ip-filter | array[string] | no | Allow incoming connections from CIDR address block, e.g. ‘10.20.0.0/16’ |
maintenance | object | no | Automatic maintenance settings schema details |
migration | object | no | Migrate data from existing server schema details |
pg-settings | object | no | PostgreSQL-specific settings schema details |
pgbouncer-settings | object | no | System-wide settings for pgbouncer. schema details |
pglookout-settings | object | no | System-wide settings for pglookout. schema details |
recovery-backup-time | string | no | ISO time of a backup to recover from for services that support arbitrary times |
shared-buffers-percentage | integer | no | 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. |
synchronous-replication | string | no | Synchronous replication type. Note that the service plan also needs to support synchronous replication. Allowed values: quorum, off. |
termination-protection | boolean | no | Service is protected against termination and powering off |
timescaledb-settings | object | no | System-wide settings for the timescaledb extension schema details |
variant | string | no | Variant of the PostgreSQL service, may affect the features that are exposed by default Allowed values: timescale, aiven. |
version | string | no | PostgreSQL major version Allowed values: 14, 17, 15, 18, 13, 16. |
work-mem | integer | no | 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). |
Example
{
"admin-password": "string",
"admin-username": "string",
"backup-schedule": {
"backup-hour": 0,
"backup-minute": 0
},
"fork-from-service": "string",
"integrations": [
{
"dest-service": "string",
"settings": {},
"source-service": "string",
"type": "read_replica"
}
],
"ip-filter": [
"string"
],
"maintenance": {
"dow": "saturday",
"time": "string"
},
"migration": {
"dbname": "string",
"host": "string",
"ignore-dbs": "string",
"method": "dump",
"password": "string",
"port": 0,
"ssl": true,
"username": "string"
},
"pg-settings": {
"autovacuum": {
"autovacuum_analyze_scale_factor": 0,
"autovacuum_analyze_threshold": 0,
"autovacuum_freeze_max_age": 0,
"autovacuum_max_workers": 0,
"autovacuum_naptime": 0,
"autovacuum_vacuum_cost_delay": 0,
"autovacuum_vacuum_cost_limit": 0,
"autovacuum_vacuum_scale_factor": 0,
"autovacuum_vacuum_threshold": 0,
"log_autovacuum_min_duration": 0
},
"bg-writer": {
"bgwriter_delay": 0,
"bgwriter_flush_after": 0,
"bgwriter_lru_maxpages": 0,
"bgwriter_lru_multiplier": 0
},
"deadlock_timeout": 0,
"default_toast_compression": "lz4",
"idle_in_transaction_session_timeout": 0,
"io_combine_limit": 0,
"io_max_combine_limit": 0,
"io_max_concurrency": 0,
"io_method": "worker",
"io_workers": 0,
"jit": true,
"log_error_verbosity": "TERSE",
"log_line_prefix": "'pid=%p,user=%u,db=%d,app=%a,client=%h '",
"log_min_duration_statement": 0,
"log_temp_files": 0,
"max_files_per_process": 0,
"max_locks_per_transaction": 0,
"max_logical_replication_workers": 0,
"max_parallel_workers": 0,
"max_parallel_workers_per_gather": 0,
"max_pred_locks_per_transaction": 0,
"max_prepared_transactions": 0,
"max_replication_slots": 0,
"max_stack_depth": 0,
"max_standby_archive_delay": 0,
"max_standby_streaming_delay": 0,
"max_sync_workers_per_subscription": 0,
"max_worker_processes": 0,
"password_encryption": "md5",
"pg_partman_bgw.interval": 0,
"pg_partman_bgw.role": "myrolename",
"pg_stat_monitor.pgsm_enable_query_plan": true,
"pg_stat_monitor.pgsm_max_buckets": 0,
"pg_stat_statements.track": "all",
"temp_file_limit": 0,
"timezone": "Europe/Helsinki",
"track_activity_query_size": 0,
"track_commit_timestamp": "off",
"track_functions": "all",
"track_io_timing": "off",
"wal": {
"max_slot_wal_keep_size": 0,
"max_wal_senders": 0,
"wal_sender_timeout": 0,
"wal_writer_delay": 0
}
},
"pgbouncer-settings": {
"autodb_idle_timeout": 0,
"autodb_max_db_connections": 0,
"autodb_pool_mode": "transaction",
"autodb_pool_size": 0,
"ignore_startup_parameters": [
"extra_float_digits"
],
"max_prepared_statements": 0,
"min_pool_size": 0,
"server_idle_timeout": 0,
"server_lifetime": 0,
"server_reset_query_always": true
},
"pglookout-settings": {
"max_failover_replication_time_lag": 0
},
"plan": "string",
"recovery-backup-time": "string",
"shared-buffers-percentage": 0,
"synchronous-replication": "quorum",
"termination-protection": true,
"timescaledb-settings": {
"max_background_workers": 0
},
"variant": "timescale",
"version": "14",
"work-mem": 0
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
name | path |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
backup-schedule | object | Backup schedule schema details |
backups | array[object] | List of backups for the service schema details |
components | array[object] | Service component information objects schema details |
connection-info | object | PG connection information properties schema details |
connection-pools | array[object] | PostgreSQL PGBouncer connection pools schema details |
created-at | string | Service creation timestamp (ISO 8601) |
databases | array[string] | List of PostgreSQL databases |
disk-size | integer | TODO UNIT disk space for data storage |
integrations | array[object] | Service integrations schema details |
ip-filter | array[string] | Allowed CIDR address blocks for incoming connections |
maintenance | object | Automatic maintenance settings schema details |
max-connections | integer | Maximum number of connections allowed to an instance |
name | string | Service name |
node-count | integer | Number of service nodes in the active plan |
node-cpu-count | integer | Number of CPUs for each node |
node-memory | integer | TODO UNIT of memory for each node |
node-states | array[object] | State of individual service nodes schema details |
notifications | array[object] | Service notifications schema details |
pg-settings | object | PostgreSQL-specific settings schema details |
pgbouncer-settings | object | System-wide settings for pgbouncer. schema details |
pglookout-settings | object | System-wide settings for pglookout. schema details |
plan | string | Subscription plan |
prometheus-uri | object | Prometheus integration URI schema details |
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. |
state | string | State of the service Allowed values: running, rebuilding, rebalancing, poweroff. |
synchronous-replication | string | Synchronous replication type. Note that the service plan also needs to support synchronous replication. Allowed values: quorum, off. |
termination-protection | boolean | Service is protected against termination and powering off |
timescaledb-settings | object | System-wide settings for the timescaledb extension schema details |
type | string | Service type code |
updated-at | string | Service last update timestamp (ISO 8601) |
uri | string | URI for connecting to the service (may be absent) |
uri-params | object | service_uri parameterized into key-value pairs |
users | array[object] | List of service users schema details |
version | string | PostgreSQL version |
work-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). |
zone | string | The zone where the service is running |
Example output
{
"backup-schedule": {
"backup-hour": 0,
"backup-minute": 0
},
"backups": [
{
"backup-name": "string",
"backup-time": "2024-01-01T12:00:00Z",
"data-size": 0
}
],
"components": [
{
"component": "string",
"host": "string",
"port": 0,
"route": "dynamic",
"usage": "primary"
}
],
"connection-info": {
"params": [
{}
],
"standby": [
"string"
],
"syncing": [
"string"
],
"uri": [
"string"
]
},
"connection-pools": [
{
"connection-uri": "string",
"database": "string",
"mode": "transaction",
"name": "string",
"size": 0,
"username": "string"
}
],
"created-at": "2024-01-01T12:00:00Z",
"databases": [
"string"
],
"disk-size": 0,
"integrations": [
{
"description": "string",
"dest": "string",
"id": "string",
"is-active": true,
"is-enabled": true,
"settings": {},
"source": "string",
"status": "string",
"type": "string"
}
],
"ip-filter": [
"string"
],
"maintenance": {
"dow": "saturday",
"time": "string",
"updates": [
{
"deadline": "2024-01-01T12:00:00Z",
"description": "string",
"start-after": "2024-01-01T12:00:00Z",
"start-at": "2024-01-01T12:00:00Z"
}
]
},
"max-connections": 0,
"name": "string",
"node-count": 0,
"node-cpu-count": 0,
"node-memory": 0,
"node-states": [
{
"name": "string",
"progress-updates": [
{
"completed": true,
"current": 0,
"max": 0,
"min": 0,
"phase": "stream",
"unit": "string"
}
],
"role": "standby",
"state": "leaving"
}
],
"notifications": [
{
"level": "warning",
"message": "string",
"metadata": {},
"type": "service_powered_off_removal"
}
],
"pg-settings": {
"autovacuum": {
"autovacuum_analyze_scale_factor": 0,
"autovacuum_analyze_threshold": 0,
"autovacuum_freeze_max_age": 0,
"autovacuum_max_workers": 0,
"autovacuum_naptime": 0,
"autovacuum_vacuum_cost_delay": 0,
"autovacuum_vacuum_cost_limit": 0,
"autovacuum_vacuum_scale_factor": 0,
"autovacuum_vacuum_threshold": 0,
"log_autovacuum_min_duration": 0
},
"bg-writer": {
"bgwriter_delay": 0,
"bgwriter_flush_after": 0,
"bgwriter_lru_maxpages": 0,
"bgwriter_lru_multiplier": 0
},
"deadlock_timeout": 0,
"default_toast_compression": "lz4",
"idle_in_transaction_session_timeout": 0,
"io_combine_limit": 0,
"io_max_combine_limit": 0,
"io_max_concurrency": 0,
"io_method": "worker",
"io_workers": 0,
"jit": true,
"log_error_verbosity": "TERSE",
"log_line_prefix": "'pid=%p,user=%u,db=%d,app=%a,client=%h '",
"log_min_duration_statement": 0,
"log_temp_files": 0,
"max_files_per_process": 0,
"max_locks_per_transaction": 0,
"max_logical_replication_workers": 0,
"max_parallel_workers": 0,
"max_parallel_workers_per_gather": 0,
"max_pred_locks_per_transaction": 0,
"max_prepared_transactions": 0,
"max_replication_slots": 0,
"max_stack_depth": 0,
"max_standby_archive_delay": 0,
"max_standby_streaming_delay": 0,
"max_sync_workers_per_subscription": 0,
"max_worker_processes": 0,
"password_encryption": "md5",
"pg_partman_bgw.interval": 0,
"pg_partman_bgw.role": "myrolename",
"pg_stat_monitor.pgsm_enable_query_plan": true,
"pg_stat_monitor.pgsm_max_buckets": 0,
"pg_stat_statements.track": "all",
"temp_file_limit": 0,
"timezone": "Europe/Helsinki",
"track_activity_query_size": 0,
"track_commit_timestamp": "off",
"track_functions": "all",
"track_io_timing": "off",
"wal": {
"max_slot_wal_keep_size": 0,
"max_wal_senders": 0,
"wal_sender_timeout": 0,
"wal_writer_delay": 0
}
},
"pgbouncer-settings": {
"autodb_idle_timeout": 0,
"autodb_max_db_connections": 0,
"autodb_pool_mode": "transaction",
"autodb_pool_size": 0,
"ignore_startup_parameters": [
"extra_float_digits"
],
"max_prepared_statements": 0,
"min_pool_size": 0,
"server_idle_timeout": 0,
"server_lifetime": 0,
"server_reset_query_always": true
},
"pglookout-settings": {
"max_failover_replication_time_lag": 0
},
"plan": "string",
"prometheus-uri": {
"host": "string",
"port": 0
},
"shared-buffers-percentage": 0,
"state": "running",
"synchronous-replication": "quorum",
"termination-protection": true,
"timescaledb-settings": {
"max_background_workers": 0
},
"type": "string",
"updated-at": "2024-01-01T12:00:00Z",
"uri": "string",
"uri-params": {},
"users": [
{
"allow-replication": true,
"password": "string",
"type": "string",
"username": "string"
}
],
"version": "string",
"work-mem": 0,
"zone": "string"
}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
| Name | In | Description |
|---|---|---|
name | path |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
backup-schedule | object | no | schema details |
ip-filter | array[string] | no | Allow incoming connections from CIDR address block, e.g. ‘10.20.0.0/16’ |
maintenance | object | no | Automatic maintenance settings schema details |
migration | object | no | Migrate data from existing server schema details |
pg-settings | object | no | PostgreSQL-specific settings schema details |
pgbouncer-settings | object | no | System-wide settings for pgbouncer. schema details |
pglookout-settings | object | no | System-wide settings for pglookout. schema details |
plan | string | no | Subscription plan |
shared-buffers-percentage | integer | no | 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. |
synchronous-replication | string | no | Synchronous replication type. Note that the service plan also needs to support synchronous replication. Allowed values: quorum, off. |
termination-protection | boolean | no | Service is protected against termination and powering off |
timescaledb-settings | object | no | System-wide settings for the timescaledb extension schema details |
variant | string | no | Variant of the PostgreSQL service, may affect the features that are exposed by default Allowed values: timescale, aiven. |
version | string | no | Version |
work-mem | integer | no | 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). |
Example
{
"backup-schedule": {
"backup-hour": 0,
"backup-minute": 0
},
"ip-filter": [
"string"
],
"maintenance": {
"dow": "saturday",
"time": "string"
},
"migration": {
"dbname": "string",
"host": "string",
"ignore-dbs": "string",
"method": "dump",
"password": "string",
"port": 0,
"ssl": true,
"username": "string"
},
"pg-settings": {
"autovacuum": {
"autovacuum_analyze_scale_factor": 0,
"autovacuum_analyze_threshold": 0,
"autovacuum_freeze_max_age": 0,
"autovacuum_max_workers": 0,
"autovacuum_naptime": 0,
"autovacuum_vacuum_cost_delay": 0,
"autovacuum_vacuum_cost_limit": 0,
"autovacuum_vacuum_scale_factor": 0,
"autovacuum_vacuum_threshold": 0,
"log_autovacuum_min_duration": 0
},
"bg-writer": {
"bgwriter_delay": 0,
"bgwriter_flush_after": 0,
"bgwriter_lru_maxpages": 0,
"bgwriter_lru_multiplier": 0
},
"deadlock_timeout": 0,
"default_toast_compression": "lz4",
"idle_in_transaction_session_timeout": 0,
"io_combine_limit": 0,
"io_max_combine_limit": 0,
"io_max_concurrency": 0,
"io_method": "worker",
"io_workers": 0,
"jit": true,
"log_error_verbosity": "TERSE",
"log_line_prefix": "'pid=%p,user=%u,db=%d,app=%a,client=%h '",
"log_min_duration_statement": 0,
"log_temp_files": 0,
"max_files_per_process": 0,
"max_locks_per_transaction": 0,
"max_logical_replication_workers": 0,
"max_parallel_workers": 0,
"max_parallel_workers_per_gather": 0,
"max_pred_locks_per_transaction": 0,
"max_prepared_transactions": 0,
"max_replication_slots": 0,
"max_stack_depth": 0,
"max_standby_archive_delay": 0,
"max_standby_streaming_delay": 0,
"max_sync_workers_per_subscription": 0,
"max_worker_processes": 0,
"password_encryption": "md5",
"pg_partman_bgw.interval": 0,
"pg_partman_bgw.role": "myrolename",
"pg_stat_monitor.pgsm_enable_query_plan": true,
"pg_stat_monitor.pgsm_max_buckets": 0,
"pg_stat_statements.track": "all",
"temp_file_limit": 0,
"timezone": "Europe/Helsinki",
"track_activity_query_size": 0,
"track_commit_timestamp": "off",
"track_functions": "all",
"track_io_timing": "off",
"wal": {
"max_slot_wal_keep_size": 0,
"max_wal_senders": 0,
"wal_sender_timeout": 0,
"wal_writer_delay": 0
}
},
"pgbouncer-settings": {
"autodb_idle_timeout": 0,
"autodb_max_db_connections": 0,
"autodb_pool_mode": "transaction",
"autodb_pool_size": 0,
"ignore_startup_parameters": [
"extra_float_digits"
],
"max_prepared_statements": 0,
"min_pool_size": 0,
"server_idle_timeout": 0,
"server_lifetime": 0,
"server_reset_query_always": true
},
"pglookout-settings": {
"max_failover_replication_time_lag": 0
},
"plan": "string",
"shared-buffers-percentage": 0,
"synchronous-replication": "quorum",
"termination-protection": true,
"timescaledb-settings": {
"max_background_workers": 0
},
"variant": "timescale",
"version": "string",
"work-mem": 0
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
name | path |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
name | path |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
name | path |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | object | Related resource reference schema details |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}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
| Name | In | Description |
|---|---|---|
service | path |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
target-version | string | yes | Target version for upgrade Allowed values: 14, 17, 15, 18, 13, 16. |
Example
{
"target-version": "14"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
create-time | string | |
id | string | |
result | string | |
result-codes | array[object] | schema details |
success | boolean | |
task-type | string |
Example output
{
"create-time": "2024-01-01T12:00:00Z",
"id": "string",
"result": "string",
"result-codes": [
{
"code": "string",
"dbname": "string"
}
],
"success": true,
"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
| Name | In | Description |
|---|---|---|
service-name | path | |
username | path |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
allow-replication | boolean | no |
Example
{
"allow-replication": true
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
users | array[object] | schema details |
Example output
{
"users": [
{
"allow-replication": true,
"username": "string"
}
]
}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
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
settings | object | schema details |
Example output
{
"settings": {
"pg": {
"additionalProperties": true,
"properties": {},
"title": "string",
"type": "string"
},
"pgbouncer": {
"additionalProperties": true,
"properties": {},
"title": "string",
"type": "string"
},
"pglookout": {
"additionalProperties": true,
"properties": {},
"title": "string",
"type": "string"
},
"timescaledb": {
"additionalProperties": true,
"properties": {},
"title": "string",
"type": "string"
}
}
}SDK reference for get-dbaas-settings-pg: golang | Python | Java
CLI: exo api get-dbaas-settings-pg