Sample code to demostrate how to manage VM via REST API