marcinl_ax
Contributor
Contributor

How to determine a method to shutdown VM (GuestPower or Power)?

How can I determine if I can shutdown the virtual machine using the endpoint ".../{vm}/guest/power?action=shutdown", or the only option to use is ".../{vm}/power?action=stop"?


These two endpoints are marked as "deprecated" in the documentation. What functions should be used instead of these. Are there any other endpoints?

 

Docs: https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/api/vcenter/vm/vm/guest/poweract...

Reply
0 Kudos