解决了

剧本参数:创建的VM

  • 2021年9月30日
  • 1回复
  • 51视图

徽章 +2
  • 开拓者
  • 18个答复

每当在Nutanix AHV群集中创建新的VM时,我们创建了一本剧本来发送电子邮件。我们如何在电子邮件消息中添加用户名和群集名称?如果无法提供此类细节,没有什么好处

事件:

行动:

图标

最好的答案Michael.Manuele2021年10月1日,00:32

@Charu<\/user-mention>\u00a0So, unfortunately, the best way to do that today would be adding a REST API action to additional lookup details using the v3\/vms API to make the query and then the String parse to pull those details out. We do have an action plan in the next few months that will make it so we can expose these details without needing a lookup, although I don't know if we plan to reveal a username at this time. \u00a0<\/p>","className":"post__content__best_answer"}">
查看原件

该主题已关闭以供评论

1回复

UserLevel 2
徽章 +4

@Charu因此,不幸的是,今天这样做的最佳方法是使用V3/VMS API在其他查找详细信息中添加REST API操作来进行查询,然后将字符串解析提取出这些细节。在接下来的几个月中,我们确实有一个行动计划,因此我们可以在不需要查找的情况下揭露这些细节,尽管我不知道我们是否打算目前透露一个用户名。

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