Forum Discussion
Sep 28, 2019
Hi Ali,
from f5.bigip import ManagementRoot
import getpass
user = input("Username:")
password = getpass.getpass("Password:")
f5_ip = "10.1.1.1"
mgmt = ManagementRoot(f5_ip, user, password)
virtuals = mgmt.tm.ltm.virtuals.get_collection()
for virtual in virtuals:
client_ssl = "None"
for profile in virtual.profiles_s.get_collection():
if profile.context == "clientside":
client_ssl = profile.name
print("VS {} IP {} Profile {}".format(virtual.name, virtual.destination, client_ssl))