Hi,
In the current GET vApp API there is no information of vAppTemplate (ID/HREF).
I am creating the vApp using instantiateVAppTemplate, hence I need the vAppTemplate ID to verify.
vApp GET API do not provide any sort of information related to the vApp Template.
GET API return vApp object which has no info related to vAppTemplate.
I am using following API
GET- vCloud REST API - GET-VApp
Admin LIST- /api/query?type=adminVApp&format=records
Non-Admin LIST- /api/query?type=vApp&format=records
Is there any way by which I can find the vAppTemplate ID by which the vApp is created ?
During vAppTemplate instantiation, vCD sets a metadata key/value on the newly-created vApp with key=vapp.origin.id and value=id of template.
This is not guaranteed to be present (it can be removed by the sysadmin), but when it's present you can get that information in the vapp query:
and you'll get something like the following back:
then you can extract the ID of the vAppTemplate from there...
During vAppTemplate instantiation, vCD sets a metadata key/value on the newly-created vApp with key=vapp.origin.id and value=id of template.
This is not guaranteed to be present (it can be removed by the sysadmin), but when it's present you can get that information in the vapp query:
and you'll get something like the following back:
then you can extract the ID of the vAppTemplate from there...
jnivoit: Thanks It works for both adminVApp as well as non Admin -vApp.