.pdf)
WHM Plugins
gethostname function from within your custom script:
/xml-api/gethostname function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/gethostname
gethostname function from within your custom script:
/json-api/gethostname function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/gethostname
gethostname function. myserver.example.com
https://example.com:2087/xml-api/gethostname in WebHost Manager will produce output similar to:
<gethostname>
<hostname>myserver.example.com</hostname>
</gethostname>
https://example.com:2087/json-api/gethostname in WebHost Manager will produce output similar to:
{
"hostname":"myserver.example.com"
}