Forum Discussion
Mike_MacLynn_61
Feb 15, 2012Nimbostratus
Parameters for LocalLB.VirtualServer.create
Hi,
I'm using Java and Apache Axis to invoke LocalLBVirtualServer.create(). The method description states
"Takes additional, optional parameters, that enable you to override the default optional values."
Is it possible to tell from the API documentation which parameters are optional and which are mandatory?
Also, for the 3rd parameter VirtualServerResource[] resources, I find that if I don't specify this (pass a null in the 3rd position) then the API call succeeds but no virtual server is shown when I run "list ltm virtual" on the command line interface. When I do specify parameter "resources" the API succeeds and I can see the new virtual server is created.
If resources is mandator I'd expect the API to fail with an error if it is omitted.
thanks,
Mike.
- Mike. sorry for the confusion. On most of our methods that take arrays, we expect you to pass equal size arrays for all the parameters. For the VirtualServer's create method, it looks like this:
LocalLB::VirtualServer::create( in Common::VirtualServerDefinition [] definitions, in String [] wildmasks, in LocalLB::VirtualServer::VirtualServerResource [] resources, in LocalLB::VirtualServer::VirtualServerProfile [] [] profiles );
- Mike_MacLynn_61NimbostratusHI Joe,
- Great, 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