Getting Started with the f5-common-python SDK
Updated Jun 06, 2023
Version 2.0Was this article helpful?
Hi,
I am struggling to figure out a way to retrieve the irules associated with a virtual server using the SDK. I load the virtual:
virtual = bigip.ltm.virtuals.virtual.load(partition='Common',name='my-virtual')
If I interactively do the above in python and print virtual.raw I can see a "rules" attribute and can iterate over it:
for rule in rules: print rule
However, if I try this in the python script then it errors out indicating that there is no "rules" attribute associated with the virtual object. What am I missing?
Thanks, Kurt