VMware Cloud Community
ramkrishnagorai
Contributor
Contributor

How do I find the id of the vappTemplate given a vm object or vappTemplate?

Hi,

In VCD, I use a vappTemplate in order to create a VM.

Now after creating the VM, I need to retrieve the id of the vappTemplate from which this VM was created. But looking at the vm object (in the vmware vcd java sdk 5.1) I don't see it containing this vappTemplate information at all. How can I retrieve the id of the vappTemplate from which the VM was created?

Thanks,

RamKrishna

0 Kudos
1 Reply
IamTHEvilONE
Immortal
Immortal

It might be best to find the vApp in general using the query service, then see what it's properties are and then the properties of the VMs inside to find out what the current status is.

Also, as an FYI, there is a dedicated forum for the Java SDK here: https://communities.vmware.com/community/vmtn/developer/forums/vcloudsdkjava/content?filterID=conten...

Or the API in a more general sense here: https://communities.vmware.com/community/vmtn/developer/forums/vcloudapi/content?filterID=contentsta...

0 Kudos