I would like to add URLs/Domains to the webfilter by using the API. Can't figure out the code that is needed. Can anyone help?
This thread was automatically locked due to age.
I would like to add URLs/Domains to the webfilter by using the API. Can't figure out the code that is needed. Can anyone help?
Hi Sacha Roland
Could you please check with the given URL - https://community.sophos.com/kb/en-us/132760
Now I got it. Had problems with <pre>-tag in editor.
This is the code I used:
https://<Firewall_IP_address>:<port>/webconsole/APIController?reqxml=<Request>
<Login>
<UserName>apiuser</UserName>
<Password>password</Password>
</Login>
<Set Operation="add">
<WebFilterURLGroup>
<Name>Name</Name>
<URLlist>
<URL>URLs</URL>
<URL>URLs</URL>
</URLlist>
<Description>Text</Description>
</WebFilterURLGroup>
</Set>
</Request>
Now I got it. Had problems with <pre>-tag in editor.
This is the code I used:
https://<Firewall_IP_address>:<port>/webconsole/APIController?reqxml=<Request>
<Login>
<UserName>apiuser</UserName>
<Password>password</Password>
</Login>
<Set Operation="add">
<WebFilterURLGroup>
<Name>Name</Name>
<URLlist>
<URL>URLs</URL>
<URL>URLs</URL>
</URLlist>
<Description>Text</Description>
</WebFilterURLGroup>
</Set>
</Request>