This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Traffic (in & out) by API

Hi all,

we are querying the firewall rule list from a v18.x Sophos with the following endpoint:

/webconsole/APIController?reqxml=<Request><Login><Username>xxxxx</Username><Password>xxxxx</Password></Login><Get><FirewallRule/></Get>

Does anyone know how we can get the traffic (in & out) when querying a firewall rule that has log enabled?

Thanks,

Florian



This thread was automatically locked due to age.
Parents Reply Children
  • XML API is a configuration based API. There is some data, which came from a database (like traffic in&out). 

    To get this data, you need a webadmin query, therefore there is no API. 

    But as far as i know, Central Reporting can get this data, but again in a web based manner. 

    __________________________________________________________________________________________________________________

  • Thanks for the insights. Webadmin query means I have to handle the session token myself and kind of fake a login on the webserver of the firewall, right? Or is there any official doc of how to perform webadmin queries?

  • You cannot do this, as this is one of the Harding processes of the OS itself. What i mean is, the webadmin itself has to perform this task and it cannot be done by outside tasks. 

    __________________________________________________________________________________________________________________