Forum Discussion
ltp_55848
Nimbostratus
Sep 14, 2011PoolMember::get_statistics parameters
Hi All,
I'm having some difficulty in correctly invoking LocalLB::PoolMember::get_statistics in a perl script. My understanding of the API reference is that the method accepts two parameters;
...
So with a fresh perspective on the problem this morning I had a "Duh!" moment and realised what I'd been doing wrong.
Instead of passing a SOAP::Data objects for each parameter, I was passing a single object containing all parameters. So this;
$query = $client->get_statistics(SOAP::Data->name(pool_names => [ 'my_pool' ], members => [{address => '10.1.1.10', port => '80'}] ));
Should be;
$query = $client->get_statistics(SOAP::Data->name(pool_names => [ 'my_pool' ]),SOAP::Data->name(members => (['10.1.1.10'],['80']) ));
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects