Getting Started with the f5-common-python SDK
If you have dabbled with python and iControl over the years, you might be familiar with some of my other “Getting Stared with …” articles on python libraries. I started my last, on Bigsuds, this way:...
Updated Jun 06, 2023
Version 2.0JRahm
Admin
Joined January 20, 2005
JRahm
Jan 25, 2018Admin
Hi @Joel, the Stats utility needs work, but you can use it to demangle the nested stats details that you get from the rest interface to get that value:
from f5.bigip import ManagementRoot
from f5.utils.responses.handlers import Stats
b = ManagementRoot('ltm3.test.local', 'admin', 'admin')
ha_status = b.tm.cm.sync_status.load()
Stats(ha_status).stat.color['description']
u'green'