Create (PostgreSQL)
POST
/databases/postgresql
Create a new PostgreSQL database.
Authorizations
bearerAuth
Go to Keys & Tokens
/ API tokens
and create a new token. Use the token as the bearer token.
TypeHTTP (bearer)
Request Body
JSON
{
"server_uuid": "string",
"project_uuid": "string",
"environment_name": "string",
"environment_uuid": "string",
"postgres_user": "string",
"postgres_password": "string",
"postgres_db": "string",
"postgres_initdb_args": "string",
"postgres_host_auth_method": "string",
"postgres_conf": "string",
"destination_uuid": "string",
"name": "string",
"description": "string",
"image": "string",
"is_public": true,
"public_port": 0,
"limits_memory": "string",
"limits_memory_swap": "string",
"limits_memory_swappiness": 0,
"limits_memory_reservation": "string",
"limits_cpus": "string",
"limits_cpuset": "string",
"limits_cpu_shares": 0,
"instant_deploy": true
}
Responses
Database updated
POST
/databases/postgresql