Forum Discussion
yuki_nishi_1495
Nimbostratus
Jun 12, 2014How do I apply asm policy using iControlREST?
I'm trying to change enforcementMode by using RESTAPI. But I can not apply-policy.
GET /mgmt/tm/asm/policies/js4y3P-sabtgiQOxWlU6Vg
{ ... "enforcementMode": "transparent", "isModified": false, .....
yuki_nishi_1495
Nimbostratus
Jun 16, 2014Thanks for your help, that works just fine!
1. POST /mgmt/tm/asm/tasks/apply-policy/
{"policyReference": {"link":"https://localhost/mgmt/tm/asm/policies/js4y3P-sabtgiQOxWlU6Vg"} }
Response:{ ..."status": "NEW","lastUpdateMicros": 1402897197000000, ...}
2. GET /mgmt/tm/asm/policies/js4y3P-sabtgiQOxWlU6Vg
Response: { ..."enforcementMode": "blocking","isModified": false, ...}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects