Skip to main content
akaratas
Staff
Staff
March 3, 2026

Technical Tip: How to find duplicate firewall address objects on FortiManager using API query

  • March 3, 2026
  • 0 replies
  • 152 views
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:

Technical Tip: Managing the JSON API call with Postman and how to delete, create and update an ADOM using it