HI,
I'm using POSTMAN (REST API) to login my Fortios FW,
I can get the policy (ipv4)
I can get the address objects
I can get the static route from POSTMAN(REST API)
But I can't found any url to get the interface IP address.
Is there any document talk about it?
Also, except the document below,
http://www.tuncaybas.com/FOS_JSON_REST_API_523.pdf
I can't found any other document talk about the REST API to FORTIOS.
Is there any document for other version of FORTIOS?
Many Thanks!
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
You can use "cmdb/system/interface/<interfacename>" to call up the interface in question. It's also sad that FTNT does not provide free or easier to obtain documentation to the API reference.
Ken Felix
PCNSE
NSE
StrongSwan
You have to have Fortinet Developer subscription access to get API https://www.fortinet.com/products/management/fortinet-developer-network-fndn.html
Which has free tier but you have to provide 2 contacts from the Fortinet to vouch for you.
You can look and 'reverse engineer' a call to get interface from here:
https://github.com/FortiPower/PowerFGT/blob/master/PowerFGT/Public/cmdb/system/interface.ps1 :
$response = Invoke-FGTRestMethod -uri 'api/v2/cmdb/system/interface' -method 'GET' -connection $connection @invokeParams
You can use "cmdb/system/interface/<interfacename>" to call up the interface in question. It's also sad that FTNT does not provide free or easier to obtain documentation to the API reference.
Ken Felix
PCNSE
NSE
StrongSwan
Many Thanks!
It's work!
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1712 | |
1093 | |
752 | |
447 | |
231 |
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.