Forum Discussion
Vinay_12452
Nov 24, 2011Nimbostratus
How to set HTTPProfile for VirtualServer from Java
Hi..I am a beginner.
I created a VirtualServer using the below code...How can i set the attributes HTTPProfile, FTPProfile, XMLProfile etc to the VirtualServer from java code.
CommonVirtualServerDefinition vsDef = new CommonVirtualServerDefinition(vsName, ipAddress, port, CommonProtocolType.PROTOCOL_TCP);
LocalLBVirtualServerVirtualServerResource vsResource = new LocalLBVirtualServerVirtualServerResource(LocalLBVirtualServerType.RESOURCE_TYPE_POOL, poolName);
LocalLBVirtualServerVirtualServerProfile vsProfile = new LocalLBVirtualServerVirtualServerProfile(LocalLBProfileContextType.PROFILE_CONTEXT_TYPE_ALL, protocol);
virtualServerStub.create({vsdef}, {255.255.255.255}, {vsResource}, {{vsprofile}})
using above code, i could create a VirtualServer. I am getting HTTPProfile, FTPProfile, XMLProfile..etc as 'NONE' in the interface.
How could i set these attributes from java code.
Thanks in advance.
Vinay.
- Vinay_12452Nimbostratusgot it.
- Once you create the virtual server, you can add profiles with these methods
- Vinay_12452NimbostratusThanks alot Joe. Nice article and very much helpful.
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