hi,
How to filter firewall policies with the particular srcintf/dstintf using REST API?
Below is sample url:
https://xx.xx.xx.xx/api/v...ot&format=policyid|srcintf|dstintf|srcaddr|dstaddr|service&filter=srcaddr
{ "policyid": 40, "q_origin_key": "40", "srcintf": [ { "name": "NETMGMT", "q_origin_key": "NETMGMT" },
{ "name": "MGMT", "q_origin_key": "MGMT" } ], "dstintf": [ { "name": "VLAN_100", "q_origin_key": "VLAN_100" } ], "srcaddr": [ { "name": "all", "q_origin_key": "all" } ], "dstaddr": [ { "name": "all", "q_origin_key": "all" } ], "action": "accept", "status": "enable", "service": [ { "name": "ALL", "q_origin_key": "ALL" } ] }
thanks
Have you tried adding "&srcintf=lan" to the request?
Yes, i tried but no luck, can you share if any sample you have?
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.