Forum Discussion
nathe
Jun 03, 2015Cirrocumulus
Joel,
I'm no expert on this but i know you need tmos v11.5 to add irules to virtual servers and in my lab POST doesn't work, only PUT and PATCH. Although it always does a replace so I can see you've got the redirect irule on the VS already so you'll need to re-add this to your code.
For example, in curl i can do this:
curl -sk -u user:pass -H "Content-Type: application/json" https://localhost/mgmt/tm/ltm/virtual/vs_lab -X PUT -d '{"rules":["/Common/test", "/Common/_sys_https_redirect"] }'
See if that works for you.
Hope this helps,
N