Forum Discussion
Arnaud_Lemaire
Employee
May 20, 2016Hello, you can drastically simplify that by just specifying the VS array list in the ASM policy property virtualServers. This will automatically create the ltm policy attaching the ASM policy to the virtual server.
So as an example, if i want to attach an existing policy to an existing vs called vs_http i would just have to do :
PATCH /mgmt/tm/asm/policies/TUFO8Y208Zm1hvmqnCuuqw/
{"virtualServers" : ["/Common/vs_http"]}