Acknowledge database
Sometimes applications can create databases outside of Ploi, this will result in the fact that Ploi does not know about external created databases. This endpoint is meant to get Ploi up to date about the created databases outside the knowledge of Ploi.
POST api/servers/{server}/databases/acknowledge
Parameters
Parameter | Type | Status | Description |
---|---|---|---|
name | string | required | Allowed: alpha-numeric characters, as well as dashes and underscores. Minimum: 2 Maximum: 64 Not in: database |
Example request:
curl -X POST "https://ploi.io/api/servers/{server}/databases" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "name"="my_database" \
Example response:
HTTP/1.1 201 CREATED
Content-Type: application/json
{
"data": {
"id": 1,
"type": "mysql",
"name": "my_database",
"server_id": 1,
"status": "created",
"created_at": "2019-07-16 13:05:58"
}
}