Python pyvmomi和SmartConnect功能

Python pyvmomi和SmartConnect功能,python,pyvmomi,Python,Pyvmomi,我有一些关于SmartConnect和pyvmomi的问题 1) 在哪里可以找到有关使用smartconnect的详细说明 2) 此函数的作用是:连接到VM后的“RetrieveContent”: def enable_ssh(vc_ip, vc_user="administrator@vsphere.local", vc_password="Kashya123!"): try: si = SmartConnect(host=vc_ip, port=443, user=v

我有一些关于SmartConnect和pyvmomi的问题

1) 在哪里可以找到有关使用
smartconnect
的详细说明

2) 此函数的作用是:
连接到VM后的“RetrieveContent”:

def enable_ssh(vc_ip, vc_user="administrator@vsphere.local", vc_password="Kashya123!"):
    try:
        si = SmartConnect(host=vc_ip, port=443, user=vc_user, pwd=vc_password)
        content = si.RetrieveContent()
        cluster_list = content.rootFolder.childEntity
3) 这条线是干什么的

 cluster_list = content.rootFolder.childEntity
非常感谢:)