cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

Virtual Server and Persist Profile Mapping in F5 LTM

Sree_Harsha_S
Nimbostratus
Nimbostratus

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

2 REPLIES 2

consul_2019
Cirrus
Cirrus

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..

Sree_Harsha_S
Nimbostratus
Nimbostratus

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 !