.pdf)
WHM Plugins
suspendreseller function from within your custom script:
/xml-api/suspendreseller 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/suspendreseller
suspendreseller function from within your custom script:
/json-api/suspendreseller 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/suspendreseller
suspendreseller function takes the following variables as input.
The following variable is required: suspendreseller function. 1 — success.
0 — failure.
https://example.com/xml-api/suspendreseller?user=user123&reason=Late%20Payments in WebHost Manager will produce output similar to:
<suspendreseller>
<output>
Changing Shell to /bin/false...Changing shell for user123.
Warning: "/bin/false" is not listed in /etc/shells
Shell changed.
Done
Locking Password...Locking password for user user123.
passwd: Success
Done
Suspending mysql users
Notification => admin@example.com via EMAIL [level => 3]
Using Quota v3 Support
Suspended document root /home/user123/public_html
Using Quota v3 Support
Suspending FTP accounts...
Updating ftp passwords for user123
Ftp password files updated.
Ftp vhost passwords synced
user123's account has been suspended
</output>
<result>
<status>1</status>
<statusmsg>Finished suspending reseller.</statusmsg>
</result>
</suspendreseller>
https://example.com:2087/json-api/suspendreseller?user=user123&reason=Late%20Payments in WebHost Manager will produce something similar to:
{
"result":[
{
"status":1,
"statusmsg":"Finished suspending reseller."
}
],
"output":"Changing Shell to /bin/false...Changing shell for user123.\nWarning:
\"/bin/false\" is not listed in /etc/shells\nShell changed.\nDone\nLocking Password...
Locking password for user user123.\npasswd: Success\nDone\nSuspending mysql
users\nNotification => admin@example.com via EMAIL [level => 3]\nUsing Quota v3
Support\nSuspended document root /home/user123/public_html\nUsing Quota v3
Support\nSuspending FTP accounts...\nUpdating ftp passwords for user123\nFtp
password files updated.\nFtp vhost passwords synced\nuser123's account has been
suspended\n"
}