Forum Discussion
Jeff_Browning_2
May 22, 2003Historic F5 Account
How to I introduce a new node into a specific pool?
I have been looking at the apidocs (LocalLB methods) but I don't know which method is appropriate to use. Any tips would be great.
Thanks, Jeff
May 23, 2003
The ITCMLocalLB::Pool interface is used to manipulate members in a given pool. The specific method that you want is.
void add_members
(
String pool_name
IPPortDefinition[] members
);
Code to add member "10.10.10.10:80" to pool "web_servers" this would look something like the following with Apache/SOAP.
String pool_name = "web_servers";
IPPortDefinition[] members = new IPPortDefinition[1];
members[0] = new IPPortDefinition("10.10.10.10", 80);
Vector params = new Vector();
params.addElement(
new Parameter("pool_name", String.class, pool_name, null));
params.addElement(
new Parameter("members", IPPortDefinition[].class, members, null));
call.setParams(params);
call.setMethodName("add_members");
Response resp = call.invoke(...);
....
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