How to apply a ltm policy to a virtual with icontrolRest on BigIp F5
Hello,
BigIp F5 Version 11.5.4. I've created a ltm policy with IcontrolRest : POST https:///mgmt/tm/ltm/policy/ + Json Now I try to apply this policy to a virtual server. I've tried a lot of uri and json bodies, and in all the cases reception of http code 400.
For example (found on a forum) : Uri : /mgmt/tm/ltm/virtual/~~ -> POST Body : { "policies:"//" } -> "code":400,"message":"Missing name."
Other Test :
Uri : /mgmt/tm/ltm/virtual/~~/policies -> POST Body : { "kind": "tm:ltm:virtual:policies:policiescollectionstate", "selfLink": "~~/policies?ver=11.5.4", "policiesReference": { "link": "~~/policies?ver=11.5.4", "isSubcollection": true, "items": [ { "kind": "tm:ltm:virtual:policies:policiesstate", "name": "", "partition": "", "fullPath": "//", "generation": 135087, "selfLink": "~~/policies/~~?ver=11.5.4" } ] } }
-> "code":400,"message":"Missing name."
An Idea ?
Thanks
Dominique