Technical Tip: Create ADOM Revisions using API calls in FortiManager
Description
This article describes how to create ADOM Revisions in FortiManager using API calls.
Scope
FortiManager-VM, FortiManager appliances.
Solution
The following is the Request and the expected response, where the ADOM is root.
Request:
{
"method": "add",
"params": [
{
"data": [
{
"created_by": "Fortinet_Lab",
"created_time": "01:57PM",
"desc": "For:New_123 policy",
"locked": 0,
"name": "Adom_Revision_Test",
"version": 0
}
],
"url": "/dvmdb/adom/root/revision"
}
],
"session": "DeJ+U2A7LT1WNV3blTyQJl3lsMbUkMgi3ayI4Y7GckZjVq480eME2TmmHdak+uloglY8bxnnKgnkolFGZqmaVDaH+1rGDqSeXYUl/fflp9vyJcREIK3HQHF1",
"id": 1
}Response:
{
"cid": 3,
"id": 1,
"result": [
{
"data": {
"version": 1
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/dvmdb/adom/root/revision"
}
]
}The created ADOM revision:

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