Skip to main content
micycle
New Member
Aug 8, 2020 7:48 PM UTC
Question

REST API url filter

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
    Aug 9, 2020 3:21 PM UTC

    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

     

     

    Translate
    yurisk.info - all things Fortinet blog, no ads
    micycle
    micycleAuthor
    New Member
    Sep 15, 2020 2:11 PM UTC

    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.

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024