This article describes how to add a FortiGate as a real device to FortiManager using API query. This can help while recovering FortiManager to synchronize old configuration with new configuration.
FortiManager, FortiManager Cloud.
The following example shows how to add test1 in the demo ADOM.
API query Request:
{
"id": 3,
"method": "exec",
"params": [
{
"data": {
"adom": "demo",
"device": {
"adm_pass": "fortinet",
"adm_usr": "admin",
"ip": "10.10.10.10",
"mgmt_mode": "fmg",
"name": "test1"
},
"flags": [
"create_task"
]
},
"url": "/dvm/cmd/add/device"
}
],
"session": "{{session}}"
}
Note:
"flags": [
"create_task",
"nonblocking"
]
Troubleshooting:
The below commands can be used on FortiMAnager CLI to debug the API Calls:
diagnose debug service httpd 255
diagnose debug service main 255
diagnose debug service task 255
Related article:
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.