James_Betts_290
Cirrus
Dec 13, 2016Python f5.bigip VIP issue
I wrote some sample code and was able to retrieve a VIP like this: VIP = mgmt.tm.ltm.virtuals.virtual.load(partition='Common', name='Foo')
When I ran the code against my production server, most of the VIPs were created with iApps so their fullPath value would be something like: /Common/myapp.iapp/Foo
The problem is that the code shown above won't retrieve the VIP I need. I can't figure out how using the API to supply a query string like "Common~myapp.iapp~Foo". Is there a workaround for this? I've been a C programmer so long I have the yellow Bell Labs reference but I'm pretty new to Python, any hints?
Turns out a solution existed but wasn't in the docs.
There is a parameter "subPath" that can be used in queries and updates:
Code: VIP = mgmt.tm.ltm.virtuals.virtual.load(partition='Common', subPath='iApp', name='myVIP')