Forum Discussion
Michel_van_der_
Nimbostratus
May 28, 2004Can I get the target of a proxy?
If I have created a proxy with ITCMLocalLB.Proxy.create, how can
I later on find which was the actual target defined?
bknotwell_12713
May 29, 2004Historic F5 Account
!/usr/bin/env python
from SOAPpy import SOAPProxy,structType
ns = 'urn:iControl:ITCMLocalLB/Proxy'
url = 'http://blah:blahblah@192.168.1.14/iControl/iControlPortal.cgi'
s = SOAPProxy(url,namespace=ns)
proxyList = [ structType(data={'address' : '192.168.1.121','port' : 443 })]
print s.get_proxy_target(proxies = proxyList)
print s.get_proxy_target_type(proxies = proxyList)
=================== gives you =====================
: [: {'port': 80L, 'address': '192.168.1.121'}]
: [0] (0 == VIP and 1 == SERVER)
Hope this helps.
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