Skip to main content
micycle
New Member
August 8, 2020
Question

REST API url filter

  • August 8, 2020
  • 1 reply
  • 6771 views

I have looked for REST API documentation for Fortigate and have only found commands for creating a policy or an address.

Is it possible to create a URL filter using the REST API? If it is, where can I find the documentation to do so?

    1 reply

    Yurisk
    SuperUser
    SuperUser
    August 9, 2020

    You have full access to the object database via API, so the webfilter being just one of them should be configurable too. API reference lists few examples (firewall objects creation), but by the same template you may try to lab it. 

    POST /api/v2/cmdb/firewall/address -> POST /api/v2/cmdb/webfilter/profile ...

     

    I don't have ready example to show, if you don't find one till the weekend , I 'll try to post some.

     

    Yuri

     

     

    micycle
    micycleAuthor
    New Member
    September 15, 2020

    I have tried to use the examples as templates and use them for my own need, but it didn't seem to work in this case. An example would be great.