List database users
List all the database users.
GET api/servers/{server}/databases/{database}/users
Example request:
curl -X GET "https://ploi.io/api/servers/{server}/databases/{database}/users" \
-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": "database_user",
"remote": false,
"remote_ip": "%",
"readonly": false,
"created_at": "2022-01-24 10:01:56"
}
],
"links": {
"first": "https://ploi.io/api/servers/1/databases/1/users?page=1",
"last": "https://ploi.io/api/servers/1/databases/1/users?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "«",
"active": false
},
{
"url": "https://ploi.io/api/servers/1/databases/1/users?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "»",
"active": false
}
],
"path": "https://ploi.io/api/servers/1/databases/1/users",
"per_page": 15,
"to": 1,
"total": 1
}
}