Forum Discussion
Satoshi_Toyosa1
Sep 04, 2017Employee
If you just want to change the destination IP address of a virtual, you can use curl from DOS prompt. The example below modifies the destination IP address of the virtual "vs" to 10.0.0.1:80.
curl -sku admin: https://192.168.0.1/mgmt/tm/ltm/virtual/vs -X PATCH -H "Content-type: application/json" -d "{\"destination\":\"10.0.0.1:80\"}"
where 192.168.0.1 is the BIG-IP's management port IP adddress. This is equivalent to
tmsh modify ltm virtual vs destination 10.0.0.1:80
.
If you want to do the same for multiple virutals, you can use
for
(dos command). e.g., for %vs in (vs1 vs2 vs3) do curl .....
.
See Download page for the windows version curl.