Technical Tip: How to find duplicate firewall address objects on FortiManager using API query
Description
This article describes how to find duplicate firewall address objects on FortiManager using the API.
Scope
FortiManager.
Solution
To detect duplicate firewall address entries:
API query Request.
{
"id": 1,
"jsonrpc": "1.0",
"method": "get",
"params": [
{
"fields": [
"name",
"type",
"subnet",
"duplicate entries"
],
"load assigned": 0,
"loadsub": 0,
"option": [
"find duplicates"
],
"url": "/pm/config/adom/test1/obj/firewall/address"
}
],
"session": "Session_ID",
"verbose": 1
}
Troubleshooting:
The following commands can be used on the FortiManager CLI to debug the API Calls:
diagnose debug service httpd 255
diagnose debug service main 255
diagnose debug enable
Related article:
