- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
03-10-2021 07:16 AM
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?
03-17-2021 11:00 AM - edited 03-29-2021 06:56 AM
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.
04-02-2021 08:59 AM
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.
04-02-2021 09:07 AM - edited 04-02-2021 09:08 AM
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
04-02-2021 09:10 AM
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!