Helpful ReplyHot!REST API V5.6 FORTIOS for Interface IP address

Author
Jacky
New Member
  • Total Posts : 2
  • Scores: 0
  • Reward points: 0
  • Joined: 2020/01/14 23:39:17
  • Status: offline
2020/01/14 23:45:11 (permalink)
0

REST API V5.6 FORTIOS for Interface IP address

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!
#1
Yurisk
New Member
  • Total Posts : 13
  • Scores: 0
  • Reward points: 0
  • Joined: 2011/12/04 03:30:01
  • Status: online
Re: REST API V5.6 FORTIOS for Interface IP address 2020/01/15 02:11:42 (permalink)
0
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

 
#2
emnoc
Expert Member
  • Total Posts : 5462
  • Scores: 355
  • Reward points: 0
  • Joined: 2008/03/20 13:30:33
  • Location: AUSTIN TX AREA
  • Status: offline
Re: REST API V5.6 FORTIOS for Interface IP address 2020/01/15 03:01:43 (permalink) ☄ Helpfulby poundy 2020/01/16 18:08:06
0
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  
#3
Jacky
New Member
  • Total Posts : 2
  • Scores: 0
  • Reward points: 0
  • Joined: 2020/01/14 23:39:17
  • Status: offline
Re: REST API V5.6 FORTIOS for Interface IP address 2020/01/15 17:51:47 (permalink)
0
Many Thanks!
It's work!
 

#4
Jump to:
© 2020 APG vNext Commercial Version 5.5