POST
/
databases
/
postgresql

Authorizations

Authorization
string
headerrequired

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

Body

application/json
server_uuid
string
required

UUID of the server

project_uuid
string
required

UUID of the project

environment_name
string
required

Name of the environment

postgres_user
string

PostgreSQL user

postgres_password
string

PostgreSQL password

postgres_db
string

PostgreSQL database

postgres_initdb_args
string

PostgreSQL initdb args

postgres_host_auth_method
string

PostgreSQL host auth method

postgres_conf
string

PostgreSQL conf

destination_uuid
string

UUID of the destination if the server has multiple destinations

name
string

Name of the database

description
string

Description of the database

image
string

Docker Image of the database

is_public
boolean

Is the database public?

public_port
integer

Public port of the database

limits_memory
string

Memory limit of the database

limits_memory_swap
string

Memory swap limit of the database

limits_memory_swappiness
integer

Memory swappiness of the database

limits_memory_reservation
string

Memory reservation of the database

limits_cpus
string

CPU limit of the database

limits_cpuset
string

CPU set of the database

limits_cpu_shares
integer

CPU shares of the database

instant_deploy
boolean

Instant deploy the database