VMware Cloud Community

Getting task id from vSphere REST API

How can I get task id from vSphere REST API operations

For example, is there a way to synchronously issue a create VM request and get back a task id.

Later on, use some mechanism to check status of task using task id - API for this would be GET https://{server}/rest/cis/tasks/{task} which is added in vSphere REST API 6.7 U1

Currently we have this API url for create VM - POST https://{server}/rest/vcenter/vm

Note: This was possible using SOAP, so something similar would help

Tags (1)
0 Kudos
0 Replies