51,396
社区成员




public static void main(String args[]){
try{
//获取 HostSystem
ServiceInstance serviceInstance= Session.getInstance("https://##.###.##.###/sdk", "Administrator", "123");
Folder rootFolder = serviceInstance.getRootFolder();
ManagedEntity mes = new InventoryNavigator(rootFolder).searchManagedEntity("VirtualMachine", "vCenter");//这行报错
}catch (Exception e){
e.printStackTrace();
}
}
public ManagedEntity searchManagedEntity(String type, String name) throws InvalidProperty, RuntimeFault, RemoteException {
.......................................
}