Server Administration
System Information

Return server's hostname

This function retrieves the server's hostname. WebPros Dashboard uses this function to discover the WHM API endpoint.

get/wp_dashboard_get_hostname

Request

  • Base URL
    https://whm-server.tld:2087/json-api
  • Auth
    HTTP basic

Response

HTTP Request was successful.

Example response

{
  "data": {
    "hostname": "hostname.example.com"
  },
  "metadata": {
    "command": "wp_dashboard_get_hostname",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.