Closed MilesTails closed 2 weeks ago
Hi @MilesTails ,
Thank you for raising this issue. Team is working on this issue. We will reply to you ASAP.
Thanks, Xing
Hi @MilesTails ,
We are cooperating with API team to fix this issue. Before this issue been fixed, you could use resource fortios_system_autoscript
as alternatives:
https://registry.terraform.io/providers/fortinetdev/fortios/latest/docs/resources/fortios_system_autoscript
For example:
resource "fortios_system_autoscript" "auto2" {
interval = 1
name = "myscript12"
output_size = 10
repeat = 1
script = <<EOF
config webfilter profile
edit "baseline"
config ftgd-wf
unset options
config filters
edit 1
set category 1
set action block
next
end
end
next
end
EOF
start = "auto"
}
Please let me know if you have any questions.
Thanks, Xing
Hi all,
I will go ahead and close this case due to inactivity, but please don’t hesitate to reach out or open a new case if you have any further questions.
Thanks, Maxx
I am unable to create a fortios_webfilter_profile that leverages the categories unless an option parameter is passed within ftgd_wf. In the GUI this is the FortiGuard category based filter toggle.
results in:
the above applies but results in the web filter being created but FortiGuard category based filter toggle is off.
The reason appears to be because the ftgd_wf options variable needs to be unset or set to an option. I do not believe this is possible to set options = unset via terraform.
This is all on version 6.4.6