问题

通过API V3恢复AHV VM

  • 2021年11月24日
  • 1回复
  • 118意见

大家下午好。

在与Nutanix AHV集成期间,我面临以下案例 -

我需要执行将VM恢复到快照状态的操作,我的问题是:

1.如何使用API​​ V3执行此操作?
2.我可以用另一个快照恢复一个VM的状态吗?


使用API​​ V3有哪些建议和最佳实践?

谢谢。


1回复

UserLevel 4
徽章 +5

嗨,彼得,

您正在寻找的API是在开发过程中,这意味着如果您想使用它,则不受支持。URL路径是

/api/nutanix/v3/vm_recovery_points/{recovery_point_uuid}/restore

一个身体的例子是:

{“ vm_override_spec”:{“ name”:“ myvm_clone1”}}}

如果您正在寻找官方支持的方式,那么我建议您使用PE V2 APIhttps://www.nutanix.dev/reference/prism_element/v2/api/vms/post-vms-vms-uuid-restore-restorevm

回复


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