REST API workflow for backing up on demand

To perform backup operations on demand using REST APIs for VMware vSphere, you must follow the prescribed sequence of REST API calls.

For each REST API, add https://<server>:<port> at the front of the REST API to form a complete endpoint.

Step REST API Comments
1 /4.1/resource-groups Get List of Resource Groups gets the list of VMware vSphere web client resource groups.

Note the resourceGroupId and the policyId for the resource group you want to back up.

2 /4.1/resource-groups/backupnow Run a backup on a Resource Group backs up the resource group on demand.

Pass the resourceGroupId and the policyId from Step 1.