vm_apply_plan
Execute a multi-step VMware plan sequentially, stopping on failure with rollback option if available.
Instructions
[WRITE] Execute a previously created plan step by step.
Steps run sequentially. On failure: stops immediately, keeps the plan file with per-step results, and returns rollback_available flag. On success: deletes the plan file.
If a step fails and rollback_available is true, ask the user whether to rollback, then call vm_rollback_plan if confirmed.
Args: plan_id: The plan ID returned by vm_create_plan. target: Optional vCenter/ESXi target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | ||
| target | No |