摘要: 在我们通过克隆虚机,需要用到虚机模板。在数据中心的目录下面有文件夹、模板和虚拟机,那么这里需要做的是根据类型做递归查询。 1 private void GetTemplate() 2 { 3 System.Text.StringBuilder sb = new System.Text.StringBuilder(); 4 5 ManagedObjectReference dcMor = util._svcUtil.getEntityByName("Datacenter", "dc"); 6 sb.AppendLine(string.Format(&quo 阅读全文
posted @ 2014-04-02 16:40 猫不理饼 阅读(1606) 评论(0) 推荐(0)