Enable/Disable GTM pool member by java Icontrol
Hi,
I got java code to enable/disable LTM pool members and it is working as expected. Simplarly we want for GTM pool members as well. I tried to get pool members for particlur pool but it displayes all the pool and not able to find code for enable and disable GTM pool members. Also there is no documnet for it. please help on this . in our office we need this for automation for clinets. We are using F5 wiedly for many clients.
Below is the code for getting GTM pool members but it displays all the pool members.
public void getPoolMembers(String pool) throws Exception
{
System.out.println("getPoolMembers---");
String [] pool_list = { pool };
GlobalLBPoolPoolMemberDefinition[][] memberDefAofA =
m_interfaces.getGlobalLBPool().get_member(pool_list);
GlobalLBPoolPoolMemberDefinition[] memberDefA = memberDefAofA[0];
System.out.println("Pool Member for pool '" + pool + "'");
for(int i=0; i<memberDefA.length; i++)
{
String addr = memberDefA[i].getMember().getAddress();
long port = memberDefA[i].getMember().getPort();
System.out.println(" " + addr + ":" + port);
}
}
Kindly help on this.Thanks