PoolMember:
PoolMember => {
get_object_status => 'pool_names',
get_statistics => {pool_names => 1, members => 1},
get_all_statistics => 'pool_names',
},
get_all_statistics
get_connection_limit
get_dynamic_ratio
get_monitor_association
get_monitor_instance
get_monitor_status
get_object_status
get_priority
get_ratio
get_session_enabled_state
get_session_status
get_statistics
get_version
import pycontrol.pycontrol as pc
import urllib3
import ssl
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
ssl._create_default_https_context = ssl._create_unverified_context
import requests
requests.packages.urllib3.disable_warnings()
print 'ddddddddddddddd'
c = pc.BIGIP(
hostname='10.4.170.160',
username='zjtlcb',
password='12345678',
fromurl=True,
wsdls=['LocalLB.PoolMember'])
p1 = c.LocalLB.PoolMember
# print p1.get_member_object_status(pool_names=['test_12916_pool','10.4.16.100'])
print dir(p1)
print p1.get_object_status(pool_names=['test_12916_pool'])
get_statistics:
sub get_pool_member_statistics {
my ($self, $pool)= @_;
return $self->_request(module => 'LocalLB', interface => 'PoolMember', method => 'get_statistics', data => {
pool_names => [$pool],
members => $self->__get_pool_members($pool,'LocalLB') });
}
import pycontrol.pycontrol as pc
import urllib3
import ssl
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
ssl._create_default_https_context = ssl._create_unverified_context
import requests
requests.packages.urllib3.disable_warnings()
print 'ddddddddddddddd'
c = pc.BIGIP(
hostname='10.4.170.160',
username='zjtlcb',
password='12345678',
fromurl=True,
wsdls=['LocalLB.PoolMember'])
p1 = c.LocalLB.PoolMember
# print p1.get_member_object_status(pool_names=['test_12916_pool','10.4.16.100'])
print dir(p1)
for x in (dir(p1)):
print x
# print p1.get_statistics(pool_names=['test_12916_pool'],members=['10.4.16.101'])
print p1.get_statistics(pool_names=['test_12916_pool'],members=['10.4.16.100:12916'])
get_all_statistics:
import pycontrol.pycontrol as pc
import urllib3
import ssl
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
ssl._create_default_https_context = ssl._create_unverified_context
import requests
requests.packages.urllib3.disable_warnings()
print 'ffffffffffffff'
c = pc.BIGIP(
hostname='10.4.170.160',
username='zjtlcb',
password='12345678',
fromurl=True,
wsdls=['LocalLB.PoolMember'])
p1 = c.LocalLB.PoolMember
print p1.get_all_statistics(pool_names=['test_12916_pool'])