Get Database

Get the selected database

GET api/servers/{server}/databases/{id}

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/databases/{id}" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": {
        "id": 1,
        "type": "mysql",
        "name": "my_database",
        "server_id": 1,
        "status": "active",
        "created_at": "2019-07-19 08:20:30"
    }
}