iControl REST Cookbook - Virtual Server (ltm virtual)
This cookbook lists selected ready-to-use iControl REST curl commands for virtual-server related resources. Each recipe consists of the curl command, it's tmsh equivalent, and sample output.
In thi...
Updated Oct 30, 2024
Version 3.0Satoshi_Toyosa1
Ret. Employee
Joined May 15, 2019
Sep 12, 2019
When disabling virtual servers admins tend to miss the deactivation the related virtual address.
Thats why the VIP is still resolved with ARP requests and responds to PING.
Important note: The following changes affect all virtual servers using this virtual address.
To deactive a virtual address it is required to apply i.e. the following:
curl -sk -u admin: -H 'Content-Type: application/json' \
-X PATCH -d '{"arp": "disabled", "enabled": "no", "icmpEcho": "disabled"}' \
https://localhost/mgmt/tm/ltm/virtual-address/10.131.131.101 | python -m json.tool
To reactivate it the following request would be used:
curl -sk -u admin: -H 'Content-Type: application/json' \
-X PATCH -d '{"arp": "enabled", "enabled": "yes", "icmpEcho": "enabled"}' \
https://localhost/mgmt/tm/ltm/virtual-address/10.131.131.101 | python -m json.tool
The commands above are the equivalents to tmsh:
modify ltm virtual-address 10.131.131.101 enabled no arp disabled icmp-echo disabled
modify ltm virtual-address 10.131.131.101 enabled yes arp enabled icmp-echo enabled