Forum Discussion
Rob_74473
Cirrus
Apr 25, 2018Get list of monitors through SDK
I am trying to mimic the Health Monitors section from a pool properties page from the BigIP gui. I need to get a list of all monitors so I can construct a select field in a web page. I have tried sev...
Satoshi_Toyosa1
Jun 19, 2018Ret. Employee
for t in monitorTypes:
endp = 'mgmt.tm.ltm.monitor.' + t + '.get_collection()'
try:
e = eval(endp) Get list
eList = map(lambda x: x.name, e)
print('{}: {}'.format(t, ','.join(eList)))
except AttributeError:
print('{} does not exist.'.format(t))
The code would yield something like this (truncated):
diameters: diameter
dns_s: dns
externals: external
firepass_s: firepass
ftps: ftp
gateway_icmps: gateway_icmp
https: http,http_head_f5
https_s: https,https_443,https_head_f5
...
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