如何获取 vSphere Rest api 中的模板列表

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

我正在使用 vSphere Rest API 与我的虚拟机管理程序进行通信。我能够获取虚拟机列表并毫无问题地打开和关闭它们。
现在我正在尝试获取模板列表,但我不知道该怎么做。根据此处的文档https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/api/vcenter/vm-template/library-items/template_library_item/get/

我需要获取此 URL https://{api_host}/api/vcenter/vm-template/library-items/{template_library_item}

问题是我不知道 template_library_item 是什么,所以我无法构建这个 URL。

哪里可以获取模板库项目列表?

rest vsphere
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.