pranags
Contributor
Contributor

How to find the disk locations for a VM

Jump to solution

Hi,

What is the API to find all the disk locations for a VM?

I would like to get paths for vmdk files of the VM

Thanks,

Prasad

0 Kudos
1 Solution

Accepted Solutions
dmhaynes
Enthusiast
Enthusiast

The VirtualMachine managed object has a property named 'layout'.

The path to the disk files is:

layout -> disk\[] -> diskFile[]

View solution in original post

0 Kudos
2 Replies
dmhaynes
Enthusiast
Enthusiast

The VirtualMachine managed object has a property named 'layout'.

The path to the disk files is:

layout -> disk\[] -> diskFile[]

0 Kudos
hrobinson
VMware Employee
VMware Employee

Here you go.