VMware {code} Community
MightySuite
VMware Employee
VMware Employee

Shared datastores from a cluster of ESXi servers

Hi,

Is there any API that gives only the shared datastores of a particular ESXi server / cluster of ESXi servers..?

Cluster1

--Host1 --> local1, shared1, shared2

--Host2 --> local2, shared1, shared2

where shared1 and shared2 are mapped to both Host1 and Host2. So is there any API to get these..? I achieved this by getting the datastores from all the hosts and comparing them. But if there is any API then I can reduce the no. of lines in my code.

Please help.

Tags (1)
0 Kudos
1 Reply
stumpr
Virtuoso
Virtuoso

You should be able to use the property Datastore.summary.multipleHostAccess. 

Reuben Stump | http://www.virtuin.com | @ReubenStump
0 Kudos