REST API calls to create a virtual server
Published Oct 24, 2017
Version 1.0Was this article helpful?
And for the question about how to disable/enable status of vitrual server, this is the syntax that works in my lab:
Disable VS:
curl -sk -H "X-F5-Auth-Token:token" -H "Content-Type: application/json" -X PATCH -d '{"disabled": true}'
Enable VS:
curl -sk -H "X-F5-Auth-Token:token" -H "Content-Type: application/json" -X PATCH -d '{"enabled": true}'
The syntax '{"enable": false}' does not work in my case.