iControl REST Cookbook - Virtual Server (ltm virtual)
Updated Jun 06, 2023
Version 2.0Was this article helpful?
The section about disabling VIPs seems to be incorrect.
curl -sku admin:admin https://<host>/mgmt/tm/ltm/<vs> \
-X PATCH -H "Content-Type: application/json" \
-d '{"enabled": false}' \
Results in HTTP 400 Bad Request.
{
"code": 400,
"message": "one or more properties must be specified",
"errorStack": [],
"apiError": 26214401
}
Changing the JSON to the following does the trick:
{
"disabled": true
}
Subsequently, the JSON response is:
{
"kind": "tm:ltm:virtual:virtualstate",
"name": "TestVIP",
[...]
"disabled": true,
[...]
}
For comparison, an enabled VIP looks like this:
{
"kind": "tm:ltm:virtual:virtualstate",
"name": "TestVIP",
[...]
"enabled": true,
[...]
}
Version: 12.1.2