HI all,
I have created certain number of port groups on a Distributed Virtual Switch. Now I want to find the list of Port Groups in a vSphere host( both port groups on Virtual Switch and Distributed Virtual Switch)?
How can i get the data with out parsing the view of host system.
Even parsing is fine but problem i am facing is that, the port groups created on distributed virtual switch is named as "DVPG-14 ba 3a 50 a8 5d c1 25-9b 50 35 5d 0a 9e f2 70-dvportgroup-1572". But it's original port group name is "dvPortGroup" on dvSwitch.
"
bless( {
'value' => 'DVPG-14 ba 3a 50 a8 5d c1 25-9b 50 35 5d 0a 9e f2 70-dvportgroup-1572',
'type' => 'DistributedVirtualPortgroup'
}, 'ManagedObjectReference' ),
bless( {
'value' => 'DVPG-14 ba 3a 50 a8 5d c1 25-9b 50 35 5d 0a 9e f2 70-dvportgroup-1573',
'type' => 'DistributedVirtualPortgroup'
},
"
How can i get the Names of PortGroups exactly as they are shown on vSphere when we are trying to add the NIC card to a VM?
What is the API to list the Port Groups on a vSphere?