fortinetdev / terraform-provider-fortios

Terraform Fortios provider
https://www.terraform.io/docs/providers/fortios/
Mozilla Public License 2.0
69 stars 50 forks source link

Working with policies on FortiProxy fails #290

Open gnugnug opened 1 year ago

gnugnug commented 1 year ago

FortiProxy is running FortiOS, so the Terraform provider should work for it as well, however the proxy policies on FortiProxy are located under /api/v2/cmdb/firewall/policy, see https://fndn.fortinet.net/index.php?/fortiapi/643-fortiproxy/2466/643/firewall/#operations-tag-firewall\/policy The terraform provider on the other hand expects the proxy policies to be located under /api/v2/cmdb/firewall/proxy-policy (https://registry.terraform.io/providers/fortinetdev/fortios/latest/docs/data-sources/fortios_firewall_proxypolicy). This API endpoint does not exist on FortiProxy. It would be nice fortios_firewall_proxypolicy could target /api/v2/cmdb/firewall/policy as well, so that FortiProxy can be configured with Terraform as well.

lix-fortinet commented 1 year ago

Hi @gnugnug,

Thank you for raising this issue. FortiProxy and FortiOS are not exactly the same. We will create a Terraform provider for FortiProxy.

Thanks, Xing