The following code is a good example of how to get a list of running VM’s:
this.vmService = VapiAuthHelper.StubFactory.CreateStub<VM>(SessionStubConfiguration);
List<VMTypes.Summary> vmList = this.vmService.List(new VMTypes.FilterSpec());
Is there an analogous set of API’s to get a list of VM templates?