• python 获取指定pool的成员信息


    2. 获取pool的成员:
    
    pool 方法:
    
    get_ltm_pool_members
    
    sub __get_pool_members {
            my ($self, $pool, $module)= @_;
            return $self->_request(module => $module, interface => 'Pool', method => 'get_member', data => {pool_names => [$pool]});
    }
    import sys
    import pycontrol.pycontrol as pc
    import time
    import csv
    import ssl
    ssl._create_default_https_context = ssl._create_unverified_context
    pool='YXPT_ust_pool'
    
    b = pc.BIGIP(
    hostname = '10.4.170.160',
    username = 'zjtlcb',
    password = '123456',
    fromurl = True,
        wsdls=['LocalLB.Pool'])
    pools = b.LocalLB.Pool
    print pools
    print dir(pools)
    
    print dir(pools)
    a= pools.get_member(pool_names=['YXPT_ust_pool'])
    # print type(a)
    
    print a
  • 相关阅读:
    python之基础2
    python之文件2
    python之入门2
    python之入门
    python之多并发2
    python之面向对象2
    python之MySQL系列
    python之文件
    python之多并发
    Google身份验证器详解
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348965.html
Copyright © 2020-2023  润新知