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
chin_ntt
Nimbostratus
The command to change the Description field on the virtual is missing "virtual/" in the URI.
Here is the correct syntax.
curl -sku admin:admin https://<host>/mgmt/tm/ltm/virtual/<vs> \
-X PATCH -H "Content-Type: application/json" \
-d '{"description": "Hello World!"}'
Similarly, the correct syntax to disable the virtual server is as below:
curl -sku admin:admin https://<host>/mgmt/tm/ltm/virtual/<vs> \ -X PATCH -H "Content-Type: application/json" \ -d '{"disabled": true}' \
JRahm
Oct 30, 2024Admin
nice find! Fixed...