This article describes how to run a proxy API call from FortiManager to a managed FortiGate to collect data.
FortiManager and FortiGate.
Note:
For a complete list of FortiGate API calls, refer to Fortinet Development Network (FNDN):
{
"id" : "1",
"method": "exec",
"params": [
{
"url": "sys/proxy/json",
"data": {
"target": [ "device/<device-name>" ],
"action": "get",
"resource": "<FortiGate API Call>"
}
}
],
"session" : "<session-id>"
}
{
"id" : "1",
"method": "exec",
"params": [
{
"url": "sys/proxy/json",
"data": {
"target": [ "device/lab-fgt2" ],
"action": "get",
"resource": "/api/v2/cmdb/firewall/address"
}
}
],
"session" : "{{session-id}}"
}
{
"id" : "1",
"method": "exec",
"params": [
{
"url": "sys/proxy/json",
"data": {
"target": [ "device/lab-fgt2" ],
"action": "get",
"resource": "/api/v2/monitor/license/status"
}
}
],
"session" : "{{session-id}}"
}
Related articles:
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.