Ploi API

Get database user

Get the selected database user

GET api/servers/{server}/databases/{database}/users/{user}

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/databases/{database}/users/{user}" \
-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,
        "user": "my_user",
        "remote": false,
        "remote_ip": "%",
        "readonly": false,
        "created_at": "2022-02-16 10:45:34"
    }
}