Creating a PostgreSQL Database¶
This example shows how to deploy a PostgreSQL database via Gasper
Prerequisites
- You have Master and DbMaker up and running
- You have DbMaker PostgreSQL Plugin enabled
- You have already logged in and obtained a JSON Web Token
$ curl -X POST \
http://localhost:3000/dbs/postgresql \
-H 'Authorization: Bearer {{token}}' \
-H 'Content-Type: application/json' \
-d '{
"name": "alphapostgresql",
"password": "alphapostgresql"
}'
{
"name": "alphapostgresql",
"password": "alphapostgresql",
"user": "alphapostgresql",
"instance_type": "database",
"language": "postgresql",
"db_url": "alphapostgresql.db.sdslabs.co",
"host_ip": "192.168.225.90",
"port": 29121,
"owner": "anish.mukherjee1996@gmail.com",
"success": true
}