The easiest way to generate an API request is to perform a desired action in the panel interface and view the function and its parameters in the log file.
Complete the following steps:
1. Open the log file of the control panel with the ''tail'' command:
tail -f /usr/local/mgr5/var/XXXmgr.log | grep Request
where XXX is a short name of the control panel. For example: bill, isp, vm, dci
2. Execute a required action in the interface of the control panel. In the log file you will see the function being executed at that moment, and its parameters (it is shown in green color starting from INFO Request).
|