Examples of JSON for adding an iRule for a virtual server via the REST API
I'm looking for examples of how to do this. I came across the post below, but it wasn't clear that it actually worked.
https://devcentral.f5.com/questions/assign-irule-to-virtual-server-via-icontrol-rest
{"name": "iControl_virtual", "rules": ["/Common/_sys_https_redirect"], "mask": "255.255.255.255", "nat64": "disabled", "destination": "192.168.1.30:80", "enabled": null, "sourceAddressTranslation": {"type": "automap"}, "source": "0.0.0.0/0", "profiles": [ {"kind": "ltm:virtual:profile", "name": "tcp"}, {"kind": "ltm:virtual:profile", "name": "http"} ], "mobileAppTunnel": "disabled", "mirror": "disabled", "ipProtocol": "tcp", "pool": "icontrol_pool", "description": "A Python REST client test virtual server"}
Also, I didn't see that the URI posted to was referenced. What would this be?
Thanks, Joel