.pdf)
WHM Plugins
setresellerips function from within your custom script:
/xml-api/setresellerips 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/setresellerips
setresellerips function from within your custom script:
/json-api/setresellerips 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/setresellerips
setresellerips function takes the following variables as input.
The following variable is required: 127.0.0.1, 127.0.0.2, 127.0.0.3. When called without this parameter, the reseller's IP list will be cleared.
1 to this parameter requires resellers to choose a dedicated IP address. Passing 0 to this parameter indicates that resellers will use the main shared IP address.
setresellerips function. 1 — success.
0 — failure.
https://example.com:2087/xml-api/setresellerips?user=user123&ips=127.0.0.1,127.0.0.2,127.0.0.3 in WebHost Manager will produce output similar to:
<setresellerips>
<result>
<status>1</status>
<statusmsg>
Successfully configured IP addresses delegation to reseller.
</statusmsg>
</result>
</setresellerips>
https://example.com:2087/json-api/setresellerips?user=user123&ips=127.0.0.1,127.0.0.2,127.0.0.3 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Successfully configured IP addresses delegation to reseller."
}
]
}