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());
1 Reply
- rachulola, sorry for the delay in the response, I've been out of the office for the holidays and am just catching up on things.
I wrote a tech tip on partitions and all the methods are discussed in there. It's written in PowerShell but you should be able to extract the relevant logic in there to translate it to Java. Let me know if you get stuck and I'll help you out.http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=176
Click here
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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