Terminating Instance through API


#1

Hi there !

We’re working with Azure and AWS instances and we’re looking for a way to terminate Instances through MIQ’s API the same way it’s possible to do it through UI.

We found out that it gives many routes for a VM such as delete or retire but they don’t actually destroy VMs on provider’s side (which seems to be logic).

Is there a way to actually terminate instances through MIQ’s API?

Thanks for everything,
Alex

ps : we’re working with version master.20151228111304_dc4f103


#2

PR https://github.com/ManageIQ/manageiq/pull/5807 was merged about a week ago.

Please give it a try, instances are exposed via /api/instances and the action terminate is now available for those.


#3

It sure works great (tried it with AWS and Azure)!
Thanks a lot.