Path parameters
-
Service name
Minimum length is
0
, maximum length is63
.
Body Required
-
pgbouncer-settings object
PGBouncer connection pooling settings
Additional properties are allowed.
-
backup-schedule object
Additional properties are allowed.
-
variant string
Variant of the PostgreSQL service, may affect the features that are exposed by default
Values are
timescale
oraiven
. -
timescaledb-settings object
TimescaleDB extension configuration values
Additional properties are allowed.
-
ip-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 off
-
synchronous-replication string
Synchronous replication type. Note that the service plan also needs to support synchronous replication.
Values are
quorum
oroff
. -
pglookout-settings object
PGLookout settings
Additional properties are allowed.
-
maintenance object
Automatic maintenance settings
Additional properties are allowed.
-
version string
Version
-
plan string
Subscription plan
Minimum length is
1
, maximum length is128
. -
work-mem integer(int64)
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).
Minimum value is
1
, maximum value is1024
. -
pg-settings object
PostgreSQL-specific settings
Additional properties are NOT allowed.
-
migration object
Migrate data from existing server
Additional properties are allowed.
curl \
-X PUT https://api-ch-gva-2.exoscale.com/v2/dbaas-postgres/{name} \
-H "Content-Type: application/json" \
-d '{"pgbouncer-settings":{"min_pool_size":0,"ignore_startup_parameters":["extra_float_digits","search_path"],"server_lifetime":3600,"autodb_pool_mode":"session","server_idle_timeout":600,"autodb_max_db_connections":0,"max_prepared_statements":100,"server_reset_query_always":false,"autodb_pool_size":0,"autodb_idle_timeout":3600},"backup-schedule":{"backup-hour":42,"backup-minute":42},"variant":"timescale","timescaledb-settings":{"max_background_workers":8},"ip-filter":["string"],"termination-protection":true,"synchronous-replication":"quorum","pglookout-settings":{"max_failover_replication_time_lag":60},"maintenance":{"dow":"saturday","time":"string"},"version":"string","plan":"string","work-mem":42,"shared-buffers-percentage":42,"pg-settings":{"track_activity_query_size":1024,"timezone":"Europe/Helsinki","track_io_timing":"off","pg_stat_monitor.pgsm_enable_query_plan":false,"max_files_per_process":42,"pg_stat_monitor.pgsm_max_buckets":10,"wal":{"max_slot_wal_keep_size":42,"max_wal_senders":42,"wal_sender_timeout":42,"wal_writer_delay":50},"default_toast_compression":"lz4","deadlock_timeout":1000,"idle_in_transaction_session_timeout":42,"max_pred_locks_per_transaction":42,"max_replication_slots":42,"autovacuum":{"log_autovacuum_min_duration":42,"autovacuum_vacuum_cost_limit":42,"autovacuum_max_workers":42,"autovacuum_vacuum_threshold":42,"autovacuum_naptime":42,"autovacuum_vacuum_scale_factor":42.0,"autovacuum_vacuum_cost_delay":42,"autovacuum_analyze_scale_factor":42.0,"autovacuum_analyze_threshold":42,"autovacuum_freeze_max_age":200000000},"max_parallel_workers_per_gather":42,"pg_partman_bgw.interval":3600,"log_line_prefix":"'pid=%p,user=%u,db=%d,app=%a,client=%h '","log_temp_files":42,"max_locks_per_transaction":42,"track_commit_timestamp":"off","track_functions":"all","max_stack_depth":42,"max_parallel_workers":42,"pg_partman_bgw.role":"myrolename","max_logical_replication_workers":42,"max_prepared_transactions":42,"max_worker_processes":42,"pg_stat_statements.track":"all","temp_file_limit":5000000,"log_error_verbosity":"TERSE","log_min_duration_statement":42,"max_standby_streaming_delay":42,"jit":true,"max_standby_archive_delay":42,"bg-writer":{"bgwriter_delay":200,"bgwriter_flush_after":512,"bgwriter_lru_maxpages":100,"bgwriter_lru_multiplier":2.0}},"migration":{"host":"string","port":42,"password":"string","ssl":true,"username":"string","dbname":"string","ignore-dbs":"string","method":"dump"}}'
{
"pgbouncer-settings": {
"min_pool_size": 0,
"ignore_startup_parameters": [
"extra_float_digits",
"search_path"
],
"server_lifetime": 3600,
"autodb_pool_mode": "session",
"server_idle_timeout": 600,
"autodb_max_db_connections": 0,
"max_prepared_statements": 100,
"server_reset_query_always": false,
"autodb_pool_size": 0,
"autodb_idle_timeout": 3600
},
"backup-schedule": {
"backup-hour": 42,
"backup-minute": 42
},
"variant": "timescale",
"timescaledb-settings": {
"max_background_workers": 8
},
"ip-filter": [
"string"
],
"termination-protection": true,
"synchronous-replication": "quorum",
"pglookout-settings": {
"max_failover_replication_time_lag": 60
},
"maintenance": {
"dow": "saturday",
"time": "string"
},
"version": "string",
"plan": "string",
"work-mem": 42,
"shared-buffers-percentage": 42,
"pg-settings": {
"track_activity_query_size": 1024,
"timezone": "Europe/Helsinki",
"track_io_timing": "off",
"pg_stat_monitor.pgsm_enable_query_plan": false,
"max_files_per_process": 42,
"pg_stat_monitor.pgsm_max_buckets": 10,
"wal": {
"max_slot_wal_keep_size": 42,
"max_wal_senders": 42,
"wal_sender_timeout": 42,
"wal_writer_delay": 50
},
"default_toast_compression": "lz4",
"deadlock_timeout": 1000,
"idle_in_transaction_session_timeout": 42,
"max_pred_locks_per_transaction": 42,
"max_replication_slots": 42,
"autovacuum": {
"log_autovacuum_min_duration": 42,
"autovacuum_vacuum_cost_limit": 42,
"autovacuum_max_workers": 42,
"autovacuum_vacuum_threshold": 42,
"autovacuum_naptime": 42,
"autovacuum_vacuum_scale_factor": 42.0,
"autovacuum_vacuum_cost_delay": 42,
"autovacuum_analyze_scale_factor": 42.0,
"autovacuum_analyze_threshold": 42,
"autovacuum_freeze_max_age": 200000000
},
"max_parallel_workers_per_gather": 42,
"pg_partman_bgw.interval": 3600,
"log_line_prefix": "'pid=%p,user=%u,db=%d,app=%a,client=%h '",
"log_temp_files": 42,
"max_locks_per_transaction": 42,
"track_commit_timestamp": "off",
"track_functions": "all",
"max_stack_depth": 42,
"max_parallel_workers": 42,
"pg_partman_bgw.role": "myrolename",
"max_logical_replication_workers": 42,
"max_prepared_transactions": 42,
"max_worker_processes": 42,
"pg_stat_statements.track": "all",
"temp_file_limit": 5000000,
"log_error_verbosity": "TERSE",
"log_min_duration_statement": 42,
"max_standby_streaming_delay": 42,
"jit": true,
"max_standby_archive_delay": 42,
"bg-writer": {
"bgwriter_delay": 200,
"bgwriter_flush_after": 512,
"bgwriter_lru_maxpages": 100,
"bgwriter_lru_multiplier": 2.0
}
},
"migration": {
"host": "string",
"port": 42,
"password": "string",
"ssl": true,
"username": "string",
"dbname": "string",
"ignore-dbs": "string",
"method": "dump"
}
}
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}