解决了

根据VM名称获取虚拟机UUID


是否有任何API可以获取VM UUID给出VM名称或解决此问题的任何工作?

是否可以使用API​​删除仅给定VM名称的VM?

提前致谢。

问候,
帕万
图标

最好的答案Sandeepmp2019年2月3日,07:29

@Pawan_sahu<\/user-mention>
\r\nThere is no direct way to do that now. However you can use powershell or REST APIs and achieve this.
\r\n
\r\nYou can refer below.
\r\n
\r\nhttps:\/\/github.com\/sandeepmp\/nutanix\/blob\/master\/delete-vm","className":"post__content__best_answer"}">
查看原件

该主题已关闭以供评论

2个答复

UserLevel 3
徽章 +13
@pawan_sahu您需要VM UUID来删除VM。您可以使用API​​列出所有VM或通过VM名称搜索。您是否想在平静的蓝图中使用它?
UserLevel 4
徽章 +19
@pawan_sahu
现在没有直接的方法。但是,您可以使用PowerShell或REST API并实现此目标。

您可以在下面参考。

https://github.com/sandeepmp/nutanix/blob/master/delete-vm
Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu