Ploi API
Ploi API

List system users

List all the system users for the selected server

GET api/servers/{server}/system-users

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/system-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,
            "name": "customer",
            "root": "/home/customer",
            "created_at": "2020-01-01 12:00:00"
        }
    ],
    "links": {
        "first": "https://ploi.io/api/servers/1/system-users?page=1",
        "last": "https://ploi.io/api/servers/1/system-users?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "https://ploi.io/api/servers/1/system-users",
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}