FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
mrashid
Staff
Staff
Article Id 421671
Description This article describes how to fetch device list from FortiAnalyzer/FortiManager along with ADOM information.
Scope FortiManager, FortiAnalyzer.
Solution

Solution:

 

The following regular API syntax fetches the device list from FortiAnalyzer/FortiManager, but not the ADOM name.


{
"method": "get",
"params": [{
"url": "/dvmdb/device"
}
],
"session": "{{session}}",
"id": 1
}

 

Add the optional flag 'extra info' as shown below to fetch the ADOM name as well:

 

{
"method": "get",
"params": [{
"option": ["extra info"],
"url": "/dvmdb/device"
}
],
"session": "{{session}}",
"id": 1
}

 

The response will include ADOM information in the API response for devices being managed in the root ADOM, as shown below:

 

"extra info": {
"adom": "root"
},

Contributors