vmware / vsphere-automation-sdk-python

Python samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
MIT License
739 stars 308 forks source link

How to get list of running Tasks ? #410

Closed harukinakazono closed 5 months ago

harukinakazono commented 5 months ago

Hello, I use vcenter 8.0

How do I do get list of running Tasks related a VM? How can I do that? I've tried searching this on the documents.

Please give any informations and I want some samples.

shwetapurohit commented 5 months ago

@harukinakazono : Try below rest api to get the Tasks - https://developer.vmware.com/apis/vi-json/latest/sdk/vim25/release/TaskManager/moId/recentTask/get/

harukinakazono commented 5 months ago

@harukinakazono : Try below rest api to get the Tasks - https://developer.vmware.com/apis/vi-json/latest/sdk/vim25/release/TaskManager/moId/recentTask/get/

Thank you. Sorry for the lack of explanation. I want to know how to get the task using the vsphere-automation-sdk-python package. Please tell me how to get it and give me an example of it.

Thanks.