Closed Akasurde closed 5 months ago
This would be very useful
Hey
Is this something that could help?
I think you should look for datastore clusters (StoragePod) in inventory/datastore
@Akasurde
Does the above link help?
@anusha94 Nope. I tried -
(Pdb) client.vcenter.inventory.Datastore.Info(type='StoragePod')
Info(type='StoragePod')
Even if I pass None
it does not do anything
(Pdb) client.vcenter.inventory.Datastore.Info(type='')
Info(type='')
(Pdb) client.vcenter.inventory.Datastore.Info(type=None)
Info(type=None)
Can someone confirm there is no capability to get DatastoreCluster? Or at the very least, determine if a datastore is part of a cluster?
Another nice feature would be the ability to pull the "Related Objects" for a VM via the REST API. 🙏
I believe you are looking this for Storage DRS Cluster (SDRS POD). If yes, this capability is not with this SDK. You may need to use pyVmomi libs for this capability.
Environment
sdk package version:
python version:
Python 3.8
vSphere version: v6.7
Operating System/Shell (used to run SDK-based apps): macOS
Steps or code snippet to reproduce
Actual behavior
No API for getting information about datastore cluster
Expected behavior
some API like
get
,list
for getting information about datastore cluster.