Ploi API
Ploi API

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


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 "{server}/databases" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
    -d "name"="my_database" \

Example response:

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"