![]() VMware Workstation Pro™ enables technical professionals to develop, test, demonstrate, and deploy software by running multiple x86-based Windows, Linux, and other operating systems simultaneously on the same PC. You can use the API calls from a scripting or programming language of your choice.VMware Workstation 15.5.2 Pro | 12 March 2020 | Build 15785246 Copy the Curl command and paste it into Command Prompt to get a feel for the API outside of the API explorer (In Windows you may need to replace the single quotes with double quotesĬurl "" -X GET -header "Accept: application/-v1+json" -header "Authorization: Basic cmVzdF91c2VyOlZNd2FyZTEh"Īnd that’s it.This will run the call against your live Workstation instance and return the result which will be a list of all your VMs running in Workstation Pro with their IDs and VMX paths.For example, expand the GET /vms API call Locate an API call that you are interested in.Enter the previously created credentials.Authenticate to the system with the “Authorization” button.Launch the API Browser in a web browser.Now run vmrest to launch the API service.Once complete, you can open %USERPROFILE%\vmrest.cfg to view the configuration that you just created.Once you have installed or upgraded Workstation Pro, open a command promptĬd "C:\Program Files (x86)\VMware\VMware Workstation". ![]() I’m running it on Windows but the API also works in Linux. Watch my video or follow the instructions below to get started:įirst, you need to be running Workstation 15 Pro. The other week I heard that Workstation 15 Pro was being shipped with a REST API, this was something I had to look into further. While this does work for me I have to have a few layers of virtualisation and this can cause headaches and unnecessary compute and storage utilization. Hardware is great but there are too many limitations (Initial cost, power, cooling, maintenance, space, patching) and for me, Workstation Pro works perfectly provided that my machine has enough memory.Īs I use Workstation all the time, I frequently find myself wanting to automate VM provisioning and management, however, the only way I could do this in the past was by installing my VMs inside an ESXi host which was running inside Workstation. ![]() My main purpose is for labs as I prefer to host them within software than expensive hardware. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |