Create Database
POST
/v1/databasesCreate a new database on a given bolt. Warning: the database password will be shown only once after the request is made.
Request
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/json
data
object
required
attributes
object
required
Example
{
"data": {
"attributes": {
"boltId": 8988,
"name": "New Database"
}
}
}
Request samples
Responses
Created(201)
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
data
object
required
id
integer
required
type
string
required
attributes
object
required
relationships
object
required
Example
{
"data": {
"id": 1289,
"type": "databases",
"attributes": {
"webhostId": 8988,
"name": "New Database",
"dbHost": "xxx",
"dbName": "newdatabas0a65",
"dbPass": "xxx",
"dbUser": "newdatabas0a65",
"size": 0,
"tags": "",
"environments": []
},
"relationships": {
"bolt": {
"data": {
"type": "bolts",
"id": 8988
}
},
"server": {
"data": {
"type": "servers",
"id": 35
}
}
}
}
}
Last modified: 6 months ago