1
19.1 Legacy Series / API: What is correct permission to get the routing tables?
« on: July 24, 2019, 09:38:33 am »
Hello,
I just wrote my first script to determine active routing table entries automatically by using the API. For this purpose I create a user, granted the permission for "Diagnostics: Routing Tables" and added an API key. When using curl to get https://<IP>/api/diagnostics/interface/getroutes, I get "Authentication failed". Adding permission "All pages" to the user leads me to the correct result.
What permission do I have to enable to only allow the user reading the routing tables?
Thank you in advance,
Andreas
I just wrote my first script to determine active routing table entries automatically by using the API. For this purpose I create a user, granted the permission for "Diagnostics: Routing Tables" and added an API key. When using curl to get https://<IP>/api/diagnostics/interface/getroutes, I get "Authentication failed". Adding permission "All pages" to the user leads me to the correct result.
What permission do I have to enable to only allow the user reading the routing tables?
Thank you in advance,
Andreas

