This function lets you configure a cPanel account's service proxying.
Note:
unset_all_service_proxy_backends
function.username required | string <username> The cPanel account's username. Example: username=example |
string or string The hostname or IP address to assign as the server that handles the account's service proxy requests. This parameter defaults to the existing service proxy configuration, if one exists. | |
service_group | string The name of a service group for which to assign a proxy backend. The
corresponding
This parameter defaults to the existing setting, if one exists. Note:
service_group=service-group-0=Mail&service-group-1=Mail&service-group-3=Mail service_group=Mail |
string or string The hostname or IP address of the server to assign as the corresponding
This parameter defaults to the existing setting, if one exists. Note:
service_group_backend=service_group_backend-1=mail.example1.com&service_group_backend-2=mail.example2.com&service_group_backend-3=mail.example3.com service_group_backend=mail.example.com |
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ set_service_proxy_backends \ username='example'
{- "metadata": {
- "command": "set_service_proxy_backends",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}