VMware Cloud Community
newsharon86
Contributor
Contributor

find all the Datacenters in VCenter throgh VI SDK 4

hi,

I have connected to a vcenter through VI DK 4 API, i am able to connect but I want to find all the Datacenters in it,

I have used FindByInventory("serachindex","ha-datacenter")

but it is returning null, can anyone help me out how to find all the datacenters in a Vcenter through vsphere webservice

0 Kudos
0 Replies