.pdf)
WHM Plugins
unsuspendacct function from within your custom script:
/xml-api/unsuspendacct 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/unsuspendacct
unsuspendacct function from within your custom script:
/json-api/unsuspendacct 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/unsuspendacct
unsuspendacct function takes the following required variable as input: unsuspendacct function. 1 — success.
0 — failure.
https://example.com:2087/xml-api/unsuspendacct?user=user123 in WebHost Manager will produce output similar to:
<unsuspendacct>
<result>
<status>1</status>
<statusmsg>
<script>if (self['clear_ui_status']) { clear_ui_status(); }</script>
Changing shell for user123.
Shell changed.
Unlocking password for user user123.
passwd: Success.
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]
</statusmsg>
</result>
</unsuspendacct>
https://example.com:2087/json-api/unsuspendacct?user=user123 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"<script>if (self['clear_ui_status']) { clear_ui_status(); }</script>\n
Changing shell for user123.\nShell changed.\nUnlocking password for user user123
.\npasswd: Success.\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"
}
]
}