Forum Discussion
MarioMeas
Nimbostratus
Thank you Nazir. What's the best way to accomplish the above steps using Rest? Thanks.
Nazir_52641
Jan 05, 2017Cirrus
Get the ID of the existing ASM policy:
curl -sku admin:admin | ./jq '.items[] | "pol_name:" + .fullPath + ";api_id:" + .id'
Assign ASM policy with id ZsKuSt3CrOF9LBMAapLOkg to VS HTTP_VS1:
curl -sku admin:admin -X PATCH -H "Content-Type: application/json" -d '{ "virtualServers" : ["/Common/HTTP_VS1"] }' | ./jq