Forum Discussion
Lerna_Ekmekciog
Nimbostratus
Aug 11, 2005which iRules reference this pool
Hello,
I'm using iControl sdk 9.0. I'm working on a Java program that pushes a given config of a load balancer obtained from a database to the local box.
Is there a programatically...
Aug 11, 2005
I think you meant to check which iRules a virtual server is reference by. Pools and Rules are both resources applied to a virtual server.
With that being said, there really isn't an easy way to do this search given a rule, to find which virtuals it is associated with. Our API's are defined top-down, meaning that you need to go to a containing object to get information about it's contained members.
What you'll have to do is the following:
Feed the string array returned from LocalLB::VirtualServer::get_list() into LocalLB::VirtualServer::get_rule().
You can then loop through all the rules and when you find a match lookup that associated entry in the virtual list.
This is the second question of this sort we've gotten this week - the last one was asking if you could lookup which virtuals a pool belongs to in a single call. The answer there was the same procedure as I described above for rules. I'll create a change request to add this feature in an upcoming release.
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects