REST API calls to create a virtual server
Problem this snippet solves: This is a list of curl commands using REST api calls to create a virtual server and other operations. Tested with BIGIP v.12.1.2. How to use this snippet: Firstly obta...
Published Oct 24, 2017
Version 1.0Helena_101649
Nimbostratus
Joined December 05, 2008
Helena_101649
Nimbostratus
Joined December 05, 2008
Helena_101649
Oct 18, 2018Nimbostratus
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.