MIM API not reporting some status correctly.
-
Tested on 24.11 with patches installed and applied.
I noticed for the endpoints
/services/status
and
/system/package/installed
they are not reporting the status correctly.
for
/services/status
it's showing the enabled and status as "False" but the webgui is showing it as enabled and running.{'name': 'wireguard', 'description': 'WireGuard', 'enabled': False, 'status': False}
{'name': 'syslog-ng', 'description': 'Syslog-ng Syslog Server', 'enabled': False, 'status': False}
{'name': 'suricata', 'description': 'Suricata IDS/IPS Daemon', 'enabled': False, 'status': False}for
/system/package/installed
it's showing the latest version of the package available and not the "installed" version of the package. -
Thanks for testing! This will be resolved in the upcoming pfSense+ release.
-
I also noticed the /aliases end point does not return the ID of the alias. This is needed to manage aliases via the other aliases end points. Hopefully this will be fixed also.
-
Aliases are ID'd by their name.
-
That doesn't work, if i edit a alias in the WebGUI i see a ID
https://x.x.x.x/firewall_aliases_edit.php?id=4If i supply this ID 4 to the GET /aliases/4 end-point i get the correct alias to return.
If i supply the alias name to GET /aliases/alias_name I get a 400 error response with the error message "Invalid Index"
{"errcode":400,"errmsg":"invalid index"}
-
You're right, that will work on the upcoming pfSense+ 25.07 release.