Get virtual machine UUID based on VM name

  • 24 January 2019
  • 2 replies

Is there any API to get VM UUID given VM name or any work around to get that?

Is it possible to delete a VM given only VM name with API?

Thanks in advance.


Best answer by sandeepmp 3 February 2019, 07:29

View original

This topic has been closed for comments

2 replies

Userlevel 3
Badge +13
@Pawan_sahu you need VM UUID to delete the VM. You can list all the vms or search by vm name using API. Are you looking to use this in Calm blueprint?
Userlevel 4
Badge +19
There is no direct way to do that now. However you can use powershell or REST APIs and achieve this.

You can refer below.