Which API to use for specify a template when creating a VM