Forum Discussion
ASM/AWAF declarative policy
Importing a declarative JSON Policy works in all my setups without problems.
You can have a look at Restsh and spcecially this script: https://github.com/AxiansITSecurity/Restsh/blob/master/restsh/modules/f5/bin/f5.asm.policy.declare or this script: https://github.com/AxiansITSecurity/Restsh/blob/master/restsh/modules/f5/bin/f5.asm.policy.import
A policy should look like:
{
"policy" : {
"type" : "security",
"name" : "{{WAF_POLICY_NAME}}",
"description" : "Created by {{CI_JOB_URL}}",
"template" : {
"name" : "{{VAR_F5_BASE_TEMPLATE}}"
},
"enforcementMode" : "{{VAR_ENFORCEMENT_MODE}}"
}
}
Maybe that could be a workaround to create a template with the needed server technologies and use your article Juergen_Mang​
Update an ASM Policy Template via REST-API - the reverse engineering way | DevCentral or better yet restsh.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com