Forum Discussion
f5TechieAA_7448
Nimbostratus
Nov 20, 2008Which Icontrol java API can be used to specify(set) partition name to get pool info
How and where can I specify my partition name to get partition specific pool name and other attributes instead of getting all common partition information
m_endpoint = "https://user name:password@hostname:port/iControl/iControlPortal.cgi";
m_pool = (iControl.LocalLBPoolBindingStub)
new iControl.LocalLBPoolLocator().getLocalLBPoolPort(new java.net.URL(m_endpoint));
m_poolMember = (iControl.LocalLBPoolMemberBindingStub)
new iControl.LocalLBPoolMemberLocator().getLocalLBPoolMemberPort(new java.net.URL(m_endpoint));
System.out.println("Pool user name "+m_pool.getUsername());
6 Replies
- Don_MacVittie_1Historic F5 AccountManagement.Partition.set_active_partition() should take care of it for you. Call it before your other calls, and you'll be set. Assuming you have rights to the partition anyway.
- f5TechieAA_7448
Nimbostratus
I could not find Management java class in Icontrol.jar. - Management is the module and Partition is the interface. The generated class in the java library is ManagementPartition and I just verified in that it is in there in the last build I released to DevCentral.
- Don_MacVittie_1Historic F5 AccountSorry rachukola, I was listing from the documents rather than giving you the actual class name.
- f5TechieAA_7448
Nimbostratus
Thanks Joe . I wanted to get pool information from certain partition only. - Glad to help!
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