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

REST API url filter

  • August 8, 2020
  • 2 replies
  • 6795 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?

    2 replies

    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

     

     

    yurisk.info - all things Fortinet blog, no ads
    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.

    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.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!