Skip to main content
ahiyaz
New Member
September 17, 2020
Question

using fortigate API question

  • September 17, 2020
  • 1 reply
  • 2490 views

hi all

 

ive started using APIs to monitor my fortigate.

but something isn't clear to me.

im trying to use some filters in my API request.

ive try to do so according to API documents but it not preforming any filtering.

im still getting all the out put.

 

e.g.

this call getting all connected devices from device inventory list.

https://{FG-IP}/api/v2/monitor/user/detected-device/select

 

the output is in json format and its a list off all devices and information regarding them.

if i want to get only specific device ive try to filter base on mac address

https://{FG-IP} /api/v2/monitor/user/detected-device/select?filter=mac==b8:94:36:b0:87:94

 

but still im getting the full list.

 

dose anyone have experience with fortigate APIs and can assist here?

 

thanks

 

 

    1 reply

    ahiyaz
    ahiyazAuthor
    New Member
    September 19, 2020

    any one have an idea?