OPNsense Forum

English Forums => 25.7 Series => Topic started by: marcog on July 24, 2025, 12:25:48 AM

Title: [SOLVED] Broken API after upgrade to 25.7
Post by: marcog on July 24, 2025, 12:25:48 AM
Hi,
I have a Python script that queries the ARP table of opnsense via this endpoint:
/api/diagnostics/interface/getArpI've  started receiving 403 after I upgraded to 25.7. Nothing has changed in the script.
The OPNsense backend logs say:
uri /api/diagnostics/interface/getArp not accessible for user srvcPython using api key <redacted>The user associated with the API key has
Diagnostics: ARP Tablepermissions. What might have caused this?
Thanks
Title: Re: Broken API after upgrade to 25.7
Post by: meyergru on July 24, 2025, 12:47:04 AM
Obviously because of changing to snake_case in the API: https://forum.opnsense.org/index.php?topic=48072.0

Quoteui: use snake_case for all API URLs and adjust ACLs accordingly

https://docs.opnsense.org/development/api/core/diagnostics.html lists get_arp instead of getArp.

Title: Re: Broken API after upgrade to 25.7
Post by: marcog on July 24, 2025, 01:45:46 AM
ah indeed you are right, thanks for pointing me to the right post!
Title: Re: [SOLVED] Broken API after upgrade to 25.7
Post by: franco on July 24, 2025, 07:35:10 AM
Sounds like you are using a specific user with a restricted ACL which is why this happens as the ACLs were adjusted too.


Cheers,
Franco
Title: Re: [SOLVED] Broken API after upgrade to 25.7
Post by: marcog on July 24, 2025, 10:40:32 AM
Quote from: franco on July 24, 2025, 07:35:10 AMSounds like you are using a specific user with a restricted ACL which is why this happens as the ACLs were adjusted too.


Cheers,
Franco

Yep, that was my case, I've changed the endpoint to use snake_case and everything is working again. Thanks for your awesome work franco!
Title: Re: [SOLVED] Broken API after upgrade to 25.7
Post by: franco on July 24, 2025, 11:02:07 AM
Thank you for the report. This will help others in the future too.


Cheers,
Franco