I’ve been busy for a while calling REST API’s to diffrent VMware products to be more flexible and don’t depend on any solution like PowerCLI. While not everything is possible yet via REST API, every new release of a VMware Product, new API’s become available.
I created 2 examples how to use the API from Horizon and vCenter within an Ansible playbook.
Example 1: Push a golden image snapshot to a Horizon Pool -> can be found here.
Example 2: Delete a VM from vCenter -> can be found here.