# List

Get Server List

Method: GET

# Endpoint:

https://api.serveravatar.com/teams/{team_id}/servers

# Request Example:

curl --request GET --url "https://api.serveravatar.com/teams/1101/servers" \
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'

# Response:

# Servers List

  • 200 (Ok)
{
  "servers": [
    {
      "id": 2719,
      "team_id": 1101,
      "ip": "207.148.86.87",
      "name": "TestServer",
      "hostname": "test-Server",
      "operating_system": "Ubuntu",
      "version": "18.04",
      "web_server": "nginx",
      "status": "Connected",
      "php_cli_version": 7.2,
      "ssh_port": 22,
      "phpmyadmin_slug": null,
      "agent_connect": "Connected",
      "created_at": "2020-02-15 12:12:22",
      "updated_at": "2020-02-15 12:15:36",
      "deleted_at": null,
      "is_expire": false,
      "monitorLog": null
    },
    {
      "id": 2721,
      "team_id": 1101,
      "ip": "45.77.18.167",
      "name": "TestSA",
      "hostname": "test-SA",
      "operating_system": "Ubuntu",
      "version": "18.04",
      "web_server": "apache",
      "status": "Connected",
      "php_cli_version": 7.2,
      "ssh_port": 22,
      "phpmyadmin_slug": null,
      "agent_connect": "Connected",
      "created_at": "2020-02-15 13:16:58",
      "updated_at": "2020-02-15 13:20:24",
      "deleted_at": null,
      "is_expire": false,
      "monitorLog": null
    }
  ],
  "is_member": false,
  "is_show_add_credit": false
}

# Team Not Found

  • 404 (Not found)
{
    "message": "Team not found."
}

# Server Error

  • 500 (Internal Server Error)
{
    "message": "Something went really wrong while loading servers!"
}