Manual Chapter :
Importing the Declarative Policy
Applies To:
Show VersionsBIG-IP ASM
- 15.1.10, 15.1.9, 15.1.8, 15.1.7, 15.1.6, 15.1.5, 15.1.4, 15.1.3, 15.1.2, 15.1.1, 15.1.0
Importing the Declarative Policy
Import declarative policy from remote repository
- Import the policy.Send a POST request tohttps://<your-BIG-IP>/mgmt/tm/asm/tasks/import-policy.Use following body:{ "fileReference":{ "link":"http:// <your-remote-repository-address>/root/waf/raw/master/../policy.json" }, "policy":{ "fullPath":"/Common/policy" } }
- Validate the imported policy.Send a GET request tohttps://<your-BIG-IP>//mgmt/tm/asm/tasks/import-policy.The policy is imported successfully if the response contain status code 200 with"status": "COMPLETED".
- Apply the imported policy.Send a POST request tohttps://<your-BIG-IP>///mgmt/tm/asm/tasks/apply-policy.Use following body:{ "policy":{ "fullPath":"/Common/policy" } }