VMware {code} Community
MikeMatczynski
Contributor
Contributor
Jump to solution

Getting Datastore by ID

Hello!

If there a way to lookup a particular datastore given its GUID (e.g. 498bd332-3e6216da-c1cd-007e4f41313f)?

If not, is there a way to get a list of all the Datastore managed objects known to VI (which I can then get the GUIDs)?

Thanks!<!-- google_ad_section_end -->

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

Take a look at this script:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

0 Kudos
2 Replies
rkamal
VMware Employee
VMware Employee
Jump to solution

See if this sample helps.

Rajesh

0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

Take a look at this script:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos