Forum Discussion

JulienDebbia_20's avatar
JulienDebbia_20
Icon for Nimbostratus rankNimbostratus
Jan 05, 2016

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.

 

Example: curl -sk -u login:password -X GET (or tcp)

 

Somebody can help me please?

 

Thanks a lot.

 

  • 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"}'
    
  • 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"}'
    
  • 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"}'