Forum Discussion
AS3 for ASM Policy Creation
- Aug 15, 2025
Greetings,
I validated your declaration using the instructions in
https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/userguide/validate.html
and found a few issues.
It appears that you cannot create a custom application with the "Common" tenant so I changed that to "MyTenant. Also the "template" and "description" properties are not valid for the WAF_Policy object. Instead I used the "policy" property with a "text" reference to create a policy. I got this declaration to work in our lab environment here at F5:
{ "$schema": "https://raw.githubusercontent.com/F5Networks/f5-appsvcs-extension/refs/heads/main/schema/latest/as3-schema.json", "class": "AS3", "action": "deploy", "persist": true, "declaration": { "class": "ADC", "schemaVersion": "3.0.0", "id": "transparent_waf_policy_only_declaration", "label": "Transparent WAF Policy Only Deployment", "remark": "Deploys only a transparent WAF...", "MyTenant": { "class": "Tenant", "MyWAFPolicyApplication": { "class": "Application", "template": "generic", "Transparent_Security_Policy": { "class": "WAF_Policy", "policy": { "text": "{\n \"policy\": {\n \"name\":\"AppPolicy01\",\n \"description\":\"embedded WAF Policy\",\n \"enforcementMode\":\"transparent\",\n \"template\": {\n \"name\":\"POLICY_TEMPLATE_FUNDAMENTAL\"\n }\n }\n }" } } } } } }
These docs were helpful with composing the above declaration:
Oberschmidt - if this solved your problem please consider Marking As Solution - it helps others find answers that are solutions down the road! Thanks!
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