.pdf)
WHM Plugins
setresellerlimits function from within your custom script:
/xml-api/setresellerlimits 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/setresellerlimits
setresellerlimits function from within your custom script:
/json-api/setresellerlimits 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/setresellerlimits
setresellerlimits function takes the following variables as input.
The following variable is required: 1 — enabled.
0 — disabled.
enable_account_limit is set to 1.
1 — enabled.
0 — disabled.
1 — enabled.
0 — disabled.
1 — enabled.
0 — disabled.
1 — enabled.
0 — disabled.
1 — enabled.
0 — disabled.
1 — enabled.
0 — disabled.
setresellerlimits function. 1 — success.
0 — failure.
https://example.com:2087/xml-api//setresellerlimits?user=user123
&enable_account_limit=1&account_limit=100&enable_resource_limits=1
&bandwidth_limit=100000&diskspace_limit=100000&enable_overselling=0
&enable_package_limits=0&enable_package_limit_number=0 in WebHost Manager will produce output similar to:
<setresellerlimits>
<result>
<status>1</status>
<statusmsg>Successfully set reseller account creation limits.</statusmsg>
</result>
</setresellerlimits>
https://example.com:2087/json-api//setresellerlimits?user=user123
&enable_account_limit=1&account_limit=100&enable_resource_limits=1
&bandwidth_limit=100000&diskspace_limit=100000&enable_overselling=0
&enable_package_limits=0&enable_package_limit_number=0 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Successfully set reseller account creation limits."
}
]
}