List system users

Retrieve a list of all system users on a server.


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

List all system users

This endpoint allows you to retrieve a paginated list of all system users on a server.

Request

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

Response

{
  "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
  }
}