• wsdls=['LocalLB.VirtualServer']) 方法


    import sys
    import pycontrol.pycontrol as pc
    import time
    import csv
    import ssl
    ssl._create_default_https_context = ssl._create_unverified_context
    aa=pc.BIGIP(
        hostname='10.4.170.160',
        username='zjtlcb',
        password='aaaaa',
       fromurl = True,
       wsdls=['LocalLB.VirtualServer'])
    pool01 = aa.LocalLB.VirtualServer
    print dir(pool01)
    bb=aa.LocalLB.VirtualServer
    cc= dir(bb)
    for y in cc:
        print y
    dd= pool01.get_list()
    for x in  dd:
        print x
    	
    C:Python27python.exe C:/Users/tlcb/PycharmProjects/untitled/f5/f1.py
    ['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'add_authentication_profile', 'add_clone_pool', 'add_httpclass_profile', 'add_persistence_profile', 'add_profile', 'add_rule', 'create', 'delete_all_virtual_servers', 'delete_persistence_record', 'delete_virtual_server', 'get_actual_hardware_acceleration', 'get_all_statistics', 'get_authentication_profile', 'get_clone_pool', 'get_cmp_enable_mode', 'get_cmp_enabled_state', 'get_connection_limit', 'get_connection_mirror_state', 'get_default_pool_name', 'get_destination', 'get_enabled_state', 'get_fallback_persistence_profile', 'get_gtm_score', 'get_httpclass_profile', 'get_last_hop_pool', 'get_list', 'get_module_score', 'get_object_status', 'get_persistence_profile', 'get_persistence_record', 'get_profile', 'get_protocol', 'get_rate_class', 'get_rule', 'get_snat_pool', 'get_snat_type', 'get_source_port_behavior', 'get_statistics', 'get_translate_address_state', 'get_translate_port_state', 'get_type', 'get_version', 'get_vlan', 'get_wildmask', 'name', 'remove_all_authentication_profiles', 'remove_all_clone_pools', 'remove_all_httpclass_profiles', 'remove_all_persistence_profiles', 'remove_all_profiles', 'remove_all_rules', 'remove_authentication_profile', 'remove_clone_pool', 'remove_httpclass_profile', 'remove_persistence_profile', 'remove_profile', 'remove_rule', 'reset_statistics', 'set_cmp_enabled_state', 'set_connection_limit', 'set_connection_mirror_state', 'set_default_pool_name', 'set_destination', 'set_enabled_state', 'set_fallback_persistence_profile', 'set_gtm_score', 'set_last_hop_pool', 'set_protocol', 'set_rate_class', 'set_snat_automap', 'set_snat_none', 'set_snat_pool', 'set_source_port_behavior', 'set_translate_address_state', 'set_translate_port_state', 'set_type', 'set_vlan', 'set_wildmask', 'suds', 'typefactory']
    __class__
    __delattr__
    __dict__
    __doc__
    __format__
    __getattribute__
    __hash__
    __init__
    __module__
    __new__
    __reduce__
    __reduce_ex__
    __repr__
    __setattr__
    __sizeof__
    __str__
    __subclasshook__
    __weakref__
    add_authentication_profile
    add_clone_pool
    add_httpclass_profile
    add_persistence_profile
    add_profile
    add_rule
    create
    delete_all_virtual_servers
    delete_persistence_record
    delete_virtual_server
    get_actual_hardware_acceleration
    get_all_statistics
    get_authentication_profile
    get_clone_pool
    get_cmp_enable_mode
    get_cmp_enabled_state
    get_connection_limit
    get_connection_mirror_state
    get_default_pool_name
    get_destination
    get_enabled_state
    get_fallback_persistence_profile
    get_gtm_score
    get_httpclass_profile
    get_last_hop_pool
    get_list
    get_module_score
    get_object_status
    get_persistence_profile
    get_persistence_record
    get_profile
    get_protocol
    get_rate_class
    get_rule
    get_snat_pool
    get_snat_type
    get_source_port_behavior
    get_statistics
    get_translate_address_state
    get_translate_port_state
    get_type
    get_version
    get_vlan
    get_wildmask
    name
    remove_all_authentication_profiles
    remove_all_clone_pools
    remove_all_httpclass_profiles
    remove_all_persistence_profiles
    remove_all_profiles
    remove_all_rules
    remove_authentication_profile
    remove_clone_pool
    remove_httpclass_profile
    remove_persistence_profile
    remove_profile
    remove_rule
    reset_statistics
    set_cmp_enabled_state
    set_connection_limit
    set_connection_mirror_state
    set_default_pool_name
    set_destination
    set_enabled_state
    set_fallback_persistence_profile
    set_gtm_score
    set_last_hop_pool
    set_protocol
    set_rate_class
    set_snat_automap
    set_snat_none
    set_snat_pool
    set_source_port_behavior
    set_translate_address_state
    set_translate_port_state
    set_type
    set_vlan
    set_wildmask
    suds
    typefactory
    
    web4a_9999_vs
    ZJYWPT_huigui_25003_vs
    ZJYWPT_11213_vs
    YXPT_80_VS
    esb_hg_vs
    Xinhexin_ajp_8867_vs
    YXPT_ust_vs
    ZJYWPT_huigui_any_vs
    ZJYWPT_11231_vs
    YXPT_socket_8021_vs
    xin_2233_vs
    RA_VS
    HR_7001_vs
    hegui_7001_vs
    web4a_7002_vs
    JinRongYunPT_80_VS
    YXPT_8023_VS
    wdzjcg_9016_vs
    Xinhexin_9976_vs
    HR_7002_vs
    zjywpt-25015
    YXPT_ua_vs
    dianshang
    XiaoXiPingTai_Ceshi_vs
    ZJYWPT_11214_vs
    YXPT_8021_VS
    YXPT_console_vs
    mai_web_vs
    test_xforward_vs
    YXPT_8009_vs
    OPICS_7001_vs
    zjywpt-15001-ceshi
    XiaoXiPingTai_vs
    YXPT_167_8007_vs
    xin_9778_vs
    YXPT_167_8009_vs
    ZJYWPT_huigui_11230_vs
    ydpt_10444_vs
    YXPT_8002_vs
    YXPT_ias_vs
    ZJYWPT_vs
    YXPT_8005_vs
    YXPT_8004_vs
    jifeng_16010_vs
    YXPT_8025_vs
    YXPT_8008_vs
    TaiLongShuJu_7011_vs
    JinRongYunPT_18830_VS
    YXPT_167_8008_vs
    zjywpt-25016
    YXPT_8001_vs
    ZJYWPT_25003_vs
    YXPT_8007_vs
    ZJYWPT_15004_vs
    YXPT_8003_vs
    DuanXin_1745_vs
    jifeng_7001_vs
    WangLian_11212_vs
    ZJYWPT_huigui_16020_vs
    JinRongYunPT__web_5022_VS
    ZJYWPT_huigui_11222_vs
    YXPT_165_8006_vs
    WangLian_8888_vs
    JinRongYunPT__API_16620_VS
    JinRongYunPT__changjing_16608_VS
    JinRongYunPT__API_16640_VS
    JinRongYunPT__API_8081_VS
    WangLian_11219_vs
    ZJCG_8083_vs
    WangLian_40001_vs
    Xinhexin_8971_vs
    JinRongYunPT_17710_VS
    ZJYWPT_15001_vs
    YXPT_1935_vs
    ZJYWPT_15015_vs
    Duanxin_8078_vs
    JinRongYunPT__API_16630_VS
    JinRongYunPT_17720_VS
    WangLian_25003_vs
    piaoju_8600_vs
    YXPT_socket_8023_vs
    YXPT_dm_vs
    xin_6667_vs
    WangLian_16011_vs
    JinRongYunPT__API_16610_VS
    ZJYWPT_huigui_11229_vs
    ZJCG_9016_vs
    mail_web_vs
    XiaoXiPingTai_Ceshi_8080_vs
    Xinhexin_27779_vs
    xin_5577_vs
    JinRongYunPT__API_16670_VS
    JinRongYunPT__web_5086_VS
    XiaoXiPingTai_KF_8081_vs
    YXPT_8006_vs
    ZJYWPT_huigui_25014_pool
    esb_cs_vs
    JinRongYunPT__changjing_18810_VS
    ZJYWPT_huigui_16010_vs
    WangLian_50001_vs
    zjywpt-15004-ceshi
    
    Process finished with exit code 0
    
  • 相关阅读:
    安装Visual_Studio的艰辛历程
    桶排序和直接排序的算法和数据结构
    链式队列的c++代码和原理以及编译分析
    C# 利用xmlhttp根据网址调用接口获取数据
    使用 LINQ To SQL 和实体框架实现灵活的数据访问
    K51的安装包和ET199的开发包和示例
    The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[BMS.DataAccess.Models.ServiceTyp
    VS2008中文版中安装 silverlight 3 英文版
    让Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求(转)
    在windows2003+IIS6部署dot net的MVC项目
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348922.html
Copyright © 2020-2023  润新知