Forum Discussion
mohammed_afzal_
Nimbostratus
Jul 30, 2018Enabling/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
2 Replies
- Stephane_Viau
Nimbostratus
Can you try using PATCH instead of PUT?
- mohammed_afzal_
Nimbostratus
Ooh. That worked. Thank you Stephane!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects