Forum Discussion
Fuchan_Tan_3092
Apr 09, 2012Nimbostratus
How is the virtual server status set?
Using the following steps via Java ICONTROL (exception 2 steps noted), I have created two virtual servers ( on port 80 and port 443). One issue remains, the status stays as "UNKNOWN" for both virtual ...
Jonathan_Scholi
Apr 10, 2012Cirrostratus
If you've already created the virtual server, you can use the set_default_pool_name() method, but I find it easier to apply the default pool at the time of virtual server creation. Something like:
LocalLBVirtualServerVirtualServerResource[] resourceArray = new LocalLBVirtualServerVirtualServerResource[1];
LocalLBVirtualServerVirtualServerResource poolResource = new LocalLBVirtualServerVirtualServerResource();
poolResource.setType(iControl.LocalLBVirtualServerVirtualServerType.RESOURCE_TYPE_POOL);
poolResource.setDefault_pool_name(poolNameVariable);
resourceArray[0] = poolResource;
iControlInterfaces.getLocalLBVirtualServer().create(commonVirtualServerDefinitionArray, wildmasksString, resourceArray, localLBVirtualServerVirtualServerProfileArray);
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