Getting Started with the f5-common-python SDK
Updated Jun 06, 2023
Version 2.0Was this article helpful?
rules is an attribute of virtual, so you need to do it this way:
for rule in virtual.rules:
print rules
example:
>>> vip = b.tm.ltm.virtuals.virtual.load(name='testvip_http2', partition='Common')
>>> for rule in vip.rules:
... print rule
...
/Common/http2_test
/Common/static_test
/Common/uri_replace