与宙斯交通管理器交互的接口。
hera的Python项目详细描述
在神话中,赫拉是宙斯的妻子(和妹妹!)。在此目录中,hera是 通过它与Zeus Traffic Manager(以前是zxtm)交互的接口 soap接口。此库是为Traffic Manager版本6编写的。
你可以从api中做任何你想做的事情,但是 特定库当前只与System.Cache.wsdl交互,因为 这是我唯一感兴趣的部分。
zeus手册和完整的wsdl文件可用于每个通信 通过点击迷宫的管理器:
- Log in
- Click “Diagnose”
- Click “Technical Support”
- The manuals are all on this page as well as a link to “Control API WSDL Files”
基本用途
一个简单的例子:
>>> from hera import Hera >>> h = Hera(username, password, location) # Empties the entire cache >>> h.flushAll()
测试
将test_settings.py-dist复制到test_settings.py,并填写所有 价值观。然后运行fab test。