Forum Discussion
JulienDebbia_20
Jan 05, 2016Nimbostratus
iControlREST - Create peristence profile
Hello,
I would like to know how can I create a persistence profile (like cookie) with the restAPI.
I'm able to get TCP or HTTP profile but I didn't find how to get persistence profiles. ...
- Jan 05, 2016
try this:
curl -sk -u admin:admin https://192.168.1.252/mgmt/tm/ltm/persistence/cookie -H 'Content-Type: application/json' -X POST -d '{"partition":"my_partition","name":"persist_cookie","defaultsFrom":"/Common/cookie","cookieName":"lbsticky"}'
Zdenda_101923
Altocumulus
try this:
curl -sk -u admin:admin https://192.168.1.252/mgmt/tm/ltm/persistence/cookie -H 'Content-Type: application/json' -X POST -d '{"partition":"my_partition","name":"persist_cookie","defaultsFrom":"/Common/cookie","cookieName":"lbsticky"}'
JulienDebbia_20
Jan 05, 2016Nimbostratus
It works like a charm! Thank you
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