Skip to main content
Jacky
New Member
January 15, 2020
Solved

REST API V5.6 FORTIOS for Interface IP address

  • January 15, 2020
  • 3 replies
  • 8603 views

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!

    Best answer by emnoc

    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

    3 replies

    Yurisk
    SuperUser
    SuperUser
    January 15, 2020

    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

     

    yurisk.info - all things Fortinet blog, no ads
    emnoc
    emnocAnswer
    New Member
    January 15, 2020

    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

    Jacky
    JackyAuthor
    New Member
    January 16, 2020

    Many Thanks!

    It's work!

     

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.