Forum Discussion
paul_adomeit_70
Nimbostratus
Jan 08, 2007query_pool_associations does not return anything
Here's a sample of the code I'm using. I stripped all the faultcode checking for now.
The credentials, host, port etc are set elsewhere. The soap response returns an empty array. I've tried a few different rules on two different big-ip's (both running v4.5.14) and got the same result. I'm using v4.6.3 of iControl.
I included some of the debug messages.
1. The rule does exist (text is 'use pool test')
2. The request is using the "rule_names" parameter and is a string"
3. Big-IP responds with a 200 OK so I'm in the right ball park
4. The response come back with an empty array
----------------------------------------------------------------------------
Get pools used by rule
----------------------------------------------------------------------------
sub get_pools_used_by_rule
{
$soap1 = SOAP::Lite
-> uri('urn:iControl:ITCMLocalLB/Rule')
-> readable(1)
-> proxy("https://$sHost:$sPort/iControl/iControlPortal.cgi");
$soap1_response = $soap1->query_pool_associations(SOAP::Data->name(rule_names => "sample"));
print "pool is ".$soap1_response->result." \n";
}
Here's a few debug statements:
(what the client is going to do)
SOAPAction: "urn:iControl:ITCMLocalLB/Rulequery_pool_associations"
(what is sent)
>
>
>
>sample
The reponse....
SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x55fa34c)
SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK
Here's the soap body in the response:
xmlns:m="urn:iControl:ITCMLocalLB/Rule">
s:type="A:Array"
A:arrayType="A:Array[0]"/>
- paul_adomeit_70
Nimbostratus
Hi Joe, - paul_adomeit_70
Nimbostratus
We have a winner.
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