Forum Discussion
geoffrey_112372
Nimbostratus
Jan 27, 2009help with Pool_member set_connection_limit
i have difficulties to set the connection limit for a pool member I try something like this below.
Any help or example would be appreciated. thanks
$Pool_member= SOAP::Lite
-> uri('urn:iControl:LocalLB/PoolMember')
-> proxy("https://$BIGIP/iControl/iControlPortal.cgi");
@memb =
(
'address' => '192.168.11.168',
'port'=>0,
);
@memberlimit=
(
@memb,
'connection_limit' => 500,
);
$soapResponse = $Pool_member->set_connection_limit
(
SOAP::Data->name(pool_names => [$pool]),
SOAP::Data->name(limits => [@memberlimit] )
);
- helix90_35879
Nimbostratus
Where is the line: - geoffrey_112372
Nimbostratus
The API online mention 2 Parameters// Member with IP and port @memb = ( 'address' => '192.168.11.168', 'port'=>0, );
// Member with connection limit @memberlimit= ( @memb, 'connection_limit' => 500, );
- geoffrey_112372
Nimbostratus
It works like that, thanks anyway$Pool_member= SOAP::Lite -> uri('urn:iControl:LocalLB/PoolMember') -> proxy("https://$BIGIP/iControl/iControlPortal.cgi"); $memb= { 'address' => "192.168.11.168", 'port'=> 0 } ; $memberlimit= { 'member' => $memb, 'connection_limit' => 500 } ; my @t= ($memberlimit); my @tab=[(@t)]; $soapResponse = $Pool_member->set_connection_limit ( SOAP::Data->name(pool_names => [$pool]), SOAP::Data->name(limits => [@tab]) );
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