Explore Fortinet's API capabilities. Learn key features, benefits, integration steps, and discover various use cases for enhancing security operations.
Fortinet Overview
Key Features
Then all you have to do is schedule your free consultation. We make it effortless to connect and optimize the tools you need to grow your business. Let’s streamline your success
Fortinet API Availability
Using Fortinet APIs
We are a team of professionals that are more than just talented technical experts. We understand the business needs drive the software development process. Our team doesn't just deliver a great technical product, but we also deliver on your business objectives
import requests
url = "https://<fortinet_device>/api/v2/cmdb/firewall/policy"
headers = {"Authorization": "Bearer <token>"}
data = {
"srcintf": [{"name": "port1"}],
"dstintf": [{"name": "port2"}],
"srcaddr": [{"name": "all"}],
"dstaddr": [{"name": "all"}],
"action": "allow",
"schedule": "always",
"service": [{"name": "ALL"}],
"logtraffic": "all"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
Integrating Fortinet
Get Our Help with RapidDev
# Example of Fortinet API request
curl -X GET "https://<fortinet-api-url>/api/v2/resource" -H "Authorization: Bearer <token>"