Hi,
Please suggest me any entity or class or function in vijava api to get Datastore Cluster's.
Thanks in advance.
samadhan Patekar
Hi Samadhan,
Its great to meet here on forum.
You may want to explore:below managed object
Inside Storage Pod, there is below data object
StoragePOD is another name of datastore cluster
Let me know if you face any issues retrieving the same
Hi vikas,
Really Happy to se you and feel comfortable to discuss with you.
Actually I tried StoragePod to get datastore Cluster details. But I get null managed entity object even we have one test datastore cluster in my setup...
Please go though below code and snapshot of vcenter client and suggest me,...
ServiceInstance si = new ServiceInstance(url, username, password, true);
Folder rootFolder=si.getRootFolder();
ManagedEntity me = new InventoryNavigator(rootFolder).searchManagedEntity("StoragePod", "test");
StoragePod sp = (StoragePod) me;
System.out.println("DS Cluster Name :: "+sp.getSummary().getName());
Thanks,
Samadhan Patekar
This may not work this way. I will come back once get time to work.
Hi Vikas,
I also tried using ManagedObjectRefarance object but still null object received...
ManagedObjectReference mor = new ManagedObjectReference();
mor.setType("StoragePod");
mor.set_value("nfv-cluster001");
StoragePod dsc = (StoragePod) MorUtil.createExactManagedEntity(si.getServerConnection(), mor);
System.out.println("Datastore Name :: "+dsc.getName());
Thanks & Regards,
Samadhan Patekar
Hi Vikas,
Any Update..
Thanks & Regards,
Samadhan Patekar
Hi,
Problem solved by adding updated source code of StoragePod managed Entity into vim25.jar and disabling SSL certificate.
Thanks vikas for your support.
Thanks & Regards,
Samadhan Patekar
Hi ,
Is it possible to get Datastores from the datastore clusters using Java API. I am able to get StoragePod but i need to get Datastores based on the StoragePod. If possible can you pleasae share the code.
Thanks