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.

It works for me with 11.5.0 Build 0.0.221. Which version were you trying?

I am in 11.4.1 Build 608.0

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.

Thanks for checking that out for me.