pimy_233956
Nov 13, 2015Nimbostratus
iControl PS Snapin throws error when calling LocalLBPool.get_member_metadata
iControlSnapin v23 PowerShell v4.0
Hi,
I am able to successfully call other LocalLBPool methods. When I attempt to call LocalLBPool.get_member_metadata I receive an error.
(Get-F5.iControl).LocalLBPool.get_member_metadata(@('mypool'),@($object))
Exception calling "get_member_metadata" with "2" argument(s): "There is an
error in XML document (11, 2)."
At line:1 char:64
+ (Get-F5.iControl).LocalLBPool.get_member_metadata(@('mypool'),@($object))
+ ~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException
`
Of course I run Initialize-F5.iControl first. I build my $object using this code:
`$object = New-Object -TypeName iControl.CommonAddressPort
$object.address = 'mynodeaddress'
$object.port = 443
`
Here is an example of a method that works fine with that same object:
`(Get-F5.iControl).LocalLBPool.get_member_object_status(@('mypool'),@($object))
availability_status enabled_status status_description
------------------- -------------- ------------------
AVAILABILITY_STATUS_GREEN ENABLED_STATUS_ENABLED The DNS server(s) are ...
Any ideas? Is the source code for the iControlSnapin available somewhere?
Thanks, pimy