ServiceProxy
3 functions, invoked through the cpanel_uapi tool.
cpanel_uapi(service_id, module="ServiceProxy", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.get_service_proxy_backends GET#
Return a cPanel account’s service proxying setup
This function reports a cPanel account's service proxying configuration.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data is an array of:
set_service_proxy_backends GET#
Add cPanel account service proxying
This function lets you configure a cPanel account's service proxying.
Note:
- If the Web Server role is active
on the server, this function rebuilds the user's web virtual hosts (vhosts) and restarts the web server.
- If the system cannot rebuild the user's vhosts, the API call will still succeed. However,
the function returns a failure warning in the metadata.
- To remove an account's service proxying, use the UAPI unset_all_service_proxy_backends
function.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.
unset_all_service_proxy_backends GET#
Remove cPanel account service proxying
This function removes a cPanel account's service proxying.
Note:
- 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 UAPI
set_service_proxy_backends function.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.