API:getServerDetails - Get server details

Get server details. Warning.: This method returns decrypted server password.

Required parameters

id
Server ID

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=getServerDetails&id=ID

Response

   {
      "success": true,
      "server": {
         "id": "2",
         "group_id": "2",
         "default": "1",
         "name": "cPanel",
         "username": "root",
         "password": "e1f1t131s",
         "ip": "127.0.0.1",
         "host": "",
         "status_url": "",
         "ns1": "ns1.hostbillapp.com",
         "ns2": "ns2.hostbillapp.com",
         "ns3": "",
         "ns4": "",
         "ip1": "",
         "ip2": "",
         "ip3": "",
         "ip4": "",
         "max_accounts": "0",
         "default_module": "9",
         "hash": "",
         "secure": "1",
         "enable": "1",
         "field1": "",
         "field2": "",
         "group_name": "cPanel"
      },
      "call": "getServerDetails",
      "server_time": 1317712797
   }