using the .net sdk...
How do you get all VappTemplates in a specific catalog?
I am able to successfully retrieve them all using vdc.GetVappTemplateRefs() but that doesn't let you specify or filter on a catalog.
is there a method to retrieve template refs by catalog or is there a way to filter the list i get using vdc.getVappTemplateRefs() ?
thanks in advance.
Hi,
You can use the query service and filter the results.
Using the VappTemplate query you can filter the results based on the catalog name. Below is an API & Java SDK example. You can easily convert the java sample to C#.
REST API:
Ex: https://vcloud/api/query?type=adminVAppTemplate&filter=(catalogName==mycatalog)&format=records
Java SDK:
thanks for your help... for anyone looking to do this with the c# SDK here's my code: