Created on 10-23-2024 09:12 AM Edited on 10-24-2024 08:46 AM By markwarner
This article describes the API endpoint and options necessary to trigger a retrieve config operation in the FortiManager Device Manager.
It assumes that the user already knows how to use the JSON API in general, and how to authenticate and generate the session ID used in the example.
FortiManager.
This API call retrieves config from 10 of the managed FortiGates in the ADOM 'TEST'.
Sample request:
{
"id": 3,
"method": "exec",
"params": [
{
"data": {
"adom": "TEST",
"flags": [
"create_task",
"nonblocking"
],
"reload-dev-member-list": [
{
"name": "FortiGate-01"
},
{
"name": "FortiGate-02"
},
{
"name": "FortiGate-03"
},
{
"name": "FortiGate-04"
},
{
"name": "FortiGate-05"
},
{
"name": "FortiGate-06"
},
{
"name": "FortiGate-07"
},
{
"name": "FortiGate-08"
},
{
"name": "FortiGate-09"
},
{
"name": "FortiGate-10"
}
]
},
"url": "/dvm/cmd/reload/dev-list"
}
],
"session": "{{sessionid}}"
}
Sample response:
{
"id": 3,
"result": [
{
"data": {
"pid": 23223,
"taskid": 321
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/dvm/cmd/reload/dev-list"
}
]
}
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.