OPNsense Forum
English Forums => Development and Code Review => Topic started by: wsimpson on July 15, 2021, 08:31:41 am
-
Using the API access pattern described at https://docs.opnsense.org/development/api.html, I would like to be able to retrieve the DHCP lease list, i.e. the same data shown at https://<opnsense>/status_dhcp_leases.php. I can successful make other API calls from core and diagnostics modules, for example, so I believe I have my authentication keys setup and being used correctly.
How can I determine the module/controller/command for the DHCP lease information?
Thank you in advance.
-
Static pages ending in .php have no MVC-backed API. It's why we need to replace them eventually.
Cheers,
Franco