Rest APIs : REST API : Observer REST : Understanding the filter syntax
Understanding the filter syntax
Using filters in your REST API request allows you to extract the data that you want, whether by IP Pairs, IP Address, L4 Port, VLAN tags, or combining filters.
Some filter examples are provided here. More examples are given in the sections for IP Pair, IP address, Port, and VLAN Tag.
"filter": "ip 10.1.16.32 OR (ip 10.1.16.20 AND port udp/53)"
"filter": "(ip 10.1.16.20 AND port udp/53)"
"filter": "ip 10.1.16.32 OR ip 10.1.16.20[udp/53] OR port tcp/80"
"filter": "(ippair 10.1.16.20<->10.1.23.114" AND (port udp/53 OR port tcp/80)) OR (ippair 10.1.16.20<->10.1.23.201" AND (port udp/53 OR port tcp/80))"
"filter": "vlan 1470 OR vlan outer/1865"