Remove cPanel account service proxying

This function removes a cPanel account's service proxying.

Note:

  • If the cPanel account is a distributed account, this function will also unset all service proxying for the cPanel account on the child node.
  • If the Web Server role is active on the server, this function rebuilds the cPanel user's web virtual hosts (vhosts) and restarts the web server.
  • If the system cannot rebuild the cPanel user's vhosts, the API call will still succeed. However, the function returns a failure warning in the metadata.
  • To set a service proxying for a cPanel account, use the WHM API 1 set_service_proxy_backends function.
SecurityBasicAuth
Request
query Parameters
username
required
string <username>

The cPanel account's username.

Example: username=username
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/unset_all_service_proxy_backends
Request samples
whmapi1 --output=jsonpretty \
  unset_all_service_proxy_backends \
  username='username'
Response samples
application/json
{
  • "metadata": {
    • "command": "unset_all_service_proxy_backends",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}