Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
How to retrieve DHCP lease list using API?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to retrieve DHCP lease list using API? (Read 4252 times)
wsimpson
Newbie
Posts: 1
Karma: 0
How to retrieve DHCP lease list using API?
«
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.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to retrieve DHCP lease list using API?
«
Reply #1 on:
July 21, 2021, 07:51:41 am »
Static pages ending in .php have no MVC-backed API. It's why we need to replace them eventually.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
How to retrieve DHCP lease list using API?