Forum Discussion
Gavin_Zhou_1317
Mar 01, 2016Historic F5 Account
Is there anyway to use iControl REST to enable a ASM policy to a VS in V12?
Is there anyway to use iControl REST to enable a ASM policy to a VS in V12? Or a TMSH way, i tried profile adding way but it didn't work.
Thanks.
Tzoori_Tamam_95
Mar 01, 2016Historic F5 Account
You can lookup your answers in the REST API doc for v12
In short, you need to PATCH the VirtualServers value in an ASM policy collection (
Gavin_Zhou_1317
Mar 02, 2016Historic F5 Account
Thanks Tzoori, it works:
PATCH https://BIGIPADDR/mgmt/tm/asm/policies/a_u-SEVCAm39Ik6JLO7f9Q/
{
"virtualServers":["/Common/test.ltm.vs","/Common/test4.ltm.vs"]
}
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