Changes to the LIVEcommunity experience are coming soon... Here's what you need to know.
I'm having an issue with v9.1 that I was not having with v9.0. On a vm-series firewall with no vsys I am getting the following error.
<Response [400]> b'{"code":3,"message":"Invalid Query Parameter: location=shared","details":[{"@type":"CauseInfo","causes":[{"code":8,"module":"panui_restapi","description":"Invalid Query Parameter: location=shared"}]}]}'
Location is a required parameter and the default is shared if no vsys. Has anyone else experienced a similar issue?
Think I found the solution.
Reading this comment, it looks like a non-vsys system is still considered a vsys system.
So in your REST API query params, set the following keys:
That should do it. It worked for me, at least.
I tried that too but unfortunately it didn't work for me. I wonder if it being a vm-series has anything to do with it.
Are your parameters all populated?
Here's a quick snapshot from Postman:
Edit: And here's the URI path I used to test:
/restapi/9.0/Policies/SecurityRules?location=vsys&vsys=vsys1
Also maybe try this to see what vsys you have.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!