For normal use, We have created a Makefile with some commands to help us, with make show in screen the usage help.
build Build the binary of the module
clean Clean the project, just remove default config of API REST VmWare Workstation, the cert, private key and binary
start_api_rest Prepare environment for you can use a API REST of VmWare Workstation Pro and generate files for SSL
stop_api_rest Stop a API REST server of VmWare Workstation
test_api_client Test API client and list all virtual machine of VmWare Workstation
The follow step it’s run the next command to create a SSL certificates and start the API with the values that you setting in config.ini
$ make start_api_rest
Generating a RSA private key
writing new private key to 'workstationapi-key.pem'
VMware Workstation REST API
Copyright (C) 2018-2020 VMware Inc.
All Rights Reserved
vmrest 1.2.0 build-16341506
Retype new password:
Credential updated successfully
Finally to testing if the client works, run the follow command:
$ make test_api_client
The reult of the previous command it’s a list of vms that you have in the VmWare Workstation