Adding a pool member syntax
I am trying to add a node to a pool (with PowerShell) using the following syntax:
(Get-F5.iControl).LocalLBPool.add_member("pool_test", "10.3.5.92:80")
The error I get is
Cannot convert argument "1", with value: "10.3.5.92:80", for "add_member" to type "iControl.CommonIPPortDefinition[][]"
: "Cannot convert the "10.3.5.92:80" value of type "System.String" to type "iControl.CommonIPPortDefinition[][]"."
At line:1 char:41
+ (Get-F5.iControl).LocalLBPool.add_member <<<< ("pool_test", "10.3.5.92:80")
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
What is the correct syntax for the second parameter? I can't seem to find it in the forums, wiki, API documentation... :(
Thanks in advance!