AnsweredAssumed Answered

Filter option in R80.10 show-access-rulebase API

Question asked by Ekta Siwani on Sep 16, 2017
Latest reply on Sep 24, 2017 by Tomer Sole

Hi,

 

I am trying to use filter option available in "show-access-rulebase" API available in R80.10.

My code is in PHP.

$rule_match_data = array(
    "offset" => 0,
    "limit" => 50,
    "name" => "Network",
    "filter-settings" => array("search-mode"=>"packet"),
     "filter" => "mode:{Packet} src:{122.34.22.56}  dst:{192.168.12.21} svc:{80} action:{Accept}"
);

 

Above data is not giving me proper result. Is this correct way to use filter or I need to change my text. The document says The provided text should be exactly the same as it would be given in Smart Console.

I tried :

"filter" => "src:10.10.10.10  dst:20.20.20.20  svc:80 action:Accept"

AND

"filter" => "src:{10.10.10.10}  dst:{20.20.20.20}  svc:{80} action:{Accept}"

Outcomes