Forum Discussion
Adding a pool member syntax
In your code, you are just passing in a scalar string for both the pool_name and members parameters. The definition for the function is:
add_member (
String [] pool_names,
Common__IPPortDefinition [][] members
);
The first parameter is an array of strings, one for each pool you want to add members to. The second parameters is a 2-d array, with each dimension for the list of members you want to add to the given pools in the first parameter.
I'm not at my desk right now, so I don't have an exact code snippet for that function in PowerShell, but I did put this up in the codeshare a while ago where it uses the PoolMember.get_statistics() method
http://devcentral.f5.com/wiki/iControl.PsPoolMemberControl.ashx
Look down in the Disable-Member function for the call to get_statistics. In that call, I pass in a single pool in the pool_name variable, and a single member for the second param. The return value isn't the same for the two methods, but it should show you how to declare the proper types for the parameters and how to fill them in.
Hope this helps...
-Joe
Recent Discussions
Related Content
* 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