Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore ListLoad Str Str Str Str body If CompareLt NameLoad Num body Return BinOpMod Str TupleLoad NameLoad NameLoad AugAssignDiv NameStore Num Return BinOpMod Str TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print Call AttributeLoad Str attr Str AttributeLoad AttributeLoad NameLoad attr attr Print Call AttributeLoad Str attr Str AttributeLoad AttributeLoad NameLoad attr attr Print Call AttributeLoad Str attr Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Print Call AttributeLoad Str attr Str AttributeLoad AttributeLoad NameLoad attr attr Print Call AttributeLoad Str attr Str AttributeLoad AttributeLoad NameLoad attr attr Print Call AttributeLoad Str attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr keyword NameLoad If UnaryOpNot NameLoad body Print Str Return Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict For NameStore NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict For NameStore NameLoad body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad orelse Assign NameStore Dict Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Assign NameStore Num For NameStore NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str AttributeLoad NameLoad attr AugAssignAdd NameStore Num orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Print Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Print Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print BinOpAdd Str AttributeLoad NameLoad attr Return Num Return Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
vSphere Python SDK program for listing all ESXi datastores and their
associated devices
 N/A argparse N/A atexit N/A json N/A ssl pyVim connect pyVmomi vmodl pyVmomi vim tools cli get_args N/A N/A N/A N/A N/A 
   Supports the command-line arguments listed below.
    N/A parser N/A N/A argparse ArgumentParser description Process args for retrieving all the Virtual Machines N/A N/A N/A parser add_argument -s --host required True action store help Remote host to connect to N/A N/A N/A parser add_argument -o --port type int default 443 action store help Port to connect on N/A N/A N/A parser add_argument -u --user required True action store help User name to use when connecting to host N/A N/A N/A parser add_argument -p --password required True action store help Password to use when connecting to host N/A N/A N/A parser add_argument -j --json default False action store_true help Output to JSON N/A N/A N/A parser add_argument -S --disable_ssl_verification required False action store_true help Disable ssl host certificate verification N/A args N/A N/A parser parse_args N/A args N/A sizeof_fmt N/A N/A num N/A N/A N/A 
    Returns the human readable version of a file size

    :param num:
    :return:
     N/A item N/A bytes KB MB GB N/A N/A N/A num 1024.0 N/A N/A N/A %3.1f%s N/A num item N/A num 1024.0 N/A N/A %3.1f%s N/A num TB N/A print_fs N/A N/A host_fs N/A N/A N/A 
    Prints the host file system volume info

    :param host_fs:
    :return:
     N/A N/A N/A {}	{}	 format Datastore:      N/A N/A host_fs volume name N/A N/A N/A {}	{}	 format UUID:           N/A N/A host_fs volume uuid N/A N/A N/A {}	{}	 format Capacity:       N/A sizeof_fmt N/A N/A host_fs volume capacity N/A N/A N/A {}	{}	 format VMFS Version:   N/A N/A host_fs volume version N/A N/A N/A {}	{}	 format Is Local VMFS:  N/A N/A host_fs volume local N/A N/A N/A {}	{}	 format SSD:            N/A N/A host_fs volume ssd N/A main N/A N/A N/A N/A N/A 
   Simple command-line program for listing all ESXi datastores and their
   associated devices
    N/A args N/A get_args N/A N/A N/A cli prompt_for_password args N/A sslContext None N/A N/A args disable_ssl_verification N/A N/A sslContext N/A N/A ssl SSLContext N/A ssl PROTOCOL_SSLv23 N/A N/A sslContext verify_mode N/A ssl CERT_NONE N/A N/A N/A service_instance N/A N/A connect SmartConnect host N/A args host user N/A args user pwd N/A args password port N/A int N/A args port sslContext sslContext N/A N/A service_instance N/A N/A Could not connect to the specified host using specified username and password N/A -1 N/A N/A N/A atexit register N/A connect Disconnect service_instance N/A content N/A N/A service_instance RetrieveContent N/A objview N/A N/A N/A content viewManager CreateContainerView N/A content rootFolder N/A N/A vim HostSystem True N/A esxi_hosts N/A objview view N/A N/A N/A objview Destroy N/A datastores N/A N/A esxi_host esxi_hosts N/A N/A N/A N/A args json N/A N/A N/A N/A {}	{}	
 format ESXi Host:     N/A esxi_host name N/A storage_system N/A N/A esxi_host configManager storageSystem N/A host_file_sys_vol_mount_info N/A N/A storage_system fileSystemVolumeInfo mountInfo N/A datastore_dict N/A N/A host_mount_info host_file_sys_vol_mount_info N/A N/A N/A N/A N/A host_mount_info volume type VMFS N/A N/A extents N/A N/A host_mount_info volume extent N/A N/A N/A args json N/A N/A N/A print_fs host_mount_info N/A N/A datastore_details N/A uuid capacity vmfs_version local ssd N/A N/A host_mount_info volume uuid N/A N/A host_mount_info volume capacity N/A N/A host_mount_info volume version N/A N/A host_mount_info volume local N/A N/A host_mount_info volume ssd N/A extent_arr N/A N/A extent_count 0 N/A extent extents N/A N/A N/A N/A args json N/A N/A N/A N/A {}	{}	 format N/A N/A Extent[ N/A str extent_count ]: N/A extent diskName N/A extent_count 1 N/A N/A N/A N/A extent_arr append N/A extent diskName N/A N/A datastore_details N/A extents extent_arr N/A N/A datastore_dict N/A N/A N/A host_mount_info volume name datastore_details N/A N/A N/A args json N/A N/A N/A N/A datastores N/A N/A esxi_host name datastore_dict N/A N/A args json N/A N/A N/A N/A json dumps datastores N/A N/A N/A N/A vmodl MethodFault N/A error N/A N/A N/A Caught vmodl fault :  N/A error msg N/A -1 N/A 0 N/A N/A N/A __name__ __main__ N/A N/A N/A main