Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

VMDK Properties

$
0
0

I have an array of disks on a VM and I want to create a property set of Hard Disk Name and Hard Disk UUID.  But when I print out the properties set it only prints out the last Hard Disk Information Below is my code:

for each (var vmdkInfo in vmdkDisks){

input = vmdkDisks (array of vm disks (lets say 3))

 

var vmdkProperties = new Properties ();

  vmdkProperties.put("Hard Disk Name", vmdkInfo.deviceInfo.label);

  vmdkProperties.put("VMDK UUID", vmdkInfo.backing.uuid);

  }

 

 

System.log(vmdkProperties);


current output

 

 

</input-parameters><output-parameters>

 

 

<parameterscope="local"name="vmdkProperties"type="Properties">

 

 

<properties>

 

 

<property>

 

 

<key>Hard Disk Name</key>

 

<string>Hard disk 3</string>

</property>

 

<property>

 

 

<key>VMDK UUID</key>

 

<string>6000C298-eb25-7aab-86f8-423565cd28e9</string>

</property>

 

<property>

 

 

</properties>

but not the other 2 disks (Hard Disk 1 and 2)

Viewing all articles
Browse latest Browse all 6251

Trending Articles