Landono
Jul 23, 2015Nimbostratus
Add to LTM Policies with iControl REST
Currently we have a LTM policy that handles our path-based routing for one of our virtual servers. We modify it with a tmsh command, but we're looking to move it over to an iControl REST call. I'm pretty familiar with the REST interface but for the life of me I can't seem to get the request correct. Here is the command we are trying to replicate:
tmsh modify ltm policy policy_https_pool_selector rules add { foo { actions replace-all-with { 0 { forward select pool pool_foo } 1 { server-ssl disable } } conditions replace-all-with { 0 { http-uri path starts-with values { /foo} } } } }
I know it needs to be a PUT call to the policy itself to add this rule, but again I can't seem to get the format correct. Any help here would be greatly appreciated.