Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Viewing all articles
Browse latest Browse all 2052

vSphere SDK API to get Tags of VirtualMachine (ManagedEntity) from vCenter 5.5

$
0
0

Hi,

 

I am trying to get tags associated with virtual machine in Java using  vSphere 5.5 SDK API. I am retrieving those from valid ManagedEntity (VirtualMachine) object. The problem is retrieved tags array is empty.

 

The documentation at following link says "Experimental. Subject to change.Since vSphere API 4.0"

http://pubs.vmware.com/vsphere-55/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.ManagedEntity.html

 

I tried PowerShell cmdlets 'Get-Tag' and its working as expected however I cannot use powershell due to platform compatibility reasons.

 

I wanted to know if tags in ManagedEntity are not supported then what is the the alternative way to get tags for virtual machine and vapp from vCenter using SDK API in Java from linux machine?

 

Thanks and Regards,

SandipH


Viewing all articles
Browse latest Browse all 2052


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>