iControl REST Cookbook - Virtual Server (ltm virtual)
Updated Jun 06, 2023
Version 2.0Was this article helpful?
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