This function retrieves the server's hostname.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ gethostname
{- "data": {
- "hostname": "hostname.example.com"
}, - "metadata": {
- "command": "gethostname",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}