Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

How to I introduce a new node into a specific pool?

Jeff_Browning_2
Historic F5 Account
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
1 REPLY 1

Joe_Pruitt
Cirrostratus
Cirrostratus
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(...); 
     ....