25-Feb-2020 00:46
Team,
I'm planning to write a code in python to establish a relationship between the Virtual Server and Persist Profile. Basically i need to know which persistence profile maps to which virtual server ? If anyone has done this before or does anyone have some source code that i can test with would help me.
Thanks,
Harsha
25-Feb-2020 08:09
I would suggest using REST API Guide and Curl as a good starting point. I would have thought that simply sending a GET request to retrieve the virtual server config, should show you the associated profiles as well. Python Requests library is very good and you can build your own scripts that way. Use Curl to get familiar with the API ... That's the way I did last time I had a project for this. I believe there are also code examples on DevCentral. I seem to remember some old articles giving examples..
25-Feb-2020
22:16
- last edited on
24-Mar-2022
01:22
by
li-migration
Thanks for your feedback , i tried using awk command & it was returning me the Virtual Server & the Persist profile that it is mapped .
Definitely i'll try out REST API & keep you posted !