HTTPS with Policy WAF inline text BIG-IP Next AS3 Example DeclarationΒΆ

HTTPS service with a Policy WAF in a service configuration, with Policy WAF inline text

{
     "class": "ADC",
     "id": "id-policy-waf-inlined-text",
     "schemaVersion": "3.0.0",
     "mytenant": {
       "class": "Tenant",
       "myapp": {
         "class": "Application",
         "my_service": {
           "class": "Service_HTTP",
           "policyWAF": {
             "use": "wafPolicy"
           },
           "virtualAddresses": [
             "198.18.1.10"
           ]
         },
         "wafPolicy": {
           "class": "WAF_Policy",
           "ignoreChanges": false,
           "policy": {
             "text": "{\n  \"policy\": {\n    \"name\":\"AppPolicy01\",\n    \"description\":\"embedded WAF Policy\",\n    \"template\": {\n    \"name\":\"POLICY_TEMPLATE_RAPID_DEPLOYMENT\"\n    }\n    }\n  }"
           }
         }
       }
     }
   }