从vSphere API中删除vCenter虚拟机模板

问题描述 投票:0回答:1

我正在构建自动化的基础结构并使用terraform和ansible进行配置。

我将terraform与VMware vSphere Provider一起使用。在创建基础架构之前,我先使用打包程序构建一个vm模板,然后将其用作基础。但是我无法从此处记录的terraform或api vsphere中销毁:

https://vmware.github.io/vsphere-automation-sdk-rest/vsphere/index.html#PKG_com.vmware.vcenter

操作> vcenter> vm_template

有人找到使用vSphere API删除VM模板的方法吗?

当前,我必须通过vmware vsphere Web客户端删除vm模板。

vmware packer vsphere
1个回答
1
投票

没有,到目前为止,还没有方法可以通过vSphere Automation REST API删除模板(甚至无法将模板修改回VM)。 Web服务API是唯一的方法。

© www.soinside.com 2019 - 2024. All rights reserved.