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...
amintej
Cirrus
Apr 26, 2018'monitor' is another collection with the various monitor types collections inside. You can access to the monitor type collections. Example for TCP:
tcps_monitors = mgmt.tm.ltm.monitor.tcps.get_collection()
for monitor in tcps_monitors:
print "TCP monitors:"
print monitor.name
print monitor.interval
print monitor.timeout
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