vm_task_status
Check the status of a long-running vSphere task by its ID to confirm completion of asynchronous operations like snapshot deletion. Returns current state, progress percentage, and entity name.
Instructions
[READ] Poll a long-running vSphere task by its id (from an async vm_delete_snapshot).
Use after vm_delete_snapshot returns a task id to check whether the consolidation has finished, instead of re-running the delete. Returns state (queued/running/success/error/ gone), progress percent, and the entity name. 'gone' means vCenter already garbage-collected a completed task — re-list the resource to confirm the final state.
Args: task_id: The task id string returned by an async write operation. target: vCenter/ESXi target name from config.yaml; omit to use the default target.
Returns: Dict with task_id, state, progress_pct, operation, entity, and error/note when relevant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| task_id | Yes |