Junos Space Developer
Junos Space Developer

Security Director 17.1 REST API : Filtering for appfw

‎06-19-2018 06:09 PM

I could get the list of all appfw policies by issuing the below REST API query:



Content Type: None

Accept Type :   application/vnd.juniper.sd.app-fw-policy-management.app-fwpolicies+xml;version=1;q=0.01

HTTP Method: GET


But I am trying to filter the appfw by name by issuing the below URL which does not work and it throws error - 400, request sent by the client was syntactically incorrect

URL: eq ‘block’) 


I also tried changing the accept type with version=2;q=0.02, but no luck.


Do I miss something here?


Junos Space Developer

Re: Security Director 17.1 REST API : Filtering for appfw

‎05-30-2019 07:17 AM

In my experience, only certain filter criteria work. For example, you can filter for an address object by name or type, but not the actual ip address. (You can, using an undocumented URI, but I don't count undocumented solutions...) I can't confirm whether or not this filter is valid, but it likely isn't.