Closed simonkowallik closed 1 year ago
Hi, internal ID to track this item is: INFRAANO-1144, thanks!
if you want to import AWAF policies, use bigip_awaf_policy module, you can use it like this:
- name: Create aWAF policy with json template
bigip_awaf_policy:
name: "foobar_awaf"
policy_in_json: "{{ lookup('file', 'awaf_big_policy.json') }}"
Thanks, I will look into it although this issue is not about declarative waf.
Btw. bigip_awaf_policy
is missing in the F5 Module Index on CloudDocs
closing this one, thanks for the help
COMPONENT NAME
f5networks.f5_bigip.bigip_asm_policy_import
version2.0.0
Environment
ANSIBLE VERSION
BIGIP VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
f5networks.f5_bigip.bigip_asm_policy_import
fails to import WAF policy when file extension is not.xml
or.plc
.The documentation does not mention any requirements of file extension naming: https://clouddocs.f5.com/products/orchestration/ansible/devel/f5_bigip/modules_2_0/bigip_asm_policy_import_module.html#bigip-asm-policy-import-module-2
It seems the iControl REST API of ASM refuses to receive the file due to the file extension.
STEPS TO REPRODUCE
EXPECTED RESULTS
The file extension should not matter or the error should be clear.
ACTUAL RESULTS
REST API returns 400 status codes indicating the REST API call is faulty (eg. wrong file extension).