Created on
11-27-2025
12:07 AM
Edited on
12-01-2025
07:48 AM
By
Stephen_G
| Description |
This article describes how to create an address object in FortiManager via API. |
| Scope | FortiManager |
| Solution |
Ensure FortiManager has an administrator account that has 'JSON API Access' enabled. The following KB article shows how to create/configure an admin that can be used for API and how to obtain the session token for API usage: Technical Tip: Using FortiManager/FortiAnalyzer API
The API request for adding an address object to the ADOM root is as follows:
Make sure to replace the session with the actual session value obtained during the login, as explained in the KB linked above.
To create address objects in another ADOM, simply change the ADOM name in the URL field. For example, to add an address to an ADOM named Fortinet, the following URL should be used:
The response should show as follows for a successful API request:
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
Related document: |
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 2025 Fortinet, Inc. All Rights Reserved.