Forum Discussion

mohammed_afzal_'s avatar
mohammed_afzal_
Icon for Nimbostratus rankNimbostratus
Jul 30, 2018

Enabling/disabling a VS through curl requests returns an error

I'm trying to disable a VS through curl. I found this article helpful https://devcentral.f5.com/questions/icontrol-to-disable-a-virtual-server?rc=1

 

When I send my curl requests I get an error back which looks something like this.

 

{"code":400,"message":"0107028c:3: The source (::) and destination () addresses for virtual server (/TEST/VS_TEST) must be be the same type (IPv4 or IPv6).","errorStack":[],"apiError":3}

My curl request is as follows:

 

curl -s -k -u test:test -H "Content-Type: application/json" -X PUT -d '{"disabled":true}' https://localhost/mgmt/tm/ltm/virtual/~TEST~VS_TEST