Forum Discussion
Ali_Hyder
Sep 28, 2019Nimbostratus
How to get the list of VIP Name, IP & Its Client SSL profile using Python SDK?
I am trying to get a list of Client SSL Profile configured to each VIP using Python SDK. I could able to gather information upto VIP name and IP, but looks like getting SSL profile attached to is not...
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))
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