Forum Discussion
NiHo_202842
May 03, 2016Cirrostratus
Assign ASM policy to VS via iControl/REST
Hello everyone,
I batch create virtual servers using the iControl/REST interface. Only thing missing now is assigning a pre-existing ASM policy.
My version is 11.5.1, will upgrade to 11.5.3...
Arnaud_Lemaire
May 20, 2016Employee
Hello, 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"]}
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