Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
micycle
New Contributor

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 2
Yurisk
SuperUser
SuperUser

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

 

 

Yuri https://yurisk.info/  blog: All things Fortinet, no ads.
Yuri https://yurisk.info/ blog: All things Fortinet, no ads.
micycle
New Contributor

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.

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors