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