.pdf)
WHM Plugins
setresellermainip function from within your custom script:
/xml-api/setresellermainip 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/setresellermainip
setresellermainip function from within your custom script:
/json-api/setresellermainip 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/setresellermainip
setresellermainip function takes the following required variables as input: 127.0.0.1
setresellermainip function. 1 — success.
0 — failure.
https://example.com:2087/xml-api/setresellermainip?user=user123&ip=127.0.0.1 in WebHost Manager will produce output similar to:
<setresellermainip>
<result>
<status>1</status>
<statusmsg>Successfully set main IP address of the reseller.</statusmsg>
</result>
</setresellermainip>
https://example.com:2087/json-api/setresellermainip?user=user123&ip=127.0.0.1 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Successfully set main IP address of the reseller."
}
]
}