Hi All
I am trying to get a specific webfilter rule returned rather than the whole lot and then parse it, but the filter options I have set do indeed get the right profile, only returning all entries. Here's what I am using right now, but it returns all entries rather than the first one:
use FMG::JSONAPI
%options = (
fields => ["name", "comment", "id", "obj seq"],
filter => ["obj seq","==","1"]
);
The output is as following:
$VAR1 = [ { 'name' => 'my-web-filter', 'id' => 1, 'comment' => '', 'entries' => [ { 'type' => 'simple', 'action' => 'block', 'url' => 'example.com', 'obj seq' => 1, 'status' => 'enable' }, { 'obj seq' => 2, 'action' => 'block', 'url' => 'example2.com', 'status' => 'enable', 'type' => 'simple' }, ...
There is scant documentation that I can refer to. Essentially, this is a question about the syntax of the filter.
I am on v5.2.2-build0706 150415 (GA).
You help will be much appreciated.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1662 | |
1077 | |
752 | |
443 | |
220 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.