Mark_Stradling_
May 31, 2016Cirrus
F5 Python SDK - How to Get Profiles on a Virtual
I am using the F5 python SDK. It is awesome. Very useful. I am not, however, able to figure out how to access the subcollection of monitors attached to a virtual object. Any one have any idea how to do this?
So far, I've gathered that you can see a link to the profiles via something like this:
virtuals = srcf5.tm.ltm.virtuals.get_collection()
for v in virtuals:
profiles = v.profilesReference
From there I was hoping I could do .get_collection(), but it does not have that method. I suppose I could go back to manually calling rest and parsing json for this one portion, but I feel like there is a way to do it in the SDK.
Thanks!