Server Administration
System Information

Return server's hostname

This function retrieves the server's hostname.

get/gethostname

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": "gethostname",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}

Changes

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