.pdf)
WHM Plugins
unsuspendreseller function from within your custom script:
/xml-api/unsuspendreseller 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/unsuspendreseller
unsuspendreseller function from within your custom script:
/json-api/unsuspendreseller 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/unsuspendreseller
unsuspendreseller function takes the following required variable as input: unsuspendreseller function. 1 — success.
0 — failure.
https://example.com:2087/xml-api/unsuspendreseller?user=user123 in WebHost Manager will produce output similar to:
<unsuspendreseller>
<output>
Changing shell for user123.
Shell changed.
Unlocking password for user user123.
passwd: Success.
Unsuspending FTP accounts...
Updating ftp passwords for user123
Ftp password files updated.
Ftp vhost passwords synced
user123's account is now active
Unsuspending mysql users
Notification => admin@example.com via EMAIL [level => 3]
</output>
<result>
<status>1</status>
<statusmsg>Finished unsuspending reseller.</statusmsg>
</result>
</unsuspendreseller>
https://example.com:2087/json-api/unsuspendreseller?user=user123 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Finished unsuspending reseller."
}
],
"output":"Changing shell for user123.\nShell changed.\nUnlocking password for user
user123.\npasswd: Success.\nUnsuspending FTP accounts...\nUpdating ftp passwords for
user123\nFtp password files updated.\nFtp vhost passwords synced\nuser123's account is
now active\nUnsuspending mysql users\nNotification => admin@example.com via EMAIL
[level => 3]\n"
}
Copyright © cPanel 2000–2011.