Forum Discussion
ldesfosses
Cirrus
Apr 09, 2019Retrieving list of virtual does not display iapp.
Hi,
When I use iControlInterfaces.getLocalLBVirtualServer().get_list(), it only return the virtual created manually, but not the one created with iApp.
Someone replied here : https://devcentral.f5.com/questions/icontrol-with-java-retrieve-list-of-virtual-servers-does-not-include-applications that we should use : System.Session.set_recursive_query_state()
How do I get the object system ?
Thanks.
- ldesfosses
Cirrus
I found code example in PS but not in Java and it appear there is no javadoc...
- ldesfosses
Cirrus
I found it, it's the SystemSession, part of the iControl Interfaces :
iControl.Interfaces icInterfaces = new iControl.Interfaces(); icInterfaces.initialize(BigIPHostname, login, password) ; try { icInterfaces.getSystemSession().set_recursive_query_state(CommonEnabledState.STATE_ENABLED) ; } catch (Exception E) { web.println("Error while icInterfaces.getSystemSession().set_recursive_query_state(CommonEnabledState.STATE_ENABLED)") ; web.println(E.toString()) ; }
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