Forum Discussion
Setting persist when creating virtual server in icontrolREST
I am setting up a virtual server in icontrolREST:
$ curl -k -u admin:XXXX -X POST "https://pe-f5-01.pe.servicemesh.com/mgmt/tm/ltm/virtual" -d @newVIP.json -H "Content-Type:application/json"
Using this JSON (and whatever variants I can think of).
{"name":"api_test", "destination":"192.168.62.99:http", "ipProtocol":"tcp", "mask":"255.255.255.255", "pool":"api_test", "profiles":{"tcp-wan-optimized":{"context":"all"}, "http":{"context":"all"}}, "persist":{"cookie":{"default":"yes"}}}
In the case of this particular variant, I get this error:
Encountered unsupported operation add at /ltm/virtual/api_test/persist.
I am evidently not finding the correct syntax. Thanks for your help.
4 Replies
- kunjan
Nimbostratus
It works for me with 11.5.0 Build 0.0.221. Which version were you trying?
- mgbailey_160800
Nimbostratus
I am in 11.4.1 Build 608.0
- kunjan
Nimbostratus
Tested the same with 11.4.1 build 647.0, got error. So it's not a syntax issue. Might need to upgrade, if possible.
- mgbailey_160800
Nimbostratus
Thanks for checking that out for me.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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