十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
#Author Kang
import ssl
import pysphere
from pysphere import VIServer
ssl._create_default_https_context = ssl._create_unverified_context
host_ip = '10.3.152.88'
username = 'zhoumingkang@xxxx.com'
passwd = 'password'
server = VIServer()
server.connect(host_ip,username,passwd)
print server.get_api_type()
print server.get_api_version()
server.disconnect()
#结果
VirtualCenter
6.5